Skip to content

Commit

Permalink
fix: normalize test file paths for cross-platform compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Muzaffer Aydin authored and Muzaffer Aydin committed Jan 13, 2025
1 parent e844905 commit e293834
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/test/testRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ export async function runTests(
})

const dist = path.resolve(root, 'dist')
const testFile = process.env['TEST_FILE']?.replace('.ts', '.js')
const rawTestFile = process.env['TEST_FILE']
const testFile = rawTestFile?.replace(/\\/g, '/').replace('.ts', '.js')
let testFilePath: string | undefined
if (testFile?.includes('../core/')) {
testFilePath = path.resolve(root, testFile.replace('../core/', '../core/dist/'))
Expand Down

0 comments on commit e293834

Please sign in to comment.