Skip to content

Commit 350971e

Browse files
kapoueraduh95
andauthored
Update test/parallel/test-runner-output.mjs
To be squashed Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 6ba9021 commit 350971e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-runner-output.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function replaceTestDuration(str) {
1515
}
1616

1717
const color = '(\\[\\d+m)';
18-
const stackTraceBasePath = new RegExp(`${color}\\(${process.cwd().replace(/[\\^$*+?.()|[\]{}]/g, '\\$&')}/?${color}(.*)${color}\\)`, 'g');
18+
const stackTraceBasePath = new RegExp(`${color}\\(${RegExpPrototypeSymbolReplace(/[\\^$*+?.()|[\]{}]/g, process.cwd(), '\\$&')}/?${color}(.*)${color}\\)`, 'g');
1919

2020
function replaceSpecDuration(str) {
2121
return str

0 commit comments

Comments
 (0)