Skip to content

Commit c58cae1

Browse files
committed
fix: improve test for config.ts
1 parent a8381fc commit c58cae1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/vscode-wdio-worker/tests/config.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import fs from 'node:fs/promises'
22
import path from 'node:path'
3-
import { resolve as winResolve } from 'node:path/posix'
43
import { pathToFileURL } from 'node:url'
54

65
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
@@ -27,7 +26,7 @@ vi.mock('node:path', async (importOriginal) => {
2726
return {
2827
default: {
2928
...actual,
30-
resolve: vi.fn((_, f) => winResolve(`/path/to/parser/${f}`)),
29+
resolve: vi.fn((_, f) => path.posix.resolve(`/path/to/parser/${f}`)),
3130
},
3231
}
3332
})

0 commit comments

Comments
 (0)