Skip to content

Commit 7348470

Browse files
Merge branch 'master' into grape/oauth410
2 parents f4ece2f + 0ccbe4d commit 7348470

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/vitest.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ function dontLoadJsonPlugin() {
3636
}
3737

3838
// trying to resolve test-exclusive data, which can safely be resolved normally
39-
if (id.includes("/testData/")) {
39+
if (id.includes("/testData/") || id.includes("\\testData\\")) {
4040
return null
4141
}
4242

43-
const filePath = path.join(path.dirname(importer), id)
43+
const filePath = path
44+
.join(path.dirname(importer), id)
45+
.replaceAll("\\", "/")
4446

4547
return `${resolvedIdPrefix}${filePath}${ignoreExtension}`
4648
},

0 commit comments

Comments
 (0)