We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 686ab91 commit 062d9beCopy full SHA for 062d9be
e2e/plugin-typescript-e2e/tests/collect.e2e.test.ts
@@ -31,10 +31,11 @@ function sanitizeReportPaths(report: Report): Report {
31
},
32
}),
33
message: issue.message.replace(
34
- /['"]([^'"]*[/\\][^'"]*)['"]/g,
+ /['"]([^'"]*\\[^'"]*)['"]/g,
35
(match, filePath) => {
36
try {
37
- return `'${osAgnosticPath(filePath)}'`;
+ const lastSegment = filePath.split(/[/\\]/).pop() || '';
38
+ return `'<CWD>/${lastSegment}'`;
39
} catch {
40
return match;
41
}
0 commit comments