Skip to content

Commit be9604c

Browse files
authored
chore: fix integration tests path separator on Windows (#604)
1 parent e5c330d commit be9604c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/integration/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ for (const dirent of fs.readdirSync(TEST_FIXTURES_ROOT, {
5252
assert.ok(Array.isArray(results), "output is not array")
5353
const result = results.map((r) => ({
5454
...r,
55-
filePath: path.relative(TEST_CWD, r.filePath),
55+
filePath: path.relative(TEST_CWD, r.filePath).replace(/\\/g, "/"),
5656
}))
5757
fs.writeFileSync(actualFile, JSON.stringify(result, null, 2))
5858

0 commit comments

Comments
 (0)