8000
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 609c063 commit e4b95a5Copy full SHA for e4b95a5
8000 test/common/assertSnapshot.js
@@ -17,7 +17,9 @@ function replaceStackTrace(str, replacement = '$1*$7$8\n') {
17
}
18
19
function replaceInternalStackTrace(str) {
20
- return str.replaceAll(/(\W+).*node:internal.*/g, '$1*');
+ // Replace non-internal frame `at TracingChannel.traceSync (node:diagnostics_channel:328:14)`
21
+ // as well as `at node:internal/main/run_main_module:33:47` with `*`.
22
+ return str.replaceAll(/(\W+).*[(\s]node:.*/g, '$1*');
23
24
25
function replaceWindowsLineEndings(str) {
test/fixtures/source-map/output/source_map_assert_source_line.snapshot
@@ -7,7 +7,7 @@ AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
7
*
8
9
10
- at TracingChannel.traceSync (node:diagnostics_channel:328:14)
+ *
11
12
13