Skip to content

Commit 63ca7a1

Browse files
authored
test: fix windows error (#7859)
1 parent bc537a1 commit 63ca7a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/core/test/dynamic-import.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test('dynamic import', async () => {
77
}
88
catch (err: any) {
99
expect(err.message).toBe(
10-
`Cannot find package 'non-existing-module' imported from '${import.meta.filename}'`,
10+
`Cannot find package 'non-existing-module' imported from '${import.meta.filename.replace(/\\/g, '/')}'`,
1111
)
1212
expect(err.code).toBe('ERR_MODULE_NOT_FOUND')
1313
}

0 commit comments

Comments
 (0)