We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87851bb commit 6ec8df3Copy full SHA for 6ec8df3
e2e/plugin-typescript-e2e/tests/collect.e2e.test.ts
@@ -19,12 +19,12 @@ function sanitizeReportPaths(report: Report): Report {
19
plugins: report.plugins.map(plugin => ({
20
...plugin,
21
audits: osAgnosticAuditOutputs(plugin.audits, message =>
22
- message.replace(/['"]([^'"]*[/\\][^'"]*)['"]/g, (p: string) => {
+ message.replaceAll(/['"]([^'"]*[/\\][^'"]*)['"]/g, (p: string) => {
23
const osAgnostic = osAgnosticPath(p);
24
if (osAgnostic.endsWith('.ts')) {
25
return osAgnostic;
26
}
27
- return osAgnostic.split('/').slice(-2).join('/');
+ return osAgnostic.split('/').slice(-1).join('/');
28
}),
29
),
30
})),
0 commit comments