Skip to content

Commit 2e1f646

Browse files
committed
chore(plugin-typescript-e2e): adjust checks for windows 3
1 parent 574beaa commit 2e1f646

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/plugin-typescript-e2e/tests/collect.e2e.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ function sanitizeReportPaths(report: Report): Report {
2727
if (capturedPath.endsWith('.ts')) {
2828
return `'${osAgnostic}'`;
2929
}
30-
// on Windows the path starts from "D/" not "./". This normalizes it to "./<segment>"
31-
return `'${['.'].concat(osAgnostic.split('/').slice(-1)).join('/')}'`;
30+
// on Windows the path starts from "plugin-typescript-e2e/src" not "./". This normalizes it to "./<segment>"
31+
return `'${['.', osAgnostic.split('/').slice(-1)].join('/')}'`;
3232
},
3333
),
3434
),

0 commit comments

Comments
 (0)