Skip to content

Commit 6ec8df3

Browse files
committed
test(plugin-typescript-e2e): adjust checks 2
1 parent 87851bb commit 6ec8df3

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
@@ -19,12 +19,12 @@ function sanitizeReportPaths(report: Report): Report {
1919
plugins: report.plugins.map(plugin => ({
2020
...plugin,
2121
audits: osAgnosticAuditOutputs(plugin.audits, message =>
22-
message.replace(/['"]([^'"]*[/\\][^'"]*)['"]/g, (p: string) => {
22+
message.replaceAll(/['"]([^'"]*[/\\][^'"]*)['"]/g, (p: string) => {
2323
const osAgnostic = osAgnosticPath(p);
2424
if (osAgnostic.endsWith('.ts')) {
2525
return osAgnostic;
2626
}
27-
return osAgnostic.split('/').slice(-2).join('/');
27+
return osAgnostic.split('/').slice(-1).join('/');
2828
}),
2929
),
3030
})),

0 commit comments

Comments
 (0)