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 a3adf15 commit f3d5e2fCopy full SHA for f3d5e2f
src/core/exception/jest-skip-source-file.ts
@@ -19,7 +19,7 @@ export const jestSkipFileInExceptionSource = (
19
return e;
20
}
21
22
- const all = filepath instanceof RegExp && filepath.global;
+ const all = filepath instanceof RegExp ? filepath.global : true;
23
e.stack = e.stack?.[all ? 'replaceAll' : 'replace'](filepath, (substr) => {
24
const path = substr.match(/\s+at /)
25
? stacktrace.parse({ stack: 'Error \n' + substr } as any)[0].getFileName()
0 commit comments