Skip to content

Commit e293834

Browse files
Muzaffer AydinMuzaffer Aydin
authored andcommitted
fix: normalize test file paths for cross-platform compatibility
1 parent e844905 commit e293834

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/test/testRunner.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ export async function runTests(
8484
})
8585

8686
const dist = path.resolve(root, 'dist')
87-
const testFile = process.env['TEST_FILE']?.replace('.ts', '.js')
87+
const rawTestFile = process.env['TEST_FILE']
88+
const testFile = rawTestFile?.replace(/\\/g, '/').replace('.ts', '.js')
8889
let testFilePath: string | undefined
8990
if (testFile?.includes('../core/')) {
9091
testFilePath = path.resolve(root, testFile.replace('../core/', '../core/dist/'))

0 commit comments

Comments
 (0)