Skip to content

Commit f455e35

Browse files
committed
test: fix test broken on windows
1 parent ba48335 commit f455e35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/helpers.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* file that was distributed with this source code.
88
*/
99

10+
import slash from 'slash'
1011
import ts from 'typescript'
1112
import { join } from 'node:path'
1213
import { test } from '@japa/runner'
@@ -34,7 +35,7 @@ test.group('Helpers | Parse config', () => {
3435
await fs.create('foo.ts', '')
3536

3637
const result = parseConfig(fs.baseUrl, ts)
37-
assert.deepEqual(result?.fileNames, [join(fs.basePath, 'foo.ts')])
38+
assert.deepEqual(result?.fileNames, [slash(join(fs.basePath, 'foo.ts'))])
3839
})
3940
})
4041

0 commit comments

Comments
 (0)