We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ba9021 commit 350971eCopy full SHA for 350971e
test/parallel/test-runner-output.mjs
@@ -15,7 +15,7 @@ function replaceTestDuration(str) {
15
}
16
17
const color = '(\\[\\d+m)';
18
-const stackTraceBasePath = new RegExp(`${color}\\(${process.cwd().replace(/[\\^$*+?.()|[\]{}]/g, '\\$&')}/?${color}(.*)${color}\\)`, 'g');
+const stackTraceBasePath = new RegExp(`${color}\\(${RegExpPrototypeSymbolReplace(/[\\^$*+?.()|[\]{}]/g, process.cwd(), '\\$&')}/?${color}(.*)${color}\\)`, 'g');
19
20
function replaceSpecDuration(str) {
21
return str
0 commit comments