From f67151d9d68c768a83a4f609010c9c02d795894e Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Fri, 30 Jan 2026 10:42:31 -0500 Subject: [PATCH 1/2] test: unify assertSnapshot common patterns Unifes assertSnapshot common patterns like platform specific path separators, line ending, line trailing spaces, Node.js version strings, and pids in warning messages. --- test/common/assertSnapshot.js | 51 +++++++-- test/fixtures/console/stack_overflow.snapshot | 4 +- .../errors/async_error_eval_esm.snapshot | 10 +- .../async_error_microtask_main.snapshot | 10 +- .../errors/async_error_nexttick_main.snapshot | 12 +- .../errors/async_error_sync_esm.snapshot | 10 +- .../errors/async_error_sync_main.snapshot | 10 +- .../errors/core_line_numbers.snapshot | 4 +- .../errors/error_aggregateTwoErrors.snapshot | 10 +- test/fixtures/errors/error_exit.snapshot | 6 +- test/fixtures/errors/error_with_nul.snapshot | Bin 174 -> 250 bytes ...ents_unhandled_error_common_trace.snapshot | 12 +- .../events_unhandled_error_nexttick.snapshot | 8 +- .../events_unhandled_error_sameline.snapshot | 8 +- .../events_unhandled_error_subclass.snapshot | 8 +- test/fixtures/errors/force_colors.snapshot | 6 +- .../errors/if-error-has-good-stack.snapshot | 26 ++--- .../promise_always_throw_unhandled.snapshot | 4 +- ...promise_unhandled_warn_with_error.snapshot | 6 +- ...-no-extra-info-on-fatal-exception.snapshot | 4 +- .../errors/throw_custom_error.snapshot | 4 +- .../throw_error_with_getter_throw.snapshot | 8 +- .../errors/throw_in_eval_anonymous.snapshot | 4 +- .../errors/throw_in_eval_named.snapshot | 2 +- .../errors/throw_in_line_with_tabs.snapshot | 4 +- test/fixtures/errors/throw_non_error.snapshot | 4 +- test/fixtures/errors/throw_null.snapshot | 6 +- test/fixtures/errors/throw_undefined.snapshot | 6 +- test/fixtures/errors/timeout_throw.snapshot | 10 +- ...ndefined_reference_in_new_context.snapshot | 4 +- .../unhandled_promise_trace_warnings.snapshot | 6 +- test/fixtures/eval/eval_messages.snapshot | 44 ++++++-- test/fixtures/eval/eval_typescript.snapshot | 34 +++++- test/fixtures/eval/stdin_messages.snapshot | 54 +++++++-- test/fixtures/eval/stdin_typescript.snapshot | 104 ++++++++++++++++-- .../source_map_enclosing_function.snapshot | 2 +- .../output/source_map_eval.snapshot | 2 +- .../output/source_map_no_source_file.snapshot | 2 +- .../source_map_reference_error_tabs.snapshot | 2 +- ...ource_map_throw_async_stack_trace.snapshot | 2 +- .../source_map_throw_construct.snapshot | 2 +- .../source_map_throw_first_tick.snapshot | 2 +- .../output/source_map_throw_icu.snapshot | 2 +- .../source_map_throw_set_immediate.snapshot | 2 +- .../output/assertion-color-tty.snapshot | 2 +- .../output/coverage-short-filename.snapshot | 2 +- ...overage-width-100-uncovered-lines.snapshot | 14 +-- .../output/coverage-width-100.snapshot | 14 +-- ...overage-width-150-uncovered-lines.snapshot | 14 +-- .../output/coverage-width-150.snapshot | 14 +-- .../output/coverage-width-40.snapshot | 16 +-- .../output/coverage-width-80-color.snapshot | 14 +-- ...ge-width-80-uncovered-lines-color.snapshot | 14 +-- ...coverage-width-80-uncovered-lines.snapshot | 14 +-- .../output/coverage-width-80.snapshot | 14 +-- ...ge-width-infinity-uncovered-lines.snapshot | 14 +-- .../output/coverage-width-infinity.snapshot | 14 +-- .../output/coverage-with-mock.snapshot | 16 +-- .../test-runner/output/describe_it.snapshot | 4 +- .../test-runner/output/dot_reporter.snapshot | 10 +- .../output/junit_reporter.snapshot | 10 +- .../test-runner/output/output.snapshot | 10 +- .../test-runner/output/output_cli.snapshot | 10 +- .../output/source_mapped_locations.snapshot | 4 +- .../test-runner/output/spec_reporter.snapshot | 10 +- .../output/spec_reporter_cli.snapshot | 10 +- .../output/test-runner-plan-timeout.snapshot | 8 +- .../output/typescript-coverage.snapshot | 16 +-- test/fixtures/v8/v8_warning.snapshot | 4 +- .../vm/vm_display_runtime_error.snapshot | 6 +- .../vm/vm_display_syntax_error.snapshot | 6 +- .../vm/vm_dont_display_runtime_error.snapshot | 4 +- .../vm/vm_dont_display_syntax_error.snapshot | 4 +- test/parallel/test-node-output-console.mjs | 10 +- test/parallel/test-node-output-errors.mjs | 44 ++++---- test/parallel/test-node-output-eval.mjs | 19 +--- test/parallel/test-node-output-sourcemaps.mjs | 8 +- test/parallel/test-node-output-v8-warning.mjs | 21 +--- test/parallel/test-node-output-vm.mjs | 12 +- 79 files changed, 548 insertions(+), 379 deletions(-) diff --git a/test/common/assertSnapshot.js b/test/common/assertSnapshot.js index af4345f5111f24..ca55da55bc7358 100644 --- a/test/common/assertSnapshot.js +++ b/test/common/assertSnapshot.js @@ -4,13 +4,14 @@ const path = require('node:path'); const test = require('node:test'); const fs = require('node:fs/promises'); const assert = require('node:assert/strict'); +const { pathToFileURL } = require('node:url'); const { hostname } = require('node:os'); const stackFramesRegexp = /(?<=\n)(\s+)((.+?)\s+\()?(?:\(?(.+?):(\d+)(?::(\d+))?)\)?(\s+\{)?(\[\d+m)?(\n|$)/g; const windowNewlineRegexp = /\r/g; function replaceNodeVersion(str) { - return str.replaceAll(process.version, '*'); + return str.replaceAll(process.version, ''); } function replaceStackTrace(str, replacement = '$1*$7$8\n') { @@ -31,10 +32,28 @@ function replaceWindowsPaths(str) { return common.isWindows ? str.replaceAll(path.win32.sep, path.posix.sep) : str; } +function replaceTrailingSpaces(str) { + return str.replaceAll(/[\t ]+\n/g, '\n'); +} + +// Replaces customized or platform specific executable names to be `node`. +function generalizeExeName(str) { + const baseName = path.basename(process.argv0 || 'node', '.exe'); + return str.replaceAll(`${baseName} --`, 'node --'); +} + +function replaceWarningPid(str) { + return str.replaceAll(/\(node:\d+\)/g, '(node:)'); +} + function transformProjectRoot(replacement = '') { const projectRoot = path.resolve(__dirname, '../..'); + // Handles URL encoded project root in file URL strings as well. + const urlEncoded = pathToFileURL(projectRoot).pathname; return (str) => { - return str.replaceAll('\\\'', "'").replaceAll(projectRoot, replacement); + return str.replaceAll('\\\'', "'") + .replaceAll(projectRoot, replacement) + .replaceAll(urlEncoded, replacement); }; } @@ -152,32 +171,41 @@ function pickTestFileFromLcov(str) { ); } -const defaultTransform = transform( +// Transforms basic patterns like: +// - platform specific path and line endings, +// - line trailing spaces, +// - executable specific path and versions. +const basicTransform = transform( replaceWindowsLineEndings, - replaceStackTrace, + replaceTrailingSpaces, removeWindowsPathEscaping, - transformProjectRoot(), replaceWindowsPaths, + replaceNodeVersion, + generalizeExeName, + replaceWarningPid, +); + +const defaultTransform = transform( + basicTransform, + replaceStackTrace, + transformProjectRoot(), replaceTestDuration, replaceTestLocationLine, ); const specTransform = transform( replaceSpecDuration, - replaceWindowsLineEndings, + basicTransform, replaceStackTrace, - replaceWindowsPaths, ); const junitTransform = transform( replaceJunitDuration, - replaceWindowsLineEndings, + basicTransform, replaceStackTrace, - replaceWindowsPaths, ); const lcovTransform = transform( - replaceWindowsLineEndings, + basicTransform, replaceStackTrace, transformProjectRoot(), - replaceWindowsPaths, pickTestFileFromLcov, ); @@ -204,6 +232,7 @@ module.exports = { transform, transformProjectRoot, replaceTestDuration, + basicTransform, defaultTransform, specTransform, junitTransform, diff --git a/test/fixtures/console/stack_overflow.snapshot b/test/fixtures/console/stack_overflow.snapshot index e723d53adc866e..36270c78db678b 100644 --- a/test/fixtures/console/stack_overflow.snapshot +++ b/test/fixtures/console/stack_overflow.snapshot @@ -1,8 +1,8 @@ before -*test*fixtures*console*stack_overflow.js:* +/test/fixtures/console/stack_overflow.js:* JSON.stringify(array); ^ [RangeError: Maximum call stack size exceeded] -Node.js * +Node.js diff --git a/test/fixtures/errors/async_error_eval_esm.snapshot b/test/fixtures/errors/async_error_eval_esm.snapshot index 0c22264f94de61..45e48f00110bf6 100644 --- a/test/fixtures/errors/async_error_eval_esm.snapshot +++ b/test/fixtures/errors/async_error_eval_esm.snapshot @@ -1,7 +1,7 @@ Error: test - at one (file:*/[eval1]:2:9) - at two (file:*/[eval1]:15:9) - at async three (file:*/[eval1]:18:3) - at async four (file:*/[eval1]:22:3) - at async main (file:*/[eval1]:28:5) + at one (file:///[eval1]:2:9) + at two (file:///[eval1]:15:9) + at async three (file:///[eval1]:18:3) + at async four (file:///[eval1]:22:3) + at async main (file:///[eval1]:28:5) diff --git a/test/fixtures/errors/async_error_microtask_main.snapshot b/test/fixtures/errors/async_error_microtask_main.snapshot index 9d84b96c35de68..dfacb9096d01eb 100644 --- a/test/fixtures/errors/async_error_microtask_main.snapshot +++ b/test/fixtures/errors/async_error_microtask_main.snapshot @@ -1,6 +1,6 @@ Error: test - at one (*fixtures*async-error.js:4:9) - at two (*fixtures*async-error.js:17:9) - at async three (*fixtures*async-error.js:20:3) - at async four (*fixtures*async-error.js:24:3) - at async main (*async_error_microtask_main.js:7:5) + at one (/test/fixtures/async-error.js:4:9) + at two (/test/fixtures/async-error.js:17:9) + at async three (/test/fixtures/async-error.js:20:3) + at async four (/test/fixtures/async-error.js:24:3) + at async main (/test/fixtures/errors/async_error_microtask_main.js:7:5) diff --git a/test/fixtures/errors/async_error_nexttick_main.snapshot b/test/fixtures/errors/async_error_nexttick_main.snapshot index 0034454e590ab5..dad291a380f6f0 100644 --- a/test/fixtures/errors/async_error_nexttick_main.snapshot +++ b/test/fixtures/errors/async_error_nexttick_main.snapshot @@ -1,7 +1,7 @@ Error: test - at one (*fixtures*async-error.js:4:9) - at two (*fixtures*async-error.js:17:9) - at process.processTicksAndRejections (node:internal*process*task_queues:104:5) - at async three (*fixtures*async-error.js:20:3) - at async four (*fixtures*async-error.js:24:3) - at async main (*async_error_nexttick_main.js:7:5) + at one (/test/fixtures/async-error.js:4:9) + at two (/test/fixtures/async-error.js:17:9) + at process.processTicksAndRejections (node:internal/process/task_queues:104:5) + at async three (/test/fixtures/async-error.js:20:3) + at async four (/test/fixtures/async-error.js:24:3) + at async main (/test/fixtures/errors/async_error_nexttick_main.js:7:5) diff --git a/test/fixtures/errors/async_error_sync_esm.snapshot b/test/fixtures/errors/async_error_sync_esm.snapshot index 3d232a3243e0da..637b3d511efc5a 100644 --- a/test/fixtures/errors/async_error_sync_esm.snapshot +++ b/test/fixtures/errors/async_error_sync_esm.snapshot @@ -1,6 +1,6 @@ Error: test - at one (*fixtures*async-error.js:4:9) - at two (*fixtures*async-error.js:17:9) - at async three (*fixtures*async-error.js:20:3) - at async four (*fixtures*async-error.js:24:3) - at async main (file:*/async_error_sync_esm.mjs:6:5) + at one (/test/fixtures/async-error.js:4:9) + at two (/test/fixtures/async-error.js:17:9) + at async three (/test/fixtures/async-error.js:20:3) + at async four (/test/fixtures/async-error.js:24:3) + at async main (file:///test/fixtures/errors/async_error_sync_esm.mjs:6:5) diff --git a/test/fixtures/errors/async_error_sync_main.snapshot b/test/fixtures/errors/async_error_sync_main.snapshot index 34aaec5fed2d5f..e5d9797e67fdf8 100644 --- a/test/fixtures/errors/async_error_sync_main.snapshot +++ b/test/fixtures/errors/async_error_sync_main.snapshot @@ -1,6 +1,6 @@ Error: test - at one (*fixtures*async-error.js:4:9) - at two (*fixtures*async-error.js:17:9) - at async three (*fixtures*async-error.js:20:3) - at async four (*fixtures*async-error.js:24:3) - at async main (*async_error_sync_main.js:7:5) + at one (/test/fixtures/async-error.js:4:9) + at two (/test/fixtures/async-error.js:17:9) + at async three (/test/fixtures/async-error.js:20:3) + at async four (/test/fixtures/async-error.js:24:3) + at async main (/test/fixtures/errors/async_error_sync_main.js:7:5) diff --git a/test/fixtures/errors/core_line_numbers.snapshot b/test/fixtures/errors/core_line_numbers.snapshot index 9ef06c33af8e28..9df93823daae5d 100644 --- a/test/fixtures/errors/core_line_numbers.snapshot +++ b/test/fixtures/errors/core_line_numbers.snapshot @@ -5,6 +5,6 @@ node:punycode:54 RangeError: Invalid input at error (node:punycode:54:8) at Object.decode (node:punycode:247:5) - at Object. (*core_line_numbers.js:13:10) + at Object. (/test/fixtures/errors/core_line_numbers.js:13:10) -Node.js * +Node.js diff --git a/test/fixtures/errors/error_aggregateTwoErrors.snapshot b/test/fixtures/errors/error_aggregateTwoErrors.snapshot index 77715c40cbfb92..804437bc87cda3 100644 --- a/test/fixtures/errors/error_aggregateTwoErrors.snapshot +++ b/test/fixtures/errors/error_aggregateTwoErrors.snapshot @@ -1,20 +1,20 @@ -*error_aggregateTwoErrors.js:* +/test/fixtures/errors/error_aggregateTwoErrors.js:* throw aggregateTwoErrors(err, originalError); ^ AggregateError: original - at Object. (*error_aggregateTwoErrors.js:*:*) { + at Object. (/test/fixtures/errors/error_aggregateTwoErrors.js:*:*) { code: 'ERR0', [errors]: [ Error: original - at Object. (*error_aggregateTwoErrors.js:*:*) { + at Object. (/test/fixtures/errors/error_aggregateTwoErrors.js:*:*) { code: 'ERR0' }, Error: second error - at Object. (*error_aggregateTwoErrors.js:*:*) { + at Object. (/test/fixtures/errors/error_aggregateTwoErrors.js:*:*) { code: 'ERR1' } ] } -Node.js * +Node.js diff --git a/test/fixtures/errors/error_exit.snapshot b/test/fixtures/errors/error_exit.snapshot index 6cfb13f84f1392..5b65a593461ebd 100644 --- a/test/fixtures/errors/error_exit.snapshot +++ b/test/fixtures/errors/error_exit.snapshot @@ -1,5 +1,5 @@ Exiting with code=1 -node:internal*assert*utils:* +node:internal/assert/utils:* throw error; ^ @@ -7,7 +7,7 @@ AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: 1 !== 2 - at Object. (*error_exit.js:*:*) { + at Object. (/test/fixtures/errors/error_exit.js:*:*) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 1, @@ -16,4 +16,4 @@ AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: diff: 'simple' } -Node.js * +Node.js diff --git a/test/fixtures/errors/error_with_nul.snapshot b/test/fixtures/errors/error_with_nul.snapshot index 7dd4d665555874863591d5ba33d4833ebea75717..a7b40162fe206122e1c24c88a938e8a57d24a570 100644 GIT binary patch delta 106 zcmZ3-_={04F)5iLB{hvpza+J|L_aOFqNKDawOBv3s3^avSbrj?zZedgNF!V_Jqr9b SdHE@+x@DxCF)5iLB{hvpYoeS#qt?V`BOq~Ffk}%C0FV6$i2wiq diff --git a/test/fixtures/errors/events_unhandled_error_common_trace.snapshot b/test/fixtures/errors/events_unhandled_error_common_trace.snapshot index a482c105b75e48..85236acce9aba7 100644 --- a/test/fixtures/errors/events_unhandled_error_common_trace.snapshot +++ b/test/fixtures/errors/events_unhandled_error_common_trace.snapshot @@ -1,12 +1,12 @@ node:events:* - throw er; * Unhandled 'error' event + throw er; // Unhandled 'error' event ^ Error: foo:bar - at bar (*events_unhandled_error_common_trace.js:*:*) - at foo (*events_unhandled_error_common_trace.js:*:*) + at bar (/test/fixtures/errors/events_unhandled_error_common_trace.js:*:*) + at foo (/test/fixtures/errors/events_unhandled_error_common_trace.js:*:*) Emitted 'error' event at: - at quux (*events_unhandled_error_common_trace.js:*:*) - at Object. (*events_unhandled_error_common_trace.js:*:*) + at quux (/test/fixtures/errors/events_unhandled_error_common_trace.js:*:*) + at Object. (/test/fixtures/errors/events_unhandled_error_common_trace.js:*:*) -Node.js * +Node.js diff --git a/test/fixtures/errors/events_unhandled_error_nexttick.snapshot b/test/fixtures/errors/events_unhandled_error_nexttick.snapshot index 450d4910a385b5..a7d0ede2978a85 100644 --- a/test/fixtures/errors/events_unhandled_error_nexttick.snapshot +++ b/test/fixtures/errors/events_unhandled_error_nexttick.snapshot @@ -1,10 +1,10 @@ node:events:* - throw er; * Unhandled 'error' event + throw er; // Unhandled 'error' event ^ Error - at Object. (*events_unhandled_error_nexttick.js:*:*) + at Object. (/test/fixtures/errors/events_unhandled_error_nexttick.js:*:*) Emitted 'error' event at: - at *events_unhandled_error_nexttick.js:*:* + at /test/fixtures/errors/events_unhandled_error_nexttick.js:*:* -Node.js * +Node.js diff --git a/test/fixtures/errors/events_unhandled_error_sameline.snapshot b/test/fixtures/errors/events_unhandled_error_sameline.snapshot index 520601e617083c..db0dffbc65a5df 100644 --- a/test/fixtures/errors/events_unhandled_error_sameline.snapshot +++ b/test/fixtures/errors/events_unhandled_error_sameline.snapshot @@ -1,10 +1,10 @@ node:events:* - throw er; * Unhandled 'error' event + throw er; // Unhandled 'error' event ^ Error - at Object. (*events_unhandled_error_sameline.js:*:*) + at Object. (/test/fixtures/errors/events_unhandled_error_sameline.js:*:*) Emitted 'error' event at: - at Object. (*events_unhandled_error_sameline.js:*:*) + at Object. (/test/fixtures/errors/events_unhandled_error_sameline.js:*:*) -Node.js * +Node.js diff --git a/test/fixtures/errors/events_unhandled_error_subclass.snapshot b/test/fixtures/errors/events_unhandled_error_subclass.snapshot index 6a9cfd4a1a0b21..b6b92ce586930d 100644 --- a/test/fixtures/errors/events_unhandled_error_subclass.snapshot +++ b/test/fixtures/errors/events_unhandled_error_subclass.snapshot @@ -1,10 +1,10 @@ node:events:* - throw er; * Unhandled 'error' event + throw er; // Unhandled 'error' event ^ Error - at Object. (*events_unhandled_error_subclass.js:*:*) + at Object. (/test/fixtures/errors/events_unhandled_error_subclass.js:*:*) Emitted 'error' event on Foo instance at: - at Object. (*events_unhandled_error_subclass.js:*:*) + at Object. (/test/fixtures/errors/events_unhandled_error_subclass.js:*:*) -Node.js * +Node.js diff --git a/test/fixtures/errors/force_colors.snapshot b/test/fixtures/errors/force_colors.snapshot index a93eea815b3152..778368d3760d95 100644 --- a/test/fixtures/errors/force_colors.snapshot +++ b/test/fixtures/errors/force_colors.snapshot @@ -1,9 +1,9 @@ -*force_colors.js:2 +/test/fixtures/errors/force_colors.js:2 throw new Error('Should include grayed stack trace'); ^ Error: Should include grayed stack trace - at Object. (/test*force_colors.js:2:7) + at Object. (/test/fixtures/errors/force_colors.js:2:7)  at *  at *  at * @@ -12,4 +12,4 @@ Error: Should include grayed stack trace  at *  at * -Node.js * +Node.js diff --git a/test/fixtures/errors/if-error-has-good-stack.snapshot b/test/fixtures/errors/if-error-has-good-stack.snapshot index ba76800b970028..aa367bf48d2770 100644 --- a/test/fixtures/errors/if-error-has-good-stack.snapshot +++ b/test/fixtures/errors/if-error-has-good-stack.snapshot @@ -3,24 +3,24 @@ node:assert:* ^ AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error - at z (*if-error-has-good-stack.js:*:*) - at y (*if-error-has-good-stack.js:*:*) - at x (*if-error-has-good-stack.js:*:*) - at Object. (*if-error-has-good-stack.js:*:*) - at c (*if-error-has-good-stack.js:*:*) - at b (*if-error-has-good-stack.js:*:*) - at a (*if-error-has-good-stack.js:*:*) - at Object. (*if-error-has-good-stack.js:*:*) { + at z (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at y (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at x (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at Object. (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at c (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at b (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at a (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at Object. (/test/fixtures/errors/if-error-has-good-stack.js:*:*) { generatedMessage: false, code: 'ERR_ASSERTION', actual: Error: test error - at c (*if-error-has-good-stack.js:*:*) - at b (*if-error-has-good-stack.js:*:*) - at a (*if-error-has-good-stack.js:*:*) - at Object. (*if-error-has-good-stack.js:*:*), + at c (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at b (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at a (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at Object. (/test/fixtures/errors/if-error-has-good-stack.js:*:*), expected: null, operator: 'ifError', diff: 'simple' } -Node.js * +Node.js diff --git a/test/fixtures/errors/promise_always_throw_unhandled.snapshot b/test/fixtures/errors/promise_always_throw_unhandled.snapshot index cf42c69efdc372..8d0f4a8ba76d66 100644 --- a/test/fixtures/errors/promise_always_throw_unhandled.snapshot +++ b/test/fixtures/errors/promise_always_throw_unhandled.snapshot @@ -1,4 +1,4 @@ -*promise_always_throw_unhandled.js:* +/test/fixtures/errors/promise_always_throw_unhandled.js:* throw new Error('One'); ^ @@ -14,4 +14,4 @@ Error: One at * at * -Node.js * +Node.js diff --git a/test/fixtures/errors/promise_unhandled_warn_with_error.snapshot b/test/fixtures/errors/promise_unhandled_warn_with_error.snapshot index 2a2ec57dc1cfcd..b94a9ac6033bd6 100644 --- a/test/fixtures/errors/promise_unhandled_warn_with_error.snapshot +++ b/test/fixtures/errors/promise_unhandled_warn_with_error.snapshot @@ -1,4 +1,4 @@ -(node:*) UnhandledPromiseRejectionWarning: Error: alas +(node:) UnhandledPromiseRejectionWarning: Error: alas at * at * at * @@ -7,5 +7,5 @@ at * at * at * -(Use `* --trace-warnings ...` to show where the warning was created) -(node:*) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https:*nodejs.org*api*cli.html#cli_unhandled_rejections_mode). (rejection id: 1) +(Use `node --trace-warnings ...` to show where the warning was created) +(node:) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) diff --git a/test/fixtures/errors/test-no-extra-info-on-fatal-exception.snapshot b/test/fixtures/errors/test-no-extra-info-on-fatal-exception.snapshot index 26e096170b3fbd..53d09f5c9872dd 100644 --- a/test/fixtures/errors/test-no-extra-info-on-fatal-exception.snapshot +++ b/test/fixtures/errors/test-no-extra-info-on-fatal-exception.snapshot @@ -1,6 +1,6 @@ -*test-no-extra-info-on-fatal-exception.js:7 +/test/fixtures/errors/test-no-extra-info-on-fatal-exception.js:7 throw new Error('foo'); ^ Error: foo - at Object. (*test-no-extra-info-on-fatal-exception.js:7:7) + at Object. (/test/fixtures/errors/test-no-extra-info-on-fatal-exception.js:7:7) diff --git a/test/fixtures/errors/throw_custom_error.snapshot b/test/fixtures/errors/throw_custom_error.snapshot index ba80020c897a32..565ccba66a3e6c 100644 --- a/test/fixtures/errors/throw_custom_error.snapshot +++ b/test/fixtures/errors/throw_custom_error.snapshot @@ -1,7 +1,7 @@ -*throw_custom_error.js:* +/test/fixtures/errors/throw_custom_error.js:* throw ({ name: 'MyCustomError', message: 'This is a custom message' }); ^ { name: 'MyCustomError', message: 'This is a custom message' } -Node.js * +Node.js diff --git a/test/fixtures/errors/throw_error_with_getter_throw.snapshot b/test/fixtures/errors/throw_error_with_getter_throw.snapshot index 1786f96f19856c..5b5974c80701e7 100644 --- a/test/fixtures/errors/throw_error_with_getter_throw.snapshot +++ b/test/fixtures/errors/throw_error_with_getter_throw.snapshot @@ -1,8 +1,8 @@ -*throw_error_with_getter_throw.js:* -throw { * eslint-disable-line no-throw-literal +/test/fixtures/errors/throw_error_with_getter_throw.js:* +throw { // eslint-disable-line no-throw-literal ^ [object Object] -(Use `* --trace-uncaught ...` to show where the exception was thrown) +(Use `node --trace-uncaught ...` to show where the exception was thrown) -Node.js * +Node.js diff --git a/test/fixtures/errors/throw_in_eval_anonymous.snapshot b/test/fixtures/errors/throw_in_eval_anonymous.snapshot index e6f731f4d99cd7..e40c3296f36fc7 100644 --- a/test/fixtures/errors/throw_in_eval_anonymous.snapshot +++ b/test/fixtures/errors/throw_in_eval_anonymous.snapshot @@ -3,6 +3,6 @@ ^ Error: error in anonymous script - at eval (eval at (*throw_in_eval_anonymous.js:*:*), :*:*) + at eval (eval at (/test/fixtures/errors/throw_in_eval_anonymous.js:*:*), :*:*) -Node.js * +Node.js diff --git a/test/fixtures/errors/throw_in_eval_named.snapshot b/test/fixtures/errors/throw_in_eval_named.snapshot index 3be4c3584735fb..4677dd195ab38c 100644 --- a/test/fixtures/errors/throw_in_eval_named.snapshot +++ b/test/fixtures/errors/throw_in_eval_named.snapshot @@ -5,4 +5,4 @@ evalscript.js:* Error: error in named script at eval (evalscript.js:*:*) -Node.js * +Node.js diff --git a/test/fixtures/errors/throw_in_line_with_tabs.snapshot b/test/fixtures/errors/throw_in_line_with_tabs.snapshot index 29c7e1ec3587d9..1a70bd554d55d2 100644 --- a/test/fixtures/errors/throw_in_line_with_tabs.snapshot +++ b/test/fixtures/errors/throw_in_line_with_tabs.snapshot @@ -1,8 +1,8 @@ before -*throw_in_line_with_tabs.js:* +/test/fixtures/errors/throw_in_line_with_tabs.js:* throw ({ foo: 'bar' }); ^ { foo: 'bar' } -Node.js * +Node.js diff --git a/test/fixtures/errors/throw_non_error.snapshot b/test/fixtures/errors/throw_non_error.snapshot index 4ad80df4f6a9cb..6ee2125fa72d2c 100644 --- a/test/fixtures/errors/throw_non_error.snapshot +++ b/test/fixtures/errors/throw_non_error.snapshot @@ -1,7 +1,7 @@ -*throw_non_error.js:* +/test/fixtures/errors/throw_non_error.js:* throw ({ foo: 'bar' }); ^ { foo: 'bar' } -Node.js * +Node.js diff --git a/test/fixtures/errors/throw_null.snapshot b/test/fixtures/errors/throw_null.snapshot index 1a1191ca9ced90..7831579ca101a4 100644 --- a/test/fixtures/errors/throw_null.snapshot +++ b/test/fixtures/errors/throw_null.snapshot @@ -1,8 +1,8 @@ -*throw_null.js:* +/test/fixtures/errors/throw_null.js:* throw null; ^ null -(Use `* --trace-uncaught ...` to show where the exception was thrown) +(Use `node --trace-uncaught ...` to show where the exception was thrown) -Node.js * +Node.js diff --git a/test/fixtures/errors/throw_undefined.snapshot b/test/fixtures/errors/throw_undefined.snapshot index b6b6060b17839f..bdb2ff1b1322dc 100644 --- a/test/fixtures/errors/throw_undefined.snapshot +++ b/test/fixtures/errors/throw_undefined.snapshot @@ -1,8 +1,8 @@ -*throw_undefined.js:* +/test/fixtures/errors/throw_undefined.js:* throw undefined; ^ undefined -(Use `* --trace-uncaught ...` to show where the exception was thrown) +(Use `node --trace-uncaught ...` to show where the exception was thrown) -Node.js * +Node.js diff --git a/test/fixtures/errors/timeout_throw.snapshot b/test/fixtures/errors/timeout_throw.snapshot index ddbb221c27ca3a..6f50219b54ad41 100644 --- a/test/fixtures/errors/timeout_throw.snapshot +++ b/test/fixtures/errors/timeout_throw.snapshot @@ -1,10 +1,10 @@ -*timeout_throw.js:* +/test/fixtures/errors/timeout_throw.js:* undefined_reference_error_maker; ^ ReferenceError: undefined_reference_error_maker is not defined - at Timeout._onTimeout (*timeout_throw.js:*:*) - at listOnTimeout (node:internal*timers:*:*) - at process.processTimers (node:internal*timers:*:*) + at Timeout._onTimeout (/test/fixtures/errors/timeout_throw.js:*:*) + at listOnTimeout (node:internal/timers:*:*) + at process.processTimers (node:internal/timers:*:*) -Node.js * +Node.js diff --git a/test/fixtures/errors/undefined_reference_in_new_context.snapshot b/test/fixtures/errors/undefined_reference_in_new_context.snapshot index 798306c282bfd1..eb0e82d163567e 100644 --- a/test/fixtures/errors/undefined_reference_in_new_context.snapshot +++ b/test/fixtures/errors/undefined_reference_in_new_context.snapshot @@ -8,6 +8,6 @@ ReferenceError: foo is not defined at Script.runInContext (node:vm:*:*) at Script.runInNewContext (node:vm:*:*) at Object.runInNewContext (node:vm:*:*) - at Object. (*undefined_reference_in_new_context.js:*:*) + at Object. (/test/fixtures/errors/undefined_reference_in_new_context.js:*:*) -Node.js * +Node.js diff --git a/test/fixtures/errors/unhandled_promise_trace_warnings.snapshot b/test/fixtures/errors/unhandled_promise_trace_warnings.snapshot index 94c709b17788c4..b0af9d31a97b48 100644 --- a/test/fixtures/errors/unhandled_promise_trace_warnings.snapshot +++ b/test/fixtures/errors/unhandled_promise_trace_warnings.snapshot @@ -1,4 +1,4 @@ -(node:*) UnhandledPromiseRejectionWarning: Error: This was rejected +(node:) UnhandledPromiseRejectionWarning: Error: This was rejected at * at * at * @@ -11,7 +11,7 @@ at * at * at * -(node:*) Error: This was rejected +(node:) Error: This was rejected at * at * at * @@ -20,7 +20,7 @@ at * at * at * -(node:*) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1) +(node:) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1) at * at * at Promise.then () diff --git a/test/fixtures/eval/eval_messages.snapshot b/test/fixtures/eval/eval_messages.snapshot index a80c5eee8e609f..74918b00248dfc 100644 --- a/test/fixtures/eval/eval_messages.snapshot +++ b/test/fixtures/eval/eval_messages.snapshot @@ -6,7 +6,11 @@ The 'with' statement is not supported. All symbols in a 'with' block will have t SyntaxError: Strict mode code may not include a with statement -Node.js * + + + + +Node.js 42 42 [eval]:1 @@ -15,14 +19,30 @@ throw new Error("hello") Error: hello -Node.js * + + + + + + + + +Node.js [eval]:1 throw new Error("hello") ^ Error: hello -Node.js * + + + + + + + + +Node.js 100 [eval]:1 var x = 100; y = x; @@ -30,21 +50,29 @@ var x = 100; y = x; ReferenceError: y is not defined -Node.js * + + + + + + + + +Node.js [eval]:1 var ______________________________________________; throw 10 ^ 10 -(Use `* --trace-uncaught ...` to show where the exception was thrown) +(Use `node --trace-uncaught ...` to show where the exception was thrown) -Node.js * +Node.js [eval]:1 var ______________________________________________; throw 10 ^ 10 -(Use `* --trace-uncaught ...` to show where the exception was thrown) +(Use `node --trace-uncaught ...` to show where the exception was thrown) -Node.js * +Node.js done diff --git a/test/fixtures/eval/eval_typescript.snapshot b/test/fixtures/eval/eval_typescript.snapshot index df0c2211241df4..49c034895ed92d 100644 --- a/test/fixtures/eval/eval_typescript.snapshot +++ b/test/fixtures/eval/eval_typescript.snapshot @@ -5,14 +5,26 @@ TypeScript enum is not supported in strip-only mode SyntaxError: Unexpected reserved word -Node.js * + + + + +Node.js [eval]:1 throw new SyntaxError("hello") ^ SyntaxError: hello -Node.js * + + + + + + + + +Node.js [eval]:1 const foo; ^^^ @@ -20,7 +32,11 @@ const foo; SyntaxError: Missing initializer in const declaration -Node.js * + + + + +Node.js 100 undefined false @@ -31,7 +47,11 @@ interface Foo{};const foo; SyntaxError: Unexpected identifier 'Foo' -Node.js * + + + + +Node.js [eval]:1 function foo(){ await Promise.resolve(1)}; ^^^^^ @@ -39,4 +59,8 @@ await isn't allowed in non-async function SyntaxError: await is only valid in async functions and the top level bodies of modules -Node.js * + + + + +Node.js diff --git a/test/fixtures/eval/stdin_messages.snapshot b/test/fixtures/eval/stdin_messages.snapshot index d7ec8a0d17c859..2e2816df251be0 100644 --- a/test/fixtures/eval/stdin_messages.snapshot +++ b/test/fixtures/eval/stdin_messages.snapshot @@ -6,7 +6,15 @@ The 'with' statement is not supported. All symbols in a 'with' block will have t SyntaxError: Strict mode code may not include a with statement -Node.js * + + + + + + + + +Node.js 42 42 [stdin]:1 @@ -15,14 +23,34 @@ throw new Error("hello") Error: hello -Node.js * + + + + + + + + + + +Node.js [stdin]:1 throw new Error("hello") ^ Error: hello -Node.js * + + + + + + + + + + +Node.js 100 [stdin]:1 let x = 100; y = x; @@ -30,21 +58,31 @@ let x = 100; y = x; ReferenceError: y is not defined -Node.js * + + + + + + + + + + +Node.js [stdin]:1 let ______________________________________________; throw 10 ^ 10 -(Use `* --trace-uncaught ...` to show where the exception was thrown) +(Use `node --trace-uncaught ...` to show where the exception was thrown) -Node.js * +Node.js [stdin]:1 let ______________________________________________; throw 10 ^ 10 -(Use `* --trace-uncaught ...` to show where the exception was thrown) +(Use `node --trace-uncaught ...` to show where the exception was thrown) -Node.js * +Node.js done diff --git a/test/fixtures/eval/stdin_typescript.snapshot b/test/fixtures/eval/stdin_typescript.snapshot index d693ec34f5a802..7bf7fbaa3bfb97 100644 --- a/test/fixtures/eval/stdin_typescript.snapshot +++ b/test/fixtures/eval/stdin_typescript.snapshot @@ -5,7 +5,15 @@ TypeScript enum is not supported in strip-only mode SyntaxError: Unexpected reserved word -Node.js * + + + + + + + + +Node.js [stdin]:1 enum Foo{}; ^^^^ @@ -13,21 +21,49 @@ TypeScript enum is not supported in strip-only mode SyntaxError: Unexpected reserved word -Node.js * + + + + + + + + +Node.js [stdin]:1 throw new SyntaxError("hello") ^ SyntaxError: hello -Node.js * + + + + + + + + + + +Node.js [stdin]:1 throw new SyntaxError("hello") ^ SyntaxError: hello -Node.js * + + + + + + + + + + +Node.js [stdin]:1 const foo; ^^^ @@ -35,7 +71,15 @@ const foo; SyntaxError: Missing initializer in const declaration -Node.js * + + + + + + + + +Node.js [stdin]:1 const foo; ^^^ @@ -43,7 +87,15 @@ const foo; SyntaxError: Missing initializer in const declaration -Node.js * + + + + + + + + +Node.js 100 100 undefined @@ -57,7 +109,15 @@ interface Foo{};const foo; SyntaxError: Unexpected identifier 'Foo' -Node.js * + + + + + + + + +Node.js [stdin]:1 interface Foo{};const foo; ^^^^^^^^^ @@ -65,7 +125,15 @@ interface Foo{};const foo; SyntaxError: Unexpected strict mode reserved word -Node.js * + + + + + + + + +Node.js [stdin]:1 function foo(){ await Promise.resolve(1)}; ^^^^^ @@ -73,7 +141,15 @@ await isn't allowed in non-async function SyntaxError: await is only valid in async functions and the top level bodies of modules -Node.js * + + + + + + + + +Node.js [stdin]:1 function foo(){ await Promise.resolve(1)}; ^^^^^ @@ -81,5 +157,13 @@ await isn't allowed in non-async function SyntaxError: await is only valid in async functions and the top level bodies of modules -Node.js * + + + + + + + + +Node.js done diff --git a/test/fixtures/source-map/output/source_map_enclosing_function.snapshot b/test/fixtures/source-map/output/source_map_enclosing_function.snapshot index a215a1ab9c0d2b..3279d9c67e4169 100644 --- a/test/fixtures/source-map/output/source_map_enclosing_function.snapshot +++ b/test/fixtures/source-map/output/source_map_enclosing_function.snapshot @@ -9,4 +9,4 @@ Error: an error! at functionA (*/test/fixtures/source-map/enclosing-call-site.js:2:3) at Object. (*/test/fixtures/source-map/enclosing-call-site.js:24:3) -Node.js * +Node.js diff --git a/test/fixtures/source-map/output/source_map_eval.snapshot b/test/fixtures/source-map/output/source_map_eval.snapshot index c808fb414473d6..225022d87bc142 100644 --- a/test/fixtures/source-map/output/source_map_eval.snapshot +++ b/test/fixtures/source-map/output/source_map_eval.snapshot @@ -7,4 +7,4 @@ ReferenceError: alert is not defined at eval (*/synthesized/workspace/tabs-source-url.coffee:1:14) at Object. (*/test/fixtures/source-map/output/source_map_eval.js:11:1) -Node.js * +Node.js diff --git a/test/fixtures/source-map/output/source_map_no_source_file.snapshot b/test/fixtures/source-map/output/source_map_no_source_file.snapshot index 6d0e0cf6db727e..82aefc02f1c5ef 100644 --- a/test/fixtures/source-map/output/source_map_no_source_file.snapshot +++ b/test/fixtures/source-map/output/source_map_no_source_file.snapshot @@ -6,4 +6,4 @@ Error: foo at Throw (*/test/fixtures/source-map/file-not-exists.ts:2:9) at Object. (*/test/fixtures/source-map/file-not-exists.ts:5:1) -Node.js * +Node.js diff --git a/test/fixtures/source-map/output/source_map_reference_error_tabs.snapshot b/test/fixtures/source-map/output/source_map_reference_error_tabs.snapshot index fce296c1d56848..354c13891c5268 100644 --- a/test/fixtures/source-map/output/source_map_reference_error_tabs.snapshot +++ b/test/fixtures/source-map/output/source_map_reference_error_tabs.snapshot @@ -6,4 +6,4 @@ ReferenceError: alert is not defined at Object. (*/test/fixtures/source-map/tabs.coffee:26:2) at Object. (*/test/fixtures/source-map/tabs.coffee:1:14) -Node.js * +Node.js diff --git a/test/fixtures/source-map/output/source_map_throw_async_stack_trace.snapshot b/test/fixtures/source-map/output/source_map_throw_async_stack_trace.snapshot index 2c9bd70cf4d45f..ca8334b8ed29e2 100644 --- a/test/fixtures/source-map/output/source_map_throw_async_stack_trace.snapshot +++ b/test/fixtures/source-map/output/source_map_throw_async_stack_trace.snapshot @@ -7,4 +7,4 @@ Error: message at async Promise.all (index 3) at async main (*/test/fixtures/source-map/output/source_map_throw_async_stack_trace.mts:17:3) -Node.js * +Node.js diff --git a/test/fixtures/source-map/output/source_map_throw_construct.snapshot b/test/fixtures/source-map/output/source_map_throw_construct.snapshot index 292eb0b2eac353..21518d761c5219 100644 --- a/test/fixtures/source-map/output/source_map_throw_construct.snapshot +++ b/test/fixtures/source-map/output/source_map_throw_construct.snapshot @@ -9,4 +9,4 @@ Error: message * * -Node.js * +Node.js diff --git a/test/fixtures/source-map/output/source_map_throw_first_tick.snapshot b/test/fixtures/source-map/output/source_map_throw_first_tick.snapshot index 29346a81836160..cf71446be0b388 100644 --- a/test/fixtures/source-map/output/source_map_throw_first_tick.snapshot +++ b/test/fixtures/source-map/output/source_map_throw_first_tick.snapshot @@ -7,4 +7,4 @@ Error: an exception at branch (*/test/fixtures/source-map/typescript-throw.ts:18:11) at Object. (*/test/fixtures/source-map/typescript-throw.ts:24:1) -Node.js * +Node.js diff --git a/test/fixtures/source-map/output/source_map_throw_icu.snapshot b/test/fixtures/source-map/output/source_map_throw_icu.snapshot index 8b556a584fec2e..cdac638d5c733f 100644 --- a/test/fixtures/source-map/output/source_map_throw_icu.snapshot +++ b/test/fixtures/source-map/output/source_map_throw_icu.snapshot @@ -6,4 +6,4 @@ Error: an error at Object.createElement (*/test/fixtures/source-map/icu.jsx:3:23) at Object. (*/test/fixtures/source-map/icu.jsx:9:5) -Node.js * +Node.js diff --git a/test/fixtures/source-map/output/source_map_throw_set_immediate.snapshot b/test/fixtures/source-map/output/source_map_throw_set_immediate.snapshot index 053ed5692d6a80..6415b9f8b715db 100644 --- a/test/fixtures/source-map/output/source_map_throw_set_immediate.snapshot +++ b/test/fixtures/source-map/output/source_map_throw_set_immediate.snapshot @@ -7,4 +7,4 @@ Error: goodbye at Immediate. (*/test/fixtures/source-map/uglify-throw-original.js:9:3) * -Node.js * +Node.js diff --git a/test/fixtures/test-runner/output/assertion-color-tty.snapshot b/test/fixtures/test-runner/output/assertion-color-tty.snapshot index 4409d6f5e3e939..56def5cdaa5f79 100644 --- a/test/fixtures/test-runner/output/assertion-color-tty.snapshot +++ b/test/fixtures/test-runner/output/assertion-color-tty.snapshot @@ -14,7 +14,7 @@ [31m✖ failing assertion [90m(*ms)[39m[39m [AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: [32mactual[39m [31mexpected[39m - + [39m'[39m[32m![39m[39mH[39m[39me[39m[39ml[39m[39ml[39m[39mo[39m[39m [39m[39mW[39m[39mo[39m[39mr[39m[39ml[39m[39md[39m[31m![39m[39m'[39m ] { generatedMessage: [33mtrue[39m, diff --git a/test/fixtures/test-runner/output/coverage-short-filename.snapshot b/test/fixtures/test-runner/output/coverage-short-filename.snapshot index 22fc1aea5e8d68..fb2bc40ec855fc 100644 --- a/test/fixtures/test-runner/output/coverage-short-filename.snapshot +++ b/test/fixtures/test-runner/output/coverage-short-filename.snapshot @@ -20,6 +20,6 @@ ok 1 - Coverage Print Short Filename # --------------------------------------------------------------------------------------- # a.js | 55.77 | 100.00 | 0.00 | 5-7 9-11 13-15 17-19 29-30 40-42 45-47 50-52 # --------------------------------------------------------------------------------------- -# all files | 55.77 | 100.00 | 0.00 | +# all files | 55.77 | 100.00 | 0.00 | # --------------------------------------------------------------------------------------- # end of coverage report diff --git a/test/fixtures/test-runner/output/coverage-width-100-uncovered-lines.snapshot b/test/fixtures/test-runner/output/coverage-width-100-uncovered-lines.snapshot index cd893fb8047ed8..63c142944a1826 100644 --- a/test/fixtures/test-runner/output/coverage-width-100-uncovered-lines.snapshot +++ b/test/fixtures/test-runner/output/coverage-width-100-uncovered-lines.snapshot @@ -18,16 +18,16 @@ ok 1 - Coverage Print Fixed Width 100 # -------------------------------------------------------------------------------------------------- # file | line % | branch % | funcs % | uncovered lines # -------------------------------------------------------------------------------------------------- -# test | | | | -# fixtures | | | | -# test-runner | | | | -# coverage-snap | | | | +# test | | | | +# fixtures | | | | +# test-runner | | | | +# coverage-snap | | | | # a.js | 55.77 | 100.00 | 0.00 | 5-7 9-11 13-15 17-19 … # b.js | 45.45 | 100.00 | 0.00 | 5-7 9-11 # many-uncovered-lines.js | 50.99 | 42.86 | 1.92 | 5-7 9-11 13-15 17-19 … -# output | | | | -# coverage-width-100-uncovered-lines.mjs | 100.00 | 100.00 | 100.00 | +# output | | | | +# coverage-width-100-uncovered-lines.mjs | 100.00 | 100.00 | 100.00 | # -------------------------------------------------------------------------------------------------- -# all files | 53.13 | 60.00 | 1.61 | +# all files | 53.13 | 60.00 | 1.61 | # -------------------------------------------------------------------------------------------------- # end of coverage report diff --git a/test/fixtures/test-runner/output/coverage-width-100.snapshot b/test/fixtures/test-runner/output/coverage-width-100.snapshot index cfee0864d476cf..6efc7b31644405 100644 --- a/test/fixtures/test-runner/output/coverage-width-100.snapshot +++ b/test/fixtures/test-runner/output/coverage-width-100.snapshot @@ -18,15 +18,15 @@ ok 1 - Coverage Print Fixed Width 100 # -------------------------------------------------------------------------------------------------- # file | line % | branch % | funcs % | uncovered lines # -------------------------------------------------------------------------------------------------- -# test | | | | -# fixtures | | | | -# test-runner | | | | -# coverage-snap | | | | +# test | | | | +# fixtures | | | | +# test-runner | | | | +# coverage-snap | | | | # a.js | 55.77 | 100.00 | 0.00 | 5-7 9-11 13-15 17-19 29-30 40-42 45-4… # b.js | 45.45 | 100.00 | 0.00 | 5-7 9-11 -# output | | | | -# coverage-width-100.mjs | 100.00 | 100.00 | 100.00 | +# output | | | | +# coverage-width-100.mjs | 100.00 | 100.00 | 100.00 | # -------------------------------------------------------------------------------------------------- -# all files | 61.84 | 100.00 | 0.00 | +# all files | 61.84 | 100.00 | 0.00 | # -------------------------------------------------------------------------------------------------- # end of coverage report diff --git a/test/fixtures/test-runner/output/coverage-width-150-uncovered-lines.snapshot b/test/fixtures/test-runner/output/coverage-width-150-uncovered-lines.snapshot index 01d81d2b6ba359..36c0bd9bfad42f 100644 --- a/test/fixtures/test-runner/output/coverage-width-150-uncovered-lines.snapshot +++ b/test/fixtures/test-runner/output/coverage-width-150-uncovered-lines.snapshot @@ -18,16 +18,16 @@ ok 1 - Coverage Print Fixed Width 150 # ---------------------------------------------------------------------------------------------------------------------------------------------------- # file | line % | branch % | funcs % | uncovered lines # ---------------------------------------------------------------------------------------------------------------------------------------------------- -# test | | | | -# fixtures | | | | -# test-runner | | | | -# coverage-snap | | | | +# test | | | | +# fixtures | | | | +# test-runner | | | | +# coverage-snap | | | | # a.js | 55.77 | 100.00 | 0.00 | 5-7 9-11 13-15 17-19 29-30 40-42 45-47 50-52 # b.js | 45.45 | 100.00 | 0.00 | 5-7 9-11 # many-uncovered-lines.js | 50.99 | 42.86 | 1.92 | 5-7 9-11 13-15 17-19 29-30 40-42 45-47 50-52 55-57 59-61 63-65 67-69 91… -# output | | | | -# coverage-width-150-uncovered-lines.mjs | 100.00 | 100.00 | 100.00 | +# output | | | | +# coverage-width-150-uncovered-lines.mjs | 100.00 | 100.00 | 100.00 | # ---------------------------------------------------------------------------------------------------------------------------------------------------- -# all files | 53.13 | 60.00 | 1.61 | +# all files | 53.13 | 60.00 | 1.61 | # ---------------------------------------------------------------------------------------------------------------------------------------------------- # end of coverage report diff --git a/test/fixtures/test-runner/output/coverage-width-150.snapshot b/test/fixtures/test-runner/output/coverage-width-150.snapshot index dd5db21f7fed5e..693c913ea1e70e 100644 --- a/test/fixtures/test-runner/output/coverage-width-150.snapshot +++ b/test/fixtures/test-runner/output/coverage-width-150.snapshot @@ -18,15 +18,15 @@ ok 1 - Coverage Print Fixed Width 150 # -------------------------------------------------------------------------------------------------------- # file | line % | branch % | funcs % | uncovered lines # -------------------------------------------------------------------------------------------------------- -# test | | | | -# fixtures | | | | -# test-runner | | | | -# coverage-snap | | | | +# test | | | | +# fixtures | | | | +# test-runner | | | | +# coverage-snap | | | | # a.js | 55.77 | 100.00 | 0.00 | 5-7 9-11 13-15 17-19 29-30 40-42 45-47 50-52 # b.js | 45.45 | 100.00 | 0.00 | 5-7 9-11 -# output | | | | -# coverage-width-150.mjs | 100.00 | 100.00 | 100.00 | +# output | | | | +# coverage-width-150.mjs | 100.00 | 100.00 | 100.00 | # -------------------------------------------------------------------------------------------------------- -# all files | 61.84 | 100.00 | 0.00 | +# all files | 61.84 | 100.00 | 0.00 | # -------------------------------------------------------------------------------------------------------- # end of coverage report diff --git a/test/fixtures/test-runner/output/coverage-width-40.snapshot b/test/fixtures/test-runner/output/coverage-width-40.snapshot index c706aecfa49058..532ce7e3170357 100644 --- a/test/fixtures/test-runner/output/coverage-width-40.snapshot +++ b/test/fixtures/test-runner/output/coverage-width-40.snapshot @@ -18,17 +18,17 @@ ok 1 - Coverage Print Fixed Width 40 # -------------------------------------- # file | line % | branch % | funcs % | … # -------------------------------------- -# test | | | | -# fixtures | | | | -# test-runner | | | | -# coverage-snap | | | | -# …g-long-sub-dir | | | | +# test | | | | +# fixtures | | | | +# test-runner | | | | +# coverage-snap | | | | +# …g-long-sub-dir | | | | # c.js | 55.77 | 100.00 | 0.00 | … # a.js | 55.77 | 100.00 | 0.00 | … # b.js | 45.45 | 100.00 | 0.00 | … -# output | | | | -# …e-width-40.mjs | 100.00 | 100.00 | 100.00 | +# output | | | | +# …e-width-40.mjs | 100.00 | 100.00 | 100.00 | # -------------------------------------- -# all files | 60.00 | 100.00 | 0.00 | +# all files | 60.00 | 100.00 | 0.00 | # -------------------------------------- # end of coverage report diff --git a/test/fixtures/test-runner/output/coverage-width-80-color.snapshot b/test/fixtures/test-runner/output/coverage-width-80-color.snapshot index 8584d608fa43d8..986d18e039bd81 100644 --- a/test/fixtures/test-runner/output/coverage-width-80-color.snapshot +++ b/test/fixtures/test-runner/output/coverage-width-80-color.snapshot @@ -11,16 +11,16 @@ ℹ ------------------------------------------------------------------------------ ℹ file | [31mline %[34m | [31mbranch %[34m | [31mfuncs %[34m | uncovered … ℹ ------------------------------------------------------------------------------ -ℹ test | [31m [34m | [31m [34m | [31m [34m | -ℹ fixtures | [31m [34m | [31m [34m | [31m [34m | -ℹ test-runner | [31m [34m | [31m [34m | [31m [34m | -ℹ coverage-snap | [31m [34m | [31m [34m | [31m [34m | +ℹ test | [31m [34m | [31m [34m | [31m [34m | +ℹ fixtures | [31m [34m | [31m [34m | [31m [34m | +ℹ test-runner | [31m [34m | [31m [34m | [31m [34m | +ℹ coverage-snap | [31m [34m | [31m [34m | [31m [34m | ℹ [33ma.js [34m | [33m 55.77[34m | [32m 100.00[34m | [31m 0.00[34m | 5-7 9-11 1… ℹ [31mb.js [34m | [31m 45.45[34m | [32m 100.00[34m | [31m 0.00[34m | 5-7 9-11 -ℹ output | [31m [34m | [31m [34m | [31m [34m | -ℹ [32mcoverage-width-80-color.mjs [34m | [32m100.00[34m | [32m 100.00[34m | [32m 100.00[34m | +ℹ output | [31m [34m | [31m [34m | [31m [34m | +ℹ [32mcoverage-width-80-color.mjs [34m | [32m100.00[34m | [32m 100.00[34m | [32m 100.00[34m | ℹ ------------------------------------------------------------------------------ -ℹ all files | [33m 62.34[34m | [32m 100.00[34m | [31m 0.00[34m | +ℹ all files | [33m 62.34[34m | [32m 100.00[34m | [31m 0.00[34m | ℹ ------------------------------------------------------------------------------ ℹ end of coverage report [39m \ No newline at end of file diff --git a/test/fixtures/test-runner/output/coverage-width-80-uncovered-lines-color.snapshot b/test/fixtures/test-runner/output/coverage-width-80-uncovered-lines-color.snapshot index abc9ed83bb6caf..f27213d5139e87 100644 --- a/test/fixtures/test-runner/output/coverage-width-80-uncovered-lines-color.snapshot +++ b/test/fixtures/test-runner/output/coverage-width-80-uncovered-lines-color.snapshot @@ -11,17 +11,17 @@ ℹ -------------------------------------------------------------------------------------------------- ℹ file | [31mline %[34m | [31mbranch %[34m | [31mfuncs %[34m | uncovered lines ℹ -------------------------------------------------------------------------------------------------- -ℹ test | [31m [34m | [31m [34m | [31m [34m | -ℹ fixtures | [31m [34m | [31m [34m | [31m [34m | -ℹ test-runner | [31m [34m | [31m [34m | [31m [34m | -ℹ coverage-snap | [31m [34m | [31m [34m | [31m [34m | +ℹ test | [31m [34m | [31m [34m | [31m [34m | +ℹ fixtures | [31m [34m | [31m [34m | [31m [34m | +ℹ test-runner | [31m [34m | [31m [34m | [31m [34m | +ℹ coverage-snap | [31m [34m | [31m [34m | [31m [34m | ℹ [33ma.js [34m | [33m 55.77[34m | [32m 100.00[34m | [31m 0.00[34m | 5-7 9-11 13-15… ℹ [31mb.js [34m | [31m 45.45[34m | [32m 100.00[34m | [31m 0.00[34m | 5-7 9-11 ℹ [31mmany-uncovered-lines.js [34m | [33m 50.99[34m | [31m 42.86[34m | [31m 1.92[34m | 5-7 9-11 13-15… -ℹ output | [31m [34m | [31m [34m | [31m [34m | -ℹ [32mcoverage-width-80-uncovered-lines-color.mjs [34m | [32m100.00[34m | [32m 100.00[34m | [32m 100.00[34m | +ℹ output | [31m [34m | [31m [34m | [31m [34m | +ℹ [32mcoverage-width-80-uncovered-lines-color.mjs [34m | [32m100.00[34m | [32m 100.00[34m | [32m 100.00[34m | ℹ -------------------------------------------------------------------------------------------------- -ℹ all files | [33m 53.24[34m | [33m 60.00[34m | [31m 1.61[34m | +ℹ all files | [33m 53.24[34m | [33m 60.00[34m | [31m 1.61[34m | ℹ -------------------------------------------------------------------------------------------------- ℹ end of coverage report [39m \ No newline at end of file diff --git a/test/fixtures/test-runner/output/coverage-width-80-uncovered-lines.snapshot b/test/fixtures/test-runner/output/coverage-width-80-uncovered-lines.snapshot index d9e0f4ac92f0f2..a0a547c39d09d0 100644 --- a/test/fixtures/test-runner/output/coverage-width-80-uncovered-lines.snapshot +++ b/test/fixtures/test-runner/output/coverage-width-80-uncovered-lines.snapshot @@ -18,16 +18,16 @@ ok 1 - Coverage Print Fixed Width 100 # -------------------------------------------------------------------------------------------------- # file | line % | branch % | funcs % | uncovered lines # -------------------------------------------------------------------------------------------------- -# test | | | | -# fixtures | | | | -# test-runner | | | | -# coverage-snap | | | | +# test | | | | +# fixtures | | | | +# test-runner | | | | +# coverage-snap | | | | # a.js | 55.77 | 100.00 | 0.00 | 5-7 9-11 13-15 17-19 2… # b.js | 45.45 | 100.00 | 0.00 | 5-7 9-11 # many-uncovered-lines.js | 50.99 | 42.86 | 1.92 | 5-7 9-11 13-15 17-19 2… -# output | | | | -# coverage-width-80-uncovered-lines.mjs | 100.00 | 100.00 | 100.00 | +# output | | | | +# coverage-width-80-uncovered-lines.mjs | 100.00 | 100.00 | 100.00 | # -------------------------------------------------------------------------------------------------- -# all files | 53.13 | 60.00 | 1.61 | +# all files | 53.13 | 60.00 | 1.61 | # -------------------------------------------------------------------------------------------------- # end of coverage report diff --git a/test/fixtures/test-runner/output/coverage-width-80.snapshot b/test/fixtures/test-runner/output/coverage-width-80.snapshot index 4c0d63ab91b47b..cd43bc5382bd5b 100644 --- a/test/fixtures/test-runner/output/coverage-width-80.snapshot +++ b/test/fixtures/test-runner/output/coverage-width-80.snapshot @@ -18,15 +18,15 @@ ok 1 - Coverage Print Fixed Width 80 # ------------------------------------------------------------------------------ # file | line % | branch % | funcs % | uncovered lines # ------------------------------------------------------------------------------ -# test | | | | -# fixtures | | | | -# test-runner | | | | -# coverage-snap | | | | +# test | | | | +# fixtures | | | | +# test-runner | | | | +# coverage-snap | | | | # a.js | 55.77 | 100.00 | 0.00 | 5-7 9-11 13-15 17-… # b.js | 45.45 | 100.00 | 0.00 | 5-7 9-11 -# output | | | | -# coverage-width-80.mjs | 100.00 | 100.00 | 100.00 | +# output | | | | +# coverage-width-80.mjs | 100.00 | 100.00 | 100.00 | # ------------------------------------------------------------------------------ -# all files | 61.84 | 100.00 | 0.00 | +# all files | 61.84 | 100.00 | 0.00 | # ------------------------------------------------------------------------------ # end of coverage report diff --git a/test/fixtures/test-runner/output/coverage-width-infinity-uncovered-lines.snapshot b/test/fixtures/test-runner/output/coverage-width-infinity-uncovered-lines.snapshot index 320e090e88d8e0..7d7b4040d0cc64 100644 --- a/test/fixtures/test-runner/output/coverage-width-infinity-uncovered-lines.snapshot +++ b/test/fixtures/test-runner/output/coverage-width-infinity-uncovered-lines.snapshot @@ -18,16 +18,16 @@ ok 1 - Coverage Print Fixed Width Infinity # ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- # file | line % | branch % | funcs % | uncovered lines # ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -# test | | | | -# fixtures | | | | -# test-runner | | | | -# coverage-snap | | | | +# test | | | | +# fixtures | | | | +# test-runner | | | | +# coverage-snap | | | | # a.js | 55.77 | 100.00 | 0.00 | 5-7 9-11 13-15 17-19 29-30 40-42 45-47 50-52 # b.js | 45.45 | 100.00 | 0.00 | 5-7 9-11 # many-uncovered-lines.js | 50.99 | 42.86 | 1.92 | 5-7 9-11 13-15 17-19 29-30 40-42 45-47 50-52 55-57 59-61 63-65 67-69 91-93 96-98 100-102 104-106 111-112 118-119 122-123 127-129 132-136 144-146 150 166-167 173 180 188-189 196-200 207-213 216-218 221-223 226-228 232 236-238 241-243 246-248 251-257 260-262 265-268 271-273 276-280 283-285 288-290 293-295 298-301 304-306 309-312 315-318 321-324 327-329 332-340 343-348 351-353 -# output | | | | -# coverage-width-infinity-uncovered-lines.mjs | 100.00 | 100.00 | 100.00 | +# output | | | | +# coverage-width-infinity-uncovered-lines.mjs | 100.00 | 100.00 | 100.00 | # ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -# all files | 53.13 | 60.00 | 1.61 | +# all files | 53.13 | 60.00 | 1.61 | # ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- # end of coverage report diff --git a/test/fixtures/test-runner/output/coverage-width-infinity.snapshot b/test/fixtures/test-runner/output/coverage-width-infinity.snapshot index 530651821bf8df..5a6851ae8dddaa 100644 --- a/test/fixtures/test-runner/output/coverage-width-infinity.snapshot +++ b/test/fixtures/test-runner/output/coverage-width-infinity.snapshot @@ -18,15 +18,15 @@ ok 1 - Coverage Print Fixed Width Infinity # ------------------------------------------------------------------------------------------------------------- # file | line % | branch % | funcs % | uncovered lines # ------------------------------------------------------------------------------------------------------------- -# test | | | | -# fixtures | | | | -# test-runner | | | | -# coverage-snap | | | | +# test | | | | +# fixtures | | | | +# test-runner | | | | +# coverage-snap | | | | # a.js | 55.77 | 100.00 | 0.00 | 5-7 9-11 13-15 17-19 29-30 40-42 45-47 50-52 # b.js | 45.45 | 100.00 | 0.00 | 5-7 9-11 -# output | | | | -# coverage-width-infinity.mjs | 100.00 | 100.00 | 100.00 | +# output | | | | +# coverage-width-infinity.mjs | 100.00 | 100.00 | 100.00 | # ------------------------------------------------------------------------------------------------------------- -# all files | 61.84 | 100.00 | 0.00 | +# all files | 61.84 | 100.00 | 0.00 | # ------------------------------------------------------------------------------------------------------------- # end of coverage report diff --git a/test/fixtures/test-runner/output/coverage-with-mock.snapshot b/test/fixtures/test-runner/output/coverage-with-mock.snapshot index 2dd3443265b7b7..b3eb75946d0ae7 100644 --- a/test/fixtures/test-runner/output/coverage-with-mock.snapshot +++ b/test/fixtures/test-runner/output/coverage-with-mock.snapshot @@ -25,14 +25,14 @@ ok 1 - module test with mock # --------------------------------------------------------------------------- # file | line % | branch % | funcs % | uncovered lines # --------------------------------------------------------------------------- -# test | | | | -# fixtures | | | | -# test-runner | | | | -# coverage-with-mock | | | | -# module.js | 100.00 | 100.00 | 100.00 | -# output | | | | -# coverage-with-mock.mjs | 100.00 | 100.00 | 100.00 | +# test | | | | +# fixtures | | | | +# test-runner | | | | +# coverage-with-mock | | | | +# module.js | 100.00 | 100.00 | 100.00 | +# output | | | | +# coverage-with-mock.mjs | 100.00 | 100.00 | 100.00 | # --------------------------------------------------------------------------- -# all files | 100.00 | 100.00 | 100.00 | +# all files | 100.00 | 100.00 | 100.00 | # --------------------------------------------------------------------------- # end of coverage report diff --git a/test/fixtures/test-runner/output/describe_it.snapshot b/test/fixtures/test-runner/output/describe_it.snapshot index 1e1ef6e9cb0329..f41f4440d05d7d 100644 --- a/test/fixtures/test-runner/output/describe_it.snapshot +++ b/test/fixtures/test-runner/output/describe_it.snapshot @@ -174,9 +174,9 @@ not ok 20 - async assertion fail failureType: 'testCodeFailure' error: |- Expected values to be strictly equal: - + true !== false - + code: 'ERR_ASSERTION' name: 'AssertionError' expected: false diff --git a/test/fixtures/test-runner/output/dot_reporter.snapshot b/test/fixtures/test-runner/output/dot_reporter.snapshot index 1c6422e89f8d16..d777d13bcab51a 100644 --- a/test/fixtures/test-runner/output/dot_reporter.snapshot +++ b/test/fixtures/test-runner/output/dot_reporter.snapshot @@ -53,9 +53,9 @@ Failed tests: * ✖ async assertion fail (*ms) AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: - + true !== false - + * * * @@ -178,7 +178,7 @@ Failed tests: * ✖ assertion errors display actual and expected properly (*ms) AssertionError [ERR_ASSERTION]: Expected values to be loosely deep-equal: - + { bar: 1, baz: { @@ -193,9 +193,9 @@ Failed tests: ], foo: 1 } - + should loosely deep-equal - + { baz: { date: 1970-01-01T00:00:00.000Z, diff --git a/test/fixtures/test-runner/output/junit_reporter.snapshot b/test/fixtures/test-runner/output/junit_reporter.snapshot index a24dc3646e4a30..5441bafe360ca2 100644 --- a/test/fixtures/test-runner/output/junit_reporter.snapshot +++ b/test/fixtures/test-runner/output/junit_reporter.snapshot @@ -120,9 +120,9 @@ true !== false code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: - + true !== false - + * * * @@ -463,7 +463,7 @@ should loosely deep-equal code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: AssertionError [ERR_ASSERTION]: Expected values to be loosely deep-equal: - + { bar: 1, baz: { @@ -478,9 +478,9 @@ should loosely deep-equal ], foo: 1 } - + should loosely deep-equal - + { baz: { date: 1970-01-01T00:00:00.000Z, diff --git a/test/fixtures/test-runner/output/output.snapshot b/test/fixtures/test-runner/output/output.snapshot index 8c84cd6feadd46..36f487d9311344 100644 --- a/test/fixtures/test-runner/output/output.snapshot +++ b/test/fixtures/test-runner/output/output.snapshot @@ -177,9 +177,9 @@ not ok 19 - async assertion fail failureType: 'testCodeFailure' error: |- Expected values to be strictly equal: - + true !== false - + code: 'ERR_ASSERTION' name: 'AssertionError' expected: false @@ -732,7 +732,7 @@ not ok 67 - assertion errors display actual and expected properly failureType: 'testCodeFailure' error: |- Expected values to be loosely deep-equal: - + { bar: 1, baz: { @@ -747,9 +747,9 @@ not ok 67 - assertion errors display actual and expected properly ], foo: 1 } - + should loosely deep-equal - + { baz: { date: 1970-01-01T00:00:00.000Z, diff --git a/test/fixtures/test-runner/output/output_cli.snapshot b/test/fixtures/test-runner/output/output_cli.snapshot index 8b75d4c8d89bb7..0df9f723afa0b9 100644 --- a/test/fixtures/test-runner/output/output_cli.snapshot +++ b/test/fixtures/test-runner/output/output_cli.snapshot @@ -177,9 +177,9 @@ not ok 19 - async assertion fail failureType: 'testCodeFailure' error: |- Expected values to be strictly equal: - + true !== false - + code: 'ERR_ASSERTION' name: 'AssertionError' expected: false @@ -740,7 +740,7 @@ not ok 67 - assertion errors display actual and expected properly failureType: 'testCodeFailure' error: |- Expected values to be loosely deep-equal: - + { bar: 1, baz: { @@ -755,9 +755,9 @@ not ok 67 - assertion errors display actual and expected properly ], foo: 1 } - + should loosely deep-equal - + { baz: { date: 1970-01-01T00:00:00.000Z, diff --git a/test/fixtures/test-runner/output/source_mapped_locations.snapshot b/test/fixtures/test-runner/output/source_mapped_locations.snapshot index 8cf210da817aae..4f4db620a44380 100644 --- a/test/fixtures/test-runner/output/source_mapped_locations.snapshot +++ b/test/fixtures/test-runner/output/source_mapped_locations.snapshot @@ -8,9 +8,9 @@ not ok 1 - fails failureType: 'testCodeFailure' error: |- Expected values to be strictly equal: - + 1 !== 2 - + code: 'ERR_ASSERTION' name: 'AssertionError' expected: 2 diff --git a/test/fixtures/test-runner/output/spec_reporter.snapshot b/test/fixtures/test-runner/output/spec_reporter.snapshot index 70adcbcf0e2ef2..71a386e1756369 100644 --- a/test/fixtures/test-runner/output/spec_reporter.snapshot +++ b/test/fixtures/test-runner/output/spec_reporter.snapshot @@ -163,9 +163,9 @@ * async assertion fail (*ms) AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: - + true !== false - + * * * @@ -324,7 +324,7 @@ * assertion errors display actual and expected properly (*ms) AssertionError [ERR_ASSERTION]: Expected values to be loosely deep-equal: - + { bar: 1, baz: { @@ -339,9 +339,9 @@ ], foo: 1 } - + should loosely deep-equal - + { baz: { date: 1970-01-01T00:00:00.000Z, diff --git a/test/fixtures/test-runner/output/spec_reporter_cli.snapshot b/test/fixtures/test-runner/output/spec_reporter_cli.snapshot index 64f65d0edfbead..5d082244aa3447 100644 --- a/test/fixtures/test-runner/output/spec_reporter_cli.snapshot +++ b/test/fixtures/test-runner/output/spec_reporter_cli.snapshot @@ -166,9 +166,9 @@ * async assertion fail (*ms) AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: - + true !== false - + * * * @@ -327,7 +327,7 @@ * assertion errors display actual and expected properly (*ms) AssertionError [ERR_ASSERTION]: Expected values to be loosely deep-equal: - + { bar: 1, baz: { @@ -342,9 +342,9 @@ ], foo: 1 } - + should loosely deep-equal - + { baz: { date: 1970-01-01T00:00:00.000Z, diff --git a/test/fixtures/test-runner/output/test-runner-plan-timeout.snapshot b/test/fixtures/test-runner/output/test-runner-plan-timeout.snapshot index 3e33e18d747747..6b4f60e4210514 100644 --- a/test/fixtures/test-runner/output/test-runner-plan-timeout.snapshot +++ b/test/fixtures/test-runner/output/test-runner-plan-timeout.snapshot @@ -15,9 +15,9 @@ TAP version 13 failureType: 'uncaughtException' error: |- The expression evaluated to a falsy value: - + t.assert.ok(false) - + code: 'ERR_ASSERTION' name: 'AssertionError' expected: true @@ -53,9 +53,9 @@ TAP version 13 failureType: 'uncaughtException' error: |- The expression evaluated to a falsy value: - + t.assert.ok(false) - + code: 'ERR_ASSERTION' name: 'AssertionError' expected: true diff --git a/test/fixtures/test-runner/output/typescript-coverage.snapshot b/test/fixtures/test-runner/output/typescript-coverage.snapshot index 5d628e2b0854d8..25546c9a5d0060 100644 --- a/test/fixtures/test-runner/output/typescript-coverage.snapshot +++ b/test/fixtures/test-runner/output/typescript-coverage.snapshot @@ -25,15 +25,15 @@ ok 1 - foo # ---------------------------------------------------------------------------- # file | line % | branch % | funcs % | uncovered lines # ---------------------------------------------------------------------------- -# test | | | | -# fixtures | | | | -# test-runner | | | | -# coverage | | | | +# test | | | | +# fixtures | | | | +# test-runner | | | | +# coverage | | | | # bar.mts | 33.33 | 100.00 | 0.00 | 2-3 -# foo.mts | 100.00 | 100.00 | 100.00 | -# output | | | | -# typescript-coverage.mts | 100.00 | 100.00 | 100.00 | +# foo.mts | 100.00 | 100.00 | 100.00 | +# output | | | | +# typescript-coverage.mts | 100.00 | 100.00 | 100.00 | # ---------------------------------------------------------------------------- -# all files | 93.55 | 100.00 | 85.71 | +# all files | 93.55 | 100.00 | 85.71 | # ---------------------------------------------------------------------------- # end of coverage report diff --git a/test/fixtures/v8/v8_warning.snapshot b/test/fixtures/v8/v8_warning.snapshot index 6c419c83cddf28..22fa21644e0830 100644 --- a/test/fixtures/v8/v8_warning.snapshot +++ b/test/fixtures/v8/v8_warning.snapshot @@ -1,2 +1,2 @@ -(node:*) V8: *v8_warning.js:* Invalid asm.js: Invalid return type -(Use `* --trace-warnings ...` to show where the warning was created) +(node:) V8: /test/fixtures/v8/v8_warning.js:* Invalid asm.js: Invalid return type +(Use `node --trace-warnings ...` to show where the warning was created) diff --git a/test/fixtures/vm/vm_display_runtime_error.snapshot b/test/fixtures/vm/vm_display_runtime_error.snapshot index 47c7d54bae4481..a5c203536ca253 100644 --- a/test/fixtures/vm/vm_display_runtime_error.snapshot +++ b/test/fixtures/vm/vm_display_runtime_error.snapshot @@ -7,7 +7,7 @@ Error: boo! at test.vm:1:7 at Script.runInThisContext (node:vm:*) at Object.runInThisContext (node:vm:*) - at Object. (*fixtures*vm*vm_display_runtime_error.js:31:6) + at Object. (/test/fixtures/vm/vm_display_runtime_error.js:31:6) test.vm:1 throw new Error("spooky!") ^ @@ -16,6 +16,6 @@ Error: spooky! at test.vm:1:7 at Script.runInThisContext (node:vm:*) at Object.runInThisContext (node:vm:*) - at Object. (*fixtures*vm*vm_display_runtime_error.js:36:4) + at Object. (/test/fixtures/vm/vm_display_runtime_error.js:36:4) -Node.js * +Node.js diff --git a/test/fixtures/vm/vm_display_syntax_error.snapshot b/test/fixtures/vm/vm_display_syntax_error.snapshot index 84f52ce4dba0bc..0fa4058bec4e82 100644 --- a/test/fixtures/vm/vm_display_syntax_error.snapshot +++ b/test/fixtures/vm/vm_display_syntax_error.snapshot @@ -7,7 +7,7 @@ SyntaxError: Unexpected number at new Script (node:vm:*) at createScript (node:vm:*) at Object.runInThisContext (node:vm:*) - at Object. (*fixtures*vm*vm_display_syntax_error.js:31:6) + at Object. (/test/fixtures/vm/vm_display_syntax_error.js:31:6) test.vm:1 var 5; ^ @@ -16,6 +16,6 @@ SyntaxError: Unexpected number at new Script (node:vm:*) at createScript (node:vm:*) at Object.runInThisContext (node:vm:*) - at Object. (*fixtures*vm*vm_display_syntax_error.js:36:4) + at Object. (/test/fixtures/vm/vm_display_syntax_error.js:36:4) -Node.js * +Node.js diff --git a/test/fixtures/vm/vm_dont_display_runtime_error.snapshot b/test/fixtures/vm/vm_dont_display_runtime_error.snapshot index 045183d4a37bde..8e50fe27096e1b 100644 --- a/test/fixtures/vm/vm_dont_display_runtime_error.snapshot +++ b/test/fixtures/vm/vm_dont_display_runtime_error.snapshot @@ -8,6 +8,6 @@ Error: boo! at test.vm:1:7 at Script.runInThisContext (node:vm:*) at Object.runInThisContext (node:vm:*) - at Object. (*fixtures*vm*vm_dont_display_runtime_error.js:41:4) + at Object. (/test/fixtures/vm/vm_dont_display_runtime_error.js:41:4) -Node.js * +Node.js diff --git a/test/fixtures/vm/vm_dont_display_syntax_error.snapshot b/test/fixtures/vm/vm_dont_display_syntax_error.snapshot index 27c4faf563617c..673068e35de446 100644 --- a/test/fixtures/vm/vm_dont_display_syntax_error.snapshot +++ b/test/fixtures/vm/vm_dont_display_syntax_error.snapshot @@ -8,6 +8,6 @@ SyntaxError: Unexpected number at new Script (node:vm:*) at createScript (node:vm:*) at Object.runInThisContext (node:vm:*) - at Object. (*fixtures*vm*vm_dont_display_syntax_error.js:41:4) + at Object. (/test/fixtures/vm/vm_dont_display_syntax_error.js:41:4) -Node.js * +Node.js diff --git a/test/parallel/test-node-output-console.mjs b/test/parallel/test-node-output-console.mjs index e989b79ab505f6..8fabed9db60ab7 100644 --- a/test/parallel/test-node-output-console.mjs +++ b/test/parallel/test-node-output-console.mjs @@ -13,7 +13,7 @@ function replaceStackTrace(str) { describe('console output', { concurrency: !process.env.TEST_PARALLEL }, () => { function normalize(str) { - return str.replaceAll(snapshot.replaceWindowsPaths(process.cwd()), '').replaceAll('/', '*').replaceAll(process.version, '*').replaceAll(/\d+/g, '*'); + return str.replaceAll(/\d+/g, '*'); } const tests = [ { name: 'console/2100bytes.js' }, @@ -23,12 +23,16 @@ describe('console output', { concurrency: !process.env.TEST_PARALLEL }, () => { { name: 'console/stack_overflow.js', transform: snapshot - .transform(snapshot.replaceWindowsLineEndings, snapshot.replaceWindowsPaths, normalize) + .transform( + snapshot.basicTransform, + snapshot.transformProjectRoot(), + normalize + ) }, !skipForceColors ? { name: 'console/force_colors.js', env: { FORCE_COLOR: 1 } } : null, ].filter(Boolean); const defaultTransform = snapshot - .transform(snapshot.replaceWindowsLineEndings, snapshot.replaceWindowsPaths, replaceStackTrace); + .transform(snapshot.basicTransform, replaceStackTrace); for (const { name, transform, env } of tests) { it(name, async () => { await snapshot.spawnAndAssert( diff --git a/test/parallel/test-node-output-errors.mjs b/test/parallel/test-node-output-errors.mjs index 3d913475d8d2a0..731a21243481f4 100644 --- a/test/parallel/test-node-output-errors.mjs +++ b/test/parallel/test-node-output-errors.mjs @@ -3,8 +3,6 @@ import * as fixtures from '../common/fixtures.mjs'; import * as snapshot from '../common/assertSnapshot.js'; import * as os from 'node:os'; import { describe, it } from 'node:test'; -import { basename } from 'node:path'; -import { pathToFileURL } from 'node:url'; const skipForceColors = (common.isWindows && (Number(os.release().split('.')[0]) !== 10 || Number(os.release().split('.')[2]) < 14393)); // See https://github.com/nodejs/node/pull/33132 @@ -20,29 +18,29 @@ function replaceForceColorsStackTrace(str) { } describe('errors output', { concurrency: !process.env.TEST_PARALLEL }, () => { - function normalize(str) { - const baseName = basename(process.argv0 || 'node', '.exe'); - return str.replaceAll(snapshot.replaceWindowsPaths(process.cwd()), '') - .replaceAll(pathToFileURL(process.cwd()).pathname, '') - .replaceAll('//', '*') - .replaceAll(/\/(\w)/g, '*$1') - .replaceAll('*test*', '*') - .replaceAll('*fixtures*errors*', '*') - .replaceAll('file:**', 'file:*/') - .replaceAll(`${baseName} --`, '* --'); - } - function normalizeNoNumbers(str) { - return normalize(str).replaceAll(/\d+:\d+/g, '*:*').replaceAll(/:\d+/g, ':*').replaceAll('*fixtures*message*', '*'); + return str.replaceAll(/\d+:\d+/g, '*:*').replaceAll(/:\d+/g, ':*').replaceAll('*fixtures*message*', '*'); } - const common = snapshot - .transform(snapshot.replaceWindowsLineEndings, snapshot.replaceWindowsPaths); - const defaultTransform = snapshot.transform(common, normalize, snapshot.replaceNodeVersion); - const errTransform = snapshot.transform(common, normalizeNoNumbers, snapshot.replaceNodeVersion); - const promiseTransform = snapshot.transform(common, replaceStackTrace, - normalizeNoNumbers, snapshot.replaceNodeVersion); - const forceColorsTransform = snapshot.transform(common, normalize, - replaceForceColorsStackTrace, snapshot.replaceNodeVersion); + const defaultTransform = snapshot.transform( + snapshot.basicTransform, + snapshot.transformProjectRoot(), + ); + const errTransform = snapshot.transform( + snapshot.basicTransform, + snapshot.transformProjectRoot(), + normalizeNoNumbers, + ); + const promiseTransform = snapshot.transform( + snapshot.basicTransform, + snapshot.transformProjectRoot(), + replaceStackTrace, + normalizeNoNumbers, + ); + const forceColorsTransform = snapshot.transform( + snapshot.basicTransform, + snapshot.transformProjectRoot(), + replaceForceColorsStackTrace, + ); const tests = [ { name: 'errors/async_error_eval_cjs.js' }, diff --git a/test/parallel/test-node-output-eval.mjs b/test/parallel/test-node-output-eval.mjs index 56a880c8adfee1..0dc97ac9f32e42 100644 --- a/test/parallel/test-node-output-eval.mjs +++ b/test/parallel/test-node-output-eval.mjs @@ -4,38 +4,25 @@ if (!process.config.variables.node_use_amaro) { } import * as fixtures from '../common/fixtures.mjs'; import * as snapshot from '../common/assertSnapshot.js'; -import { basename } from 'node:path'; import { describe, it } from 'node:test'; describe('eval output', { concurrency: true }, () => { function normalize(str) { - return str.replaceAll(snapshot.replaceWindowsPaths(process.cwd()), '') + return str .replaceAll(/\d+:\d+/g, '*:*'); } const defaultTransform = snapshot.transform( normalize, - snapshot.replaceWindowsLineEndings, - snapshot.replaceWindowsPaths, - snapshot.replaceNodeVersion, + snapshot.basicTransform, + snapshot.transformProjectRoot(), removeStackTraces, - filterEmptyLines, - generalizeProcessName, ); function removeStackTraces(output) { return output.replaceAll(/^ *at .+$/gm, ''); } - function filterEmptyLines(output) { - return output.replaceAll(/^\s*$/gm, ''); - } - - function generalizeProcessName(output) { - const baseName = basename(process.argv0 || 'node', '.exe'); - return output.replaceAll(`${baseName} --`, '* --'); - } - const tests = [ { name: 'eval/eval_messages.js' }, { name: 'eval/stdin_messages.js' }, diff --git a/test/parallel/test-node-output-sourcemaps.mjs b/test/parallel/test-node-output-sourcemaps.mjs index e883ff2c57a791..5c844219d7fa8b 100644 --- a/test/parallel/test-node-output-sourcemaps.mjs +++ b/test/parallel/test-node-output-sourcemaps.mjs @@ -6,11 +6,9 @@ import { describe, it } from 'node:test'; describe('sourcemaps output', { concurrency: !process.env.TEST_PARALLEL }, () => { const defaultTransform = snapshot .transform( - snapshot.replaceWindowsLineEndings, + snapshot.basicTransform, snapshot.transformProjectRoot('*'), - snapshot.replaceWindowsPaths, snapshot.replaceInternalStackTrace, - snapshot.replaceNodeVersion ); const tests = [ @@ -34,10 +32,10 @@ describe('sourcemaps output', { concurrency: !process.env.TEST_PARALLEL }, () => { name: 'source-map/output/source_map_throw_icu.js' }, { name: 'source-map/output/source_map_throw_set_immediate.js' }, ]; - for (const { name, transform } of tests) { + for (const { name } of tests) { const skip = name.endsWith('.ts') && !process.config.variables.node_use_amaro; it(name, { skip }, async () => { - await snapshot.spawnAndAssert(fixtures.path(name), transform ?? defaultTransform); + await snapshot.spawnAndAssert(fixtures.path(name), defaultTransform); }); } }); diff --git a/test/parallel/test-node-output-v8-warning.mjs b/test/parallel/test-node-output-v8-warning.mjs index b5e52d493baf55..f342ef1d4f8db9 100644 --- a/test/parallel/test-node-output-v8-warning.mjs +++ b/test/parallel/test-node-output-v8-warning.mjs @@ -2,29 +2,12 @@ import '../common/index.mjs'; import * as fixtures from '../common/fixtures.mjs'; import * as snapshot from '../common/assertSnapshot.js'; import { describe, it } from 'node:test'; -import { basename } from 'node:path'; - -function replaceNodeVersion(str) { - return str.replaceAll(process.version, '*'); -} - -function replaceExecName(str) { - const baseName = basename(process.argv0 || 'node', '.exe'); - return str.replaceAll(`${baseName} --`, '* --'); -} describe('v8 output', { concurrency: !process.env.TEST_PARALLEL }, () => { function normalize(str) { - return str.replaceAll(snapshot.replaceWindowsPaths(process.cwd()), '') - .replaceAll(/:\d+/g, ':*') - .replaceAll('/', '*') - .replaceAll('*test*', '*') - .replaceAll(/.*?\*fixtures\*v8\*/g, '(node:*) V8: *') // Replace entire path before fixtures/v8 - .replaceAll('*fixtures*v8*', '*'); + return str.replaceAll(/:\d+/g, ':*'); } - const common = snapshot - .transform(snapshot.replaceWindowsLineEndings, snapshot.replaceWindowsPaths, replaceNodeVersion, replaceExecName); - const defaultTransform = snapshot.transform(common, normalize); + const defaultTransform = snapshot.transform(snapshot.basicTransform, snapshot.transformProjectRoot(), normalize); const tests = [ { name: 'v8/v8_warning.js' }, ]; diff --git a/test/parallel/test-node-output-vm.mjs b/test/parallel/test-node-output-vm.mjs index aa5072007b4fd7..9a285d9ca0f006 100644 --- a/test/parallel/test-node-output-vm.mjs +++ b/test/parallel/test-node-output-vm.mjs @@ -3,17 +3,13 @@ import * as fixtures from '../common/fixtures.mjs'; import * as snapshot from '../common/assertSnapshot.js'; import { describe, it } from 'node:test'; -function replaceNodeVersion(str) { - return str.replaceAll(process.version, '*'); -} - describe('vm output', { concurrency: !process.env.TEST_PARALLEL }, () => { function normalize(str) { - return str.replaceAll(snapshot.replaceWindowsPaths(process.cwd()), '').replaceAll('//', '*').replaceAll(/\/(\w)/g, '*$1').replaceAll('*test*', '*').replaceAll(/node:vm:\d+:\d+/g, 'node:vm:*'); + return str.replaceAll(/node:vm:\d+:\d+/g, 'node:vm:*'); } const defaultTransform = snapshot - .transform(snapshot.replaceWindowsLineEndings, snapshot.replaceWindowsPaths, normalize, replaceNodeVersion); + .transform(snapshot.basicTransform, snapshot.transformProjectRoot(), normalize); const tests = [ { name: 'vm/vm_caught_custom_runtime_error.js' }, @@ -22,9 +18,9 @@ describe('vm output', { concurrency: !process.env.TEST_PARALLEL }, () => { { name: 'vm/vm_dont_display_runtime_error.js' }, { name: 'vm/vm_dont_display_syntax_error.js' }, ]; - for (const { name, transform } of tests) { + for (const { name } of tests) { it(name, async () => { - await snapshot.spawnAndAssert(fixtures.path(name), transform ?? defaultTransform); + await snapshot.spawnAndAssert(fixtures.path(name), defaultTransform); }); } }); From 1f767323713a906aeb18a747a3e0c483652e0c80 Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Fri, 30 Jan 2026 14:26:52 -0500 Subject: [PATCH 2/2] fixup! test: unify assertSnapshot common patterns --- test/common/assertSnapshot.js | 18 +++- test/fixtures/console/stack_overflow.snapshot | 2 +- .../errors/async_error_eval_esm.snapshot | 10 +-- .../async_error_microtask_main.snapshot | 10 +-- .../errors/async_error_nexttick_main.snapshot | 10 +-- .../errors/async_error_sync_esm.snapshot | 10 +-- .../errors/async_error_sync_main.snapshot | 10 +-- .../errors/core_line_numbers.snapshot | 2 +- .../errors/error_aggregateTwoErrors.snapshot | 8 +- test/fixtures/errors/error_exit.snapshot | 2 +- test/fixtures/errors/error_with_nul.snapshot | Bin 250 -> 292 bytes ...ents_unhandled_error_common_trace.snapshot | 8 +- .../events_unhandled_error_nexttick.snapshot | 4 +- .../events_unhandled_error_sameline.snapshot | 4 +- .../events_unhandled_error_subclass.snapshot | 4 +- test/fixtures/errors/force_colors.snapshot | 4 +- .../errors/if-error-has-good-stack.snapshot | 24 +++--- .../promise_always_throw_unhandled.snapshot | 2 +- ...promise_unhandled_warn_with_error.snapshot | 2 +- ...-no-extra-info-on-fatal-exception.snapshot | 4 +- .../errors/throw_custom_error.snapshot | 2 +- .../throw_error_with_getter_throw.snapshot | 4 +- .../errors/throw_in_eval_anonymous.snapshot | 2 +- .../errors/throw_in_line_with_tabs.snapshot | 2 +- test/fixtures/errors/throw_non_error.snapshot | 2 +- test/fixtures/errors/throw_null.snapshot | 4 +- test/fixtures/errors/throw_undefined.snapshot | 4 +- test/fixtures/errors/timeout_throw.snapshot | 4 +- ...ndefined_reference_in_new_context.snapshot | 2 +- test/fixtures/eval/eval_messages.snapshot | 4 +- test/fixtures/eval/stdin_messages.snapshot | 4 +- .../source_map_assert_source_line.snapshot | 2 +- .../source_map_disabled_by_api.snapshot | 20 ++--- ...ource_map_disabled_by_process_api.snapshot | 20 ++--- .../output/source_map_enabled_by_api.snapshot | 20 ++--- ...e_map_enabled_by_api_node_modules.snapshot | 20 ++--- ...source_map_enabled_by_process_api.snapshot | 20 ++--- .../source_map_enclosing_function.snapshot | 12 +-- .../output/source_map_eval.snapshot | 8 +- .../output/source_map_no_source_file.snapshot | 6 +- .../source_map_prepare_stack_trace.snapshot | 16 ++-- .../source_map_reference_error_tabs.snapshot | 6 +- ...urce_map_sourcemapping_url_string.snapshot | 2 +- ...ource_map_throw_async_stack_trace.snapshot | 6 +- .../output/source_map_throw_catch.snapshot | 4 +- .../source_map_throw_class_method.snapshot | 8 +- .../source_map_throw_construct.snapshot | 6 +- .../source_map_throw_first_tick.snapshot | 6 +- .../output/source_map_throw_icu.snapshot | 6 +- .../source_map_throw_set_immediate.snapshot | 6 +- .../output/abort-runs-after-hook.snapshot | 2 +- .../test-runner/output/abort.snapshot | 28 +++---- .../test-runner/output/abort_hooks.snapshot | 20 ++--- .../test-runner/output/abort_suite.snapshot | 14 ++-- .../test-runner/output/describe_it.snapshot | 66 +++++++-------- .../output/filtered-suite-throws.snapshot | 6 +- ...global_after_should_fail_the_test.snapshot | 4 +- .../test-runner/output/hooks.snapshot | 78 +++++++++--------- .../test-runner/output/output.snapshot | 58 ++++++------- .../test-runner/output/output_cli.snapshot | 58 ++++++------- .../output/source_mapped_locations.snapshot | 2 +- .../output/test-runner-plan-timeout.snapshot | 10 +-- .../output/test-runner-plan.snapshot | 8 +- .../output/test-timeout-flag.snapshot | 10 +-- ...h_should_not_affect_further_tests.snapshot | 8 +- .../unfinished-suite-async-error.snapshot | 4 +- test/fixtures/v8/v8_warning.snapshot | 4 +- .../vm/vm_display_runtime_error.snapshot | 4 +- .../vm/vm_display_syntax_error.snapshot | 4 +- .../vm/vm_dont_display_runtime_error.snapshot | 2 +- .../vm/vm_dont_display_syntax_error.snapshot | 2 +- test/parallel/test-node-output-sourcemaps.mjs | 2 +- 72 files changed, 386 insertions(+), 374 deletions(-) diff --git a/test/common/assertSnapshot.js b/test/common/assertSnapshot.js index ca55da55bc7358..374908c23097e4 100644 --- a/test/common/assertSnapshot.js +++ b/test/common/assertSnapshot.js @@ -10,6 +10,9 @@ const { hostname } = require('node:os'); const stackFramesRegexp = /(?<=\n)(\s+)((.+?)\s+\()?(?:\(?(.+?):(\d+)(?::(\d+))?)\)?(\s+\{)?(\[\d+m)?(\n|$)/g; const windowNewlineRegexp = /\r/g; +// Replaces the current Node.js executable version strings with a +// placeholder. This could commonly present in an unhandled exception +// output. function replaceNodeVersion(str) { return str.replaceAll(process.version, ''); } @@ -24,29 +27,38 @@ function replaceInternalStackTrace(str) { return str.replaceAll(/(\W+).*[(\s]node:.*/g, '$1*'); } +// Replaces Windows line endings with posix line endings for unified snapshots +// across platforms. function replaceWindowsLineEndings(str) { return str.replace(windowNewlineRegexp, ''); } +// Replaces all Windows path separators with posix separators for unified snapshots +// across platforms. function replaceWindowsPaths(str) { return common.isWindows ? str.replaceAll(path.win32.sep, path.posix.sep) : str; } +// Removes line trailing white spaces. function replaceTrailingSpaces(str) { return str.replaceAll(/[\t ]+\n/g, '\n'); } -// Replaces customized or platform specific executable names to be `node`. +// Replaces customized or platform specific executable names to be ``. function generalizeExeName(str) { const baseName = path.basename(process.argv0 || 'node', '.exe'); - return str.replaceAll(`${baseName} --`, 'node --'); + return str.replaceAll(`${baseName} --`, ' --'); } +// Replaces the pids in warning messages with a placeholder. function replaceWarningPid(str) { return str.replaceAll(/\(node:\d+\)/g, '(node:)'); } -function transformProjectRoot(replacement = '') { +// Replaces path strings representing the nodejs/node repo full project root with +// ``. Also replaces file URLs containing the full project root path. +// The project root path may contain unicode characters. +function transformProjectRoot(replacement = '') { const projectRoot = path.resolve(__dirname, '../..'); // Handles URL encoded project root in file URL strings as well. const urlEncoded = pathToFileURL(projectRoot).pathname; diff --git a/test/fixtures/console/stack_overflow.snapshot b/test/fixtures/console/stack_overflow.snapshot index 36270c78db678b..e7e499e308dcb2 100644 --- a/test/fixtures/console/stack_overflow.snapshot +++ b/test/fixtures/console/stack_overflow.snapshot @@ -1,5 +1,5 @@ before -/test/fixtures/console/stack_overflow.js:* +/test/fixtures/console/stack_overflow.js:* JSON.stringify(array); ^ diff --git a/test/fixtures/errors/async_error_eval_esm.snapshot b/test/fixtures/errors/async_error_eval_esm.snapshot index 45e48f00110bf6..9006142f378cde 100644 --- a/test/fixtures/errors/async_error_eval_esm.snapshot +++ b/test/fixtures/errors/async_error_eval_esm.snapshot @@ -1,7 +1,7 @@ Error: test - at one (file:///[eval1]:2:9) - at two (file:///[eval1]:15:9) - at async three (file:///[eval1]:18:3) - at async four (file:///[eval1]:22:3) - at async main (file:///[eval1]:28:5) + at one (file:///[eval1]:2:9) + at two (file:///[eval1]:15:9) + at async three (file:///[eval1]:18:3) + at async four (file:///[eval1]:22:3) + at async main (file:///[eval1]:28:5) diff --git a/test/fixtures/errors/async_error_microtask_main.snapshot b/test/fixtures/errors/async_error_microtask_main.snapshot index dfacb9096d01eb..47f27c5e04660c 100644 --- a/test/fixtures/errors/async_error_microtask_main.snapshot +++ b/test/fixtures/errors/async_error_microtask_main.snapshot @@ -1,6 +1,6 @@ Error: test - at one (/test/fixtures/async-error.js:4:9) - at two (/test/fixtures/async-error.js:17:9) - at async three (/test/fixtures/async-error.js:20:3) - at async four (/test/fixtures/async-error.js:24:3) - at async main (/test/fixtures/errors/async_error_microtask_main.js:7:5) + at one (/test/fixtures/async-error.js:4:9) + at two (/test/fixtures/async-error.js:17:9) + at async three (/test/fixtures/async-error.js:20:3) + at async four (/test/fixtures/async-error.js:24:3) + at async main (/test/fixtures/errors/async_error_microtask_main.js:7:5) diff --git a/test/fixtures/errors/async_error_nexttick_main.snapshot b/test/fixtures/errors/async_error_nexttick_main.snapshot index dad291a380f6f0..5f1dbc0d86bea5 100644 --- a/test/fixtures/errors/async_error_nexttick_main.snapshot +++ b/test/fixtures/errors/async_error_nexttick_main.snapshot @@ -1,7 +1,7 @@ Error: test - at one (/test/fixtures/async-error.js:4:9) - at two (/test/fixtures/async-error.js:17:9) + at one (/test/fixtures/async-error.js:4:9) + at two (/test/fixtures/async-error.js:17:9) at process.processTicksAndRejections (node:internal/process/task_queues:104:5) - at async three (/test/fixtures/async-error.js:20:3) - at async four (/test/fixtures/async-error.js:24:3) - at async main (/test/fixtures/errors/async_error_nexttick_main.js:7:5) + at async three (/test/fixtures/async-error.js:20:3) + at async four (/test/fixtures/async-error.js:24:3) + at async main (/test/fixtures/errors/async_error_nexttick_main.js:7:5) diff --git a/test/fixtures/errors/async_error_sync_esm.snapshot b/test/fixtures/errors/async_error_sync_esm.snapshot index 637b3d511efc5a..9265afa4b504eb 100644 --- a/test/fixtures/errors/async_error_sync_esm.snapshot +++ b/test/fixtures/errors/async_error_sync_esm.snapshot @@ -1,6 +1,6 @@ Error: test - at one (/test/fixtures/async-error.js:4:9) - at two (/test/fixtures/async-error.js:17:9) - at async three (/test/fixtures/async-error.js:20:3) - at async four (/test/fixtures/async-error.js:24:3) - at async main (file:///test/fixtures/errors/async_error_sync_esm.mjs:6:5) + at one (/test/fixtures/async-error.js:4:9) + at two (/test/fixtures/async-error.js:17:9) + at async three (/test/fixtures/async-error.js:20:3) + at async four (/test/fixtures/async-error.js:24:3) + at async main (file:///test/fixtures/errors/async_error_sync_esm.mjs:6:5) diff --git a/test/fixtures/errors/async_error_sync_main.snapshot b/test/fixtures/errors/async_error_sync_main.snapshot index e5d9797e67fdf8..eb8527e596206b 100644 --- a/test/fixtures/errors/async_error_sync_main.snapshot +++ b/test/fixtures/errors/async_error_sync_main.snapshot @@ -1,6 +1,6 @@ Error: test - at one (/test/fixtures/async-error.js:4:9) - at two (/test/fixtures/async-error.js:17:9) - at async three (/test/fixtures/async-error.js:20:3) - at async four (/test/fixtures/async-error.js:24:3) - at async main (/test/fixtures/errors/async_error_sync_main.js:7:5) + at one (/test/fixtures/async-error.js:4:9) + at two (/test/fixtures/async-error.js:17:9) + at async three (/test/fixtures/async-error.js:20:3) + at async four (/test/fixtures/async-error.js:24:3) + at async main (/test/fixtures/errors/async_error_sync_main.js:7:5) diff --git a/test/fixtures/errors/core_line_numbers.snapshot b/test/fixtures/errors/core_line_numbers.snapshot index 9df93823daae5d..04fab485252eeb 100644 --- a/test/fixtures/errors/core_line_numbers.snapshot +++ b/test/fixtures/errors/core_line_numbers.snapshot @@ -5,6 +5,6 @@ node:punycode:54 RangeError: Invalid input at error (node:punycode:54:8) at Object.decode (node:punycode:247:5) - at Object. (/test/fixtures/errors/core_line_numbers.js:13:10) + at Object. (/test/fixtures/errors/core_line_numbers.js:13:10) Node.js diff --git a/test/fixtures/errors/error_aggregateTwoErrors.snapshot b/test/fixtures/errors/error_aggregateTwoErrors.snapshot index 804437bc87cda3..ab0cafa534db5f 100644 --- a/test/fixtures/errors/error_aggregateTwoErrors.snapshot +++ b/test/fixtures/errors/error_aggregateTwoErrors.snapshot @@ -1,17 +1,17 @@ -/test/fixtures/errors/error_aggregateTwoErrors.js:* +/test/fixtures/errors/error_aggregateTwoErrors.js:* throw aggregateTwoErrors(err, originalError); ^ AggregateError: original - at Object. (/test/fixtures/errors/error_aggregateTwoErrors.js:*:*) { + at Object. (/test/fixtures/errors/error_aggregateTwoErrors.js:*:*) { code: 'ERR0', [errors]: [ Error: original - at Object. (/test/fixtures/errors/error_aggregateTwoErrors.js:*:*) { + at Object. (/test/fixtures/errors/error_aggregateTwoErrors.js:*:*) { code: 'ERR0' }, Error: second error - at Object. (/test/fixtures/errors/error_aggregateTwoErrors.js:*:*) { + at Object. (/test/fixtures/errors/error_aggregateTwoErrors.js:*:*) { code: 'ERR1' } ] diff --git a/test/fixtures/errors/error_exit.snapshot b/test/fixtures/errors/error_exit.snapshot index 5b65a593461ebd..8bc0bc3da7df3b 100644 --- a/test/fixtures/errors/error_exit.snapshot +++ b/test/fixtures/errors/error_exit.snapshot @@ -7,7 +7,7 @@ AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: 1 !== 2 - at Object. (/test/fixtures/errors/error_exit.js:*:*) { + at Object. (/test/fixtures/errors/error_exit.js:*:*) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 1, diff --git a/test/fixtures/errors/error_with_nul.snapshot b/test/fixtures/errors/error_with_nul.snapshot index a7b40162fe206122e1c24c88a938e8a57d24a570..b60c03fe89cb74e271fd4a9bb6455da251aec15e 100644 GIT binary patch delta 72 ycmeyxxP(b8F)5iLB{hx9rl2T4D>b=9wrUJzJ@LLP0G6%`VgLXD diff --git a/test/fixtures/errors/events_unhandled_error_common_trace.snapshot b/test/fixtures/errors/events_unhandled_error_common_trace.snapshot index 85236acce9aba7..37b3e3b7785874 100644 --- a/test/fixtures/errors/events_unhandled_error_common_trace.snapshot +++ b/test/fixtures/errors/events_unhandled_error_common_trace.snapshot @@ -3,10 +3,10 @@ node:events:* ^ Error: foo:bar - at bar (/test/fixtures/errors/events_unhandled_error_common_trace.js:*:*) - at foo (/test/fixtures/errors/events_unhandled_error_common_trace.js:*:*) + at bar (/test/fixtures/errors/events_unhandled_error_common_trace.js:*:*) + at foo (/test/fixtures/errors/events_unhandled_error_common_trace.js:*:*) Emitted 'error' event at: - at quux (/test/fixtures/errors/events_unhandled_error_common_trace.js:*:*) - at Object. (/test/fixtures/errors/events_unhandled_error_common_trace.js:*:*) + at quux (/test/fixtures/errors/events_unhandled_error_common_trace.js:*:*) + at Object. (/test/fixtures/errors/events_unhandled_error_common_trace.js:*:*) Node.js diff --git a/test/fixtures/errors/events_unhandled_error_nexttick.snapshot b/test/fixtures/errors/events_unhandled_error_nexttick.snapshot index a7d0ede2978a85..df8940bf9f7721 100644 --- a/test/fixtures/errors/events_unhandled_error_nexttick.snapshot +++ b/test/fixtures/errors/events_unhandled_error_nexttick.snapshot @@ -3,8 +3,8 @@ node:events:* ^ Error - at Object. (/test/fixtures/errors/events_unhandled_error_nexttick.js:*:*) + at Object. (/test/fixtures/errors/events_unhandled_error_nexttick.js:*:*) Emitted 'error' event at: - at /test/fixtures/errors/events_unhandled_error_nexttick.js:*:* + at /test/fixtures/errors/events_unhandled_error_nexttick.js:*:* Node.js diff --git a/test/fixtures/errors/events_unhandled_error_sameline.snapshot b/test/fixtures/errors/events_unhandled_error_sameline.snapshot index db0dffbc65a5df..700a7ace09c9d0 100644 --- a/test/fixtures/errors/events_unhandled_error_sameline.snapshot +++ b/test/fixtures/errors/events_unhandled_error_sameline.snapshot @@ -3,8 +3,8 @@ node:events:* ^ Error - at Object. (/test/fixtures/errors/events_unhandled_error_sameline.js:*:*) + at Object. (/test/fixtures/errors/events_unhandled_error_sameline.js:*:*) Emitted 'error' event at: - at Object. (/test/fixtures/errors/events_unhandled_error_sameline.js:*:*) + at Object. (/test/fixtures/errors/events_unhandled_error_sameline.js:*:*) Node.js diff --git a/test/fixtures/errors/events_unhandled_error_subclass.snapshot b/test/fixtures/errors/events_unhandled_error_subclass.snapshot index b6b92ce586930d..a1c2c0485aa4fc 100644 --- a/test/fixtures/errors/events_unhandled_error_subclass.snapshot +++ b/test/fixtures/errors/events_unhandled_error_subclass.snapshot @@ -3,8 +3,8 @@ node:events:* ^ Error - at Object. (/test/fixtures/errors/events_unhandled_error_subclass.js:*:*) + at Object. (/test/fixtures/errors/events_unhandled_error_subclass.js:*:*) Emitted 'error' event on Foo instance at: - at Object. (/test/fixtures/errors/events_unhandled_error_subclass.js:*:*) + at Object. (/test/fixtures/errors/events_unhandled_error_subclass.js:*:*) Node.js diff --git a/test/fixtures/errors/force_colors.snapshot b/test/fixtures/errors/force_colors.snapshot index 778368d3760d95..dd673d0bf9660f 100644 --- a/test/fixtures/errors/force_colors.snapshot +++ b/test/fixtures/errors/force_colors.snapshot @@ -1,9 +1,9 @@ -/test/fixtures/errors/force_colors.js:2 +/test/fixtures/errors/force_colors.js:2 throw new Error('Should include grayed stack trace'); ^ Error: Should include grayed stack trace - at Object. (/test/fixtures/errors/force_colors.js:2:7) + at Object. (/test/fixtures/errors/force_colors.js:2:7)  at *  at *  at * diff --git a/test/fixtures/errors/if-error-has-good-stack.snapshot b/test/fixtures/errors/if-error-has-good-stack.snapshot index aa367bf48d2770..923e687c071315 100644 --- a/test/fixtures/errors/if-error-has-good-stack.snapshot +++ b/test/fixtures/errors/if-error-has-good-stack.snapshot @@ -3,21 +3,21 @@ node:assert:* ^ AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error - at z (/test/fixtures/errors/if-error-has-good-stack.js:*:*) - at y (/test/fixtures/errors/if-error-has-good-stack.js:*:*) - at x (/test/fixtures/errors/if-error-has-good-stack.js:*:*) - at Object. (/test/fixtures/errors/if-error-has-good-stack.js:*:*) - at c (/test/fixtures/errors/if-error-has-good-stack.js:*:*) - at b (/test/fixtures/errors/if-error-has-good-stack.js:*:*) - at a (/test/fixtures/errors/if-error-has-good-stack.js:*:*) - at Object. (/test/fixtures/errors/if-error-has-good-stack.js:*:*) { + at z (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at y (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at x (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at Object. (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at c (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at b (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at a (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at Object. (/test/fixtures/errors/if-error-has-good-stack.js:*:*) { generatedMessage: false, code: 'ERR_ASSERTION', actual: Error: test error - at c (/test/fixtures/errors/if-error-has-good-stack.js:*:*) - at b (/test/fixtures/errors/if-error-has-good-stack.js:*:*) - at a (/test/fixtures/errors/if-error-has-good-stack.js:*:*) - at Object. (/test/fixtures/errors/if-error-has-good-stack.js:*:*), + at c (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at b (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at a (/test/fixtures/errors/if-error-has-good-stack.js:*:*) + at Object. (/test/fixtures/errors/if-error-has-good-stack.js:*:*), expected: null, operator: 'ifError', diff: 'simple' diff --git a/test/fixtures/errors/promise_always_throw_unhandled.snapshot b/test/fixtures/errors/promise_always_throw_unhandled.snapshot index 8d0f4a8ba76d66..bd4fe396d898e8 100644 --- a/test/fixtures/errors/promise_always_throw_unhandled.snapshot +++ b/test/fixtures/errors/promise_always_throw_unhandled.snapshot @@ -1,4 +1,4 @@ -/test/fixtures/errors/promise_always_throw_unhandled.js:* +/test/fixtures/errors/promise_always_throw_unhandled.js:* throw new Error('One'); ^ diff --git a/test/fixtures/errors/promise_unhandled_warn_with_error.snapshot b/test/fixtures/errors/promise_unhandled_warn_with_error.snapshot index b94a9ac6033bd6..8a260ab7dfb098 100644 --- a/test/fixtures/errors/promise_unhandled_warn_with_error.snapshot +++ b/test/fixtures/errors/promise_unhandled_warn_with_error.snapshot @@ -7,5 +7,5 @@ at * at * at * -(Use `node --trace-warnings ...` to show where the warning was created) +(Use ` --trace-warnings ...` to show where the warning was created) (node:) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) diff --git a/test/fixtures/errors/test-no-extra-info-on-fatal-exception.snapshot b/test/fixtures/errors/test-no-extra-info-on-fatal-exception.snapshot index 53d09f5c9872dd..e068b5dbd2ae25 100644 --- a/test/fixtures/errors/test-no-extra-info-on-fatal-exception.snapshot +++ b/test/fixtures/errors/test-no-extra-info-on-fatal-exception.snapshot @@ -1,6 +1,6 @@ -/test/fixtures/errors/test-no-extra-info-on-fatal-exception.js:7 +/test/fixtures/errors/test-no-extra-info-on-fatal-exception.js:7 throw new Error('foo'); ^ Error: foo - at Object. (/test/fixtures/errors/test-no-extra-info-on-fatal-exception.js:7:7) + at Object. (/test/fixtures/errors/test-no-extra-info-on-fatal-exception.js:7:7) diff --git a/test/fixtures/errors/throw_custom_error.snapshot b/test/fixtures/errors/throw_custom_error.snapshot index 565ccba66a3e6c..efaf2d6f8aed27 100644 --- a/test/fixtures/errors/throw_custom_error.snapshot +++ b/test/fixtures/errors/throw_custom_error.snapshot @@ -1,5 +1,5 @@ -/test/fixtures/errors/throw_custom_error.js:* +/test/fixtures/errors/throw_custom_error.js:* throw ({ name: 'MyCustomError', message: 'This is a custom message' }); ^ { name: 'MyCustomError', message: 'This is a custom message' } diff --git a/test/fixtures/errors/throw_error_with_getter_throw.snapshot b/test/fixtures/errors/throw_error_with_getter_throw.snapshot index 5b5974c80701e7..5c4281c4769b66 100644 --- a/test/fixtures/errors/throw_error_with_getter_throw.snapshot +++ b/test/fixtures/errors/throw_error_with_getter_throw.snapshot @@ -1,8 +1,8 @@ -/test/fixtures/errors/throw_error_with_getter_throw.js:* +/test/fixtures/errors/throw_error_with_getter_throw.js:* throw { // eslint-disable-line no-throw-literal ^ [object Object] -(Use `node --trace-uncaught ...` to show where the exception was thrown) +(Use ` --trace-uncaught ...` to show where the exception was thrown) Node.js diff --git a/test/fixtures/errors/throw_in_eval_anonymous.snapshot b/test/fixtures/errors/throw_in_eval_anonymous.snapshot index e40c3296f36fc7..47305671b1bc71 100644 --- a/test/fixtures/errors/throw_in_eval_anonymous.snapshot +++ b/test/fixtures/errors/throw_in_eval_anonymous.snapshot @@ -3,6 +3,6 @@ ^ Error: error in anonymous script - at eval (eval at (/test/fixtures/errors/throw_in_eval_anonymous.js:*:*), :*:*) + at eval (eval at (/test/fixtures/errors/throw_in_eval_anonymous.js:*:*), :*:*) Node.js diff --git a/test/fixtures/errors/throw_in_line_with_tabs.snapshot b/test/fixtures/errors/throw_in_line_with_tabs.snapshot index 1a70bd554d55d2..b5cb8e99cd3130 100644 --- a/test/fixtures/errors/throw_in_line_with_tabs.snapshot +++ b/test/fixtures/errors/throw_in_line_with_tabs.snapshot @@ -1,6 +1,6 @@ before -/test/fixtures/errors/throw_in_line_with_tabs.js:* +/test/fixtures/errors/throw_in_line_with_tabs.js:* throw ({ foo: 'bar' }); ^ { foo: 'bar' } diff --git a/test/fixtures/errors/throw_non_error.snapshot b/test/fixtures/errors/throw_non_error.snapshot index 6ee2125fa72d2c..55f213290b8a85 100644 --- a/test/fixtures/errors/throw_non_error.snapshot +++ b/test/fixtures/errors/throw_non_error.snapshot @@ -1,5 +1,5 @@ -/test/fixtures/errors/throw_non_error.js:* +/test/fixtures/errors/throw_non_error.js:* throw ({ foo: 'bar' }); ^ { foo: 'bar' } diff --git a/test/fixtures/errors/throw_null.snapshot b/test/fixtures/errors/throw_null.snapshot index 7831579ca101a4..dd535b524ff061 100644 --- a/test/fixtures/errors/throw_null.snapshot +++ b/test/fixtures/errors/throw_null.snapshot @@ -1,8 +1,8 @@ -/test/fixtures/errors/throw_null.js:* +/test/fixtures/errors/throw_null.js:* throw null; ^ null -(Use `node --trace-uncaught ...` to show where the exception was thrown) +(Use ` --trace-uncaught ...` to show where the exception was thrown) Node.js diff --git a/test/fixtures/errors/throw_undefined.snapshot b/test/fixtures/errors/throw_undefined.snapshot index bdb2ff1b1322dc..f1b12ae7563a87 100644 --- a/test/fixtures/errors/throw_undefined.snapshot +++ b/test/fixtures/errors/throw_undefined.snapshot @@ -1,8 +1,8 @@ -/test/fixtures/errors/throw_undefined.js:* +/test/fixtures/errors/throw_undefined.js:* throw undefined; ^ undefined -(Use `node --trace-uncaught ...` to show where the exception was thrown) +(Use ` --trace-uncaught ...` to show where the exception was thrown) Node.js diff --git a/test/fixtures/errors/timeout_throw.snapshot b/test/fixtures/errors/timeout_throw.snapshot index 6f50219b54ad41..5ad384ab43f329 100644 --- a/test/fixtures/errors/timeout_throw.snapshot +++ b/test/fixtures/errors/timeout_throw.snapshot @@ -1,9 +1,9 @@ -/test/fixtures/errors/timeout_throw.js:* +/test/fixtures/errors/timeout_throw.js:* undefined_reference_error_maker; ^ ReferenceError: undefined_reference_error_maker is not defined - at Timeout._onTimeout (/test/fixtures/errors/timeout_throw.js:*:*) + at Timeout._onTimeout (/test/fixtures/errors/timeout_throw.js:*:*) at listOnTimeout (node:internal/timers:*:*) at process.processTimers (node:internal/timers:*:*) diff --git a/test/fixtures/errors/undefined_reference_in_new_context.snapshot b/test/fixtures/errors/undefined_reference_in_new_context.snapshot index eb0e82d163567e..50b6f8e7f329ff 100644 --- a/test/fixtures/errors/undefined_reference_in_new_context.snapshot +++ b/test/fixtures/errors/undefined_reference_in_new_context.snapshot @@ -8,6 +8,6 @@ ReferenceError: foo is not defined at Script.runInContext (node:vm:*:*) at Script.runInNewContext (node:vm:*:*) at Object.runInNewContext (node:vm:*:*) - at Object. (/test/fixtures/errors/undefined_reference_in_new_context.js:*:*) + at Object. (/test/fixtures/errors/undefined_reference_in_new_context.js:*:*) Node.js diff --git a/test/fixtures/eval/eval_messages.snapshot b/test/fixtures/eval/eval_messages.snapshot index 74918b00248dfc..615a05089449a1 100644 --- a/test/fixtures/eval/eval_messages.snapshot +++ b/test/fixtures/eval/eval_messages.snapshot @@ -64,7 +64,7 @@ Node.js var ______________________________________________; throw 10 ^ 10 -(Use `node --trace-uncaught ...` to show where the exception was thrown) +(Use ` --trace-uncaught ...` to show where the exception was thrown) Node.js @@ -72,7 +72,7 @@ Node.js var ______________________________________________; throw 10 ^ 10 -(Use `node --trace-uncaught ...` to show where the exception was thrown) +(Use ` --trace-uncaught ...` to show where the exception was thrown) Node.js done diff --git a/test/fixtures/eval/stdin_messages.snapshot b/test/fixtures/eval/stdin_messages.snapshot index 2e2816df251be0..9710f6871583c4 100644 --- a/test/fixtures/eval/stdin_messages.snapshot +++ b/test/fixtures/eval/stdin_messages.snapshot @@ -74,7 +74,7 @@ Node.js let ______________________________________________; throw 10 ^ 10 -(Use `node --trace-uncaught ...` to show where the exception was thrown) +(Use ` --trace-uncaught ...` to show where the exception was thrown) Node.js @@ -82,7 +82,7 @@ Node.js let ______________________________________________; throw 10 ^ 10 -(Use `node --trace-uncaught ...` to show where the exception was thrown) +(Use ` --trace-uncaught ...` to show where the exception was thrown) Node.js done diff --git a/test/fixtures/source-map/output/source_map_assert_source_line.snapshot b/test/fixtures/source-map/output/source_map_assert_source_line.snapshot index d42bc01cf758cf..d20e19d9fe3870 100644 --- a/test/fixtures/source-map/output/source_map_assert_source_line.snapshot +++ b/test/fixtures/source-map/output/source_map_assert_source_line.snapshot @@ -2,7 +2,7 @@ AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(false) - at Object. (*/test/fixtures/source-map/output/source_map_assert_source_line.ts:11:3) + at Object. (/test/fixtures/source-map/output/source_map_assert_source_line.ts:11:3) * * * diff --git a/test/fixtures/source-map/output/source_map_disabled_by_api.snapshot b/test/fixtures/source-map/output/source_map_disabled_by_api.snapshot index f538904873393e..a9fc0800739ec9 100644 --- a/test/fixtures/source-map/output/source_map_disabled_by_api.snapshot +++ b/test/fixtures/source-map/output/source_map_disabled_by_api.snapshot @@ -1,12 +1,12 @@ Error: an error! - at functionD (*/test/fixtures/source-map/enclosing-call-site-min.js:1:156) - at functionC (*/test/fixtures/source-map/enclosing-call-site-min.js:1:97) - at functionB (*/test/fixtures/source-map/enclosing-call-site-min.js:1:60) - at functionA (*/test/fixtures/source-map/enclosing-call-site-min.js:1:26) - at Object. (*/test/fixtures/source-map/enclosing-call-site-min.js:1:199) + at functionD (/test/fixtures/source-map/enclosing-call-site-min.js:1:156) + at functionC (/test/fixtures/source-map/enclosing-call-site-min.js:1:97) + at functionB (/test/fixtures/source-map/enclosing-call-site-min.js:1:60) + at functionA (/test/fixtures/source-map/enclosing-call-site-min.js:1:26) + at Object. (/test/fixtures/source-map/enclosing-call-site-min.js:1:199) Error: an error! - at functionD (*/test/fixtures/source-map/enclosing-call-site.js:16:17) - at functionC (*/test/fixtures/source-map/enclosing-call-site.js:10:3) - at functionB (*/test/fixtures/source-map/enclosing-call-site.js:6:3) - at functionA (*/test/fixtures/source-map/enclosing-call-site.js:2:3) - at Object. (*/test/fixtures/source-map/enclosing-call-site.js:24:3) + at functionD (/test/fixtures/source-map/enclosing-call-site.js:16:17) + at functionC (/test/fixtures/source-map/enclosing-call-site.js:10:3) + at functionB (/test/fixtures/source-map/enclosing-call-site.js:6:3) + at functionA (/test/fixtures/source-map/enclosing-call-site.js:2:3) + at Object. (/test/fixtures/source-map/enclosing-call-site.js:24:3) diff --git a/test/fixtures/source-map/output/source_map_disabled_by_process_api.snapshot b/test/fixtures/source-map/output/source_map_disabled_by_process_api.snapshot index f538904873393e..a9fc0800739ec9 100644 --- a/test/fixtures/source-map/output/source_map_disabled_by_process_api.snapshot +++ b/test/fixtures/source-map/output/source_map_disabled_by_process_api.snapshot @@ -1,12 +1,12 @@ Error: an error! - at functionD (*/test/fixtures/source-map/enclosing-call-site-min.js:1:156) - at functionC (*/test/fixtures/source-map/enclosing-call-site-min.js:1:97) - at functionB (*/test/fixtures/source-map/enclosing-call-site-min.js:1:60) - at functionA (*/test/fixtures/source-map/enclosing-call-site-min.js:1:26) - at Object. (*/test/fixtures/source-map/enclosing-call-site-min.js:1:199) + at functionD (/test/fixtures/source-map/enclosing-call-site-min.js:1:156) + at functionC (/test/fixtures/source-map/enclosing-call-site-min.js:1:97) + at functionB (/test/fixtures/source-map/enclosing-call-site-min.js:1:60) + at functionA (/test/fixtures/source-map/enclosing-call-site-min.js:1:26) + at Object. (/test/fixtures/source-map/enclosing-call-site-min.js:1:199) Error: an error! - at functionD (*/test/fixtures/source-map/enclosing-call-site.js:16:17) - at functionC (*/test/fixtures/source-map/enclosing-call-site.js:10:3) - at functionB (*/test/fixtures/source-map/enclosing-call-site.js:6:3) - at functionA (*/test/fixtures/source-map/enclosing-call-site.js:2:3) - at Object. (*/test/fixtures/source-map/enclosing-call-site.js:24:3) + at functionD (/test/fixtures/source-map/enclosing-call-site.js:16:17) + at functionC (/test/fixtures/source-map/enclosing-call-site.js:10:3) + at functionB (/test/fixtures/source-map/enclosing-call-site.js:6:3) + at functionA (/test/fixtures/source-map/enclosing-call-site.js:2:3) + at Object. (/test/fixtures/source-map/enclosing-call-site.js:24:3) diff --git a/test/fixtures/source-map/output/source_map_enabled_by_api.snapshot b/test/fixtures/source-map/output/source_map_enabled_by_api.snapshot index 9fe43a29865b35..214ff307bd870d 100644 --- a/test/fixtures/source-map/output/source_map_enabled_by_api.snapshot +++ b/test/fixtures/source-map/output/source_map_enabled_by_api.snapshot @@ -1,12 +1,12 @@ Error: an error! - at functionD (*/test/fixtures/source-map/enclosing-call-site.js:16:17) - at functionC (*/test/fixtures/source-map/enclosing-call-site.js:10:3) - at functionB (*/test/fixtures/source-map/enclosing-call-site.js:6:3) - at functionA (*/test/fixtures/source-map/enclosing-call-site.js:2:3) - at Object. (*/test/fixtures/source-map/enclosing-call-site.js:24:3) + at functionD (/test/fixtures/source-map/enclosing-call-site.js:16:17) + at functionC (/test/fixtures/source-map/enclosing-call-site.js:10:3) + at functionB (/test/fixtures/source-map/enclosing-call-site.js:6:3) + at functionA (/test/fixtures/source-map/enclosing-call-site.js:2:3) + at Object. (/test/fixtures/source-map/enclosing-call-site.js:24:3) Error: an error! - at functionD (*/test/fixtures/source-map/enclosing-call-site-min.js:1:156) - at functionC (*/test/fixtures/source-map/enclosing-call-site-min.js:1:97) - at functionB (*/test/fixtures/source-map/enclosing-call-site-min.js:1:60) - at functionA (*/test/fixtures/source-map/enclosing-call-site-min.js:1:26) - at Object. (*/test/fixtures/source-map/enclosing-call-site-min.js:1:199) + at functionD (/test/fixtures/source-map/enclosing-call-site-min.js:1:156) + at functionC (/test/fixtures/source-map/enclosing-call-site-min.js:1:97) + at functionB (/test/fixtures/source-map/enclosing-call-site-min.js:1:60) + at functionA (/test/fixtures/source-map/enclosing-call-site-min.js:1:26) + at Object. (/test/fixtures/source-map/enclosing-call-site-min.js:1:199) diff --git a/test/fixtures/source-map/output/source_map_enabled_by_api_node_modules.snapshot b/test/fixtures/source-map/output/source_map_enabled_by_api_node_modules.snapshot index decc8ee3632f70..eed6a8fa6ccb66 100644 --- a/test/fixtures/source-map/output/source_map_enabled_by_api_node_modules.snapshot +++ b/test/fixtures/source-map/output/source_map_enabled_by_api_node_modules.snapshot @@ -1,12 +1,12 @@ Error: an error! - at functionD (*/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site.js:16:17) - at functionC (*/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site.js:10:3) - at functionB (*/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site.js:6:3) - at functionA (*/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site.js:2:3) - at Object. (*/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site.js:24:3) + at functionD (/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site.js:16:17) + at functionC (/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site.js:10:3) + at functionB (/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site.js:6:3) + at functionA (/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site.js:2:3) + at Object. (/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site.js:24:3) Error: an error! - at functionD (*/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site-min.js:1:156) - at functionC (*/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site-min.js:1:97) - at functionB (*/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site-min.js:1:60) - at functionA (*/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site-min.js:1:26) - at Object. (*/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site-min.js:1:199) + at functionD (/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site-min.js:1:156) + at functionC (/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site-min.js:1:97) + at functionB (/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site-min.js:1:60) + at functionA (/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site-min.js:1:26) + at Object. (/test/fixtures/source-map/node_modules/error-stack/enclosing-call-site-min.js:1:199) diff --git a/test/fixtures/source-map/output/source_map_enabled_by_process_api.snapshot b/test/fixtures/source-map/output/source_map_enabled_by_process_api.snapshot index 9fe43a29865b35..214ff307bd870d 100644 --- a/test/fixtures/source-map/output/source_map_enabled_by_process_api.snapshot +++ b/test/fixtures/source-map/output/source_map_enabled_by_process_api.snapshot @@ -1,12 +1,12 @@ Error: an error! - at functionD (*/test/fixtures/source-map/enclosing-call-site.js:16:17) - at functionC (*/test/fixtures/source-map/enclosing-call-site.js:10:3) - at functionB (*/test/fixtures/source-map/enclosing-call-site.js:6:3) - at functionA (*/test/fixtures/source-map/enclosing-call-site.js:2:3) - at Object. (*/test/fixtures/source-map/enclosing-call-site.js:24:3) + at functionD (/test/fixtures/source-map/enclosing-call-site.js:16:17) + at functionC (/test/fixtures/source-map/enclosing-call-site.js:10:3) + at functionB (/test/fixtures/source-map/enclosing-call-site.js:6:3) + at functionA (/test/fixtures/source-map/enclosing-call-site.js:2:3) + at Object. (/test/fixtures/source-map/enclosing-call-site.js:24:3) Error: an error! - at functionD (*/test/fixtures/source-map/enclosing-call-site-min.js:1:156) - at functionC (*/test/fixtures/source-map/enclosing-call-site-min.js:1:97) - at functionB (*/test/fixtures/source-map/enclosing-call-site-min.js:1:60) - at functionA (*/test/fixtures/source-map/enclosing-call-site-min.js:1:26) - at Object. (*/test/fixtures/source-map/enclosing-call-site-min.js:1:199) + at functionD (/test/fixtures/source-map/enclosing-call-site-min.js:1:156) + at functionC (/test/fixtures/source-map/enclosing-call-site-min.js:1:97) + at functionB (/test/fixtures/source-map/enclosing-call-site-min.js:1:60) + at functionA (/test/fixtures/source-map/enclosing-call-site-min.js:1:26) + at Object. (/test/fixtures/source-map/enclosing-call-site-min.js:1:199) diff --git a/test/fixtures/source-map/output/source_map_enclosing_function.snapshot b/test/fixtures/source-map/output/source_map_enclosing_function.snapshot index 3279d9c67e4169..a5ea09e09f5b71 100644 --- a/test/fixtures/source-map/output/source_map_enclosing_function.snapshot +++ b/test/fixtures/source-map/output/source_map_enclosing_function.snapshot @@ -1,12 +1,12 @@ -*/test/fixtures/source-map/enclosing-call-site.js:26 +/test/fixtures/source-map/enclosing-call-site.js:26 throw err ^ Error: an error! - at functionD (*/test/fixtures/source-map/enclosing-call-site.js:16:17) - at functionC (*/test/fixtures/source-map/enclosing-call-site.js:10:3) - at functionB (*/test/fixtures/source-map/enclosing-call-site.js:6:3) - at functionA (*/test/fixtures/source-map/enclosing-call-site.js:2:3) - at Object. (*/test/fixtures/source-map/enclosing-call-site.js:24:3) + at functionD (/test/fixtures/source-map/enclosing-call-site.js:16:17) + at functionC (/test/fixtures/source-map/enclosing-call-site.js:10:3) + at functionB (/test/fixtures/source-map/enclosing-call-site.js:6:3) + at functionA (/test/fixtures/source-map/enclosing-call-site.js:2:3) + at Object. (/test/fixtures/source-map/enclosing-call-site.js:24:3) Node.js diff --git a/test/fixtures/source-map/output/source_map_eval.snapshot b/test/fixtures/source-map/output/source_map_eval.snapshot index 225022d87bc142..3711943a17a9c0 100644 --- a/test/fixtures/source-map/output/source_map_eval.snapshot +++ b/test/fixtures/source-map/output/source_map_eval.snapshot @@ -1,10 +1,10 @@ -*/synthesized/workspace/tabs-source-url.coffee:26 +/synthesized/workspace/tabs-source-url.coffee:26 alert "I knew it!" ^ ReferenceError: alert is not defined - at Object.eval (*/synthesized/workspace/tabs-source-url.coffee:26:2) - at eval (*/synthesized/workspace/tabs-source-url.coffee:1:14) - at Object. (*/test/fixtures/source-map/output/source_map_eval.js:11:1) + at Object.eval (/synthesized/workspace/tabs-source-url.coffee:26:2) + at eval (/synthesized/workspace/tabs-source-url.coffee:1:14) + at Object. (/test/fixtures/source-map/output/source_map_eval.js:11:1) Node.js diff --git a/test/fixtures/source-map/output/source_map_no_source_file.snapshot b/test/fixtures/source-map/output/source_map_no_source_file.snapshot index 82aefc02f1c5ef..62ff7c6e210f18 100644 --- a/test/fixtures/source-map/output/source_map_no_source_file.snapshot +++ b/test/fixtures/source-map/output/source_map_no_source_file.snapshot @@ -1,9 +1,9 @@ -*/test/fixtures/source-map/no-source.js:2 +/test/fixtures/source-map/no-source.js:2 throw new Error('foo'); ^ Error: foo - at Throw (*/test/fixtures/source-map/file-not-exists.ts:2:9) - at Object. (*/test/fixtures/source-map/file-not-exists.ts:5:1) + at Throw (/test/fixtures/source-map/file-not-exists.ts:2:9) + at Object. (/test/fixtures/source-map/file-not-exists.ts:5:1) Node.js diff --git a/test/fixtures/source-map/output/source_map_prepare_stack_trace.snapshot b/test/fixtures/source-map/output/source_map_prepare_stack_trace.snapshot index 57bac36a2e5214..ead22322139c6a 100644 --- a/test/fixtures/source-map/output/source_map_prepare_stack_trace.snapshot +++ b/test/fixtures/source-map/output/source_map_prepare_stack_trace.snapshot @@ -1,10 +1,10 @@ Error: an error! - at functionD (*/test/fixtures/source-map/enclosing-call-site.js:16:17) - at functionB (*/test/fixtures/source-map/enclosing-call-site.js:6:3) - at functionA (*/test/fixtures/source-map/enclosing-call-site.js:2:3) - at Object. (*/test/fixtures/source-map/enclosing-call-site.js:24:3) + at functionD (/test/fixtures/source-map/enclosing-call-site.js:16:17) + at functionB (/test/fixtures/source-map/enclosing-call-site.js:6:3) + at functionA (/test/fixtures/source-map/enclosing-call-site.js:2:3) + at Object. (/test/fixtures/source-map/enclosing-call-site.js:24:3) Error: an error! - at functionD (*/test/fixtures/source-map/enclosing-call-site-min.js:1:156) - at functionB (*/test/fixtures/source-map/enclosing-call-site-min.js:1:60) - at functionA (*/test/fixtures/source-map/enclosing-call-site-min.js:1:26) - at Object. (*/test/fixtures/source-map/enclosing-call-site-min.js:1:199) + at functionD (/test/fixtures/source-map/enclosing-call-site-min.js:1:156) + at functionB (/test/fixtures/source-map/enclosing-call-site-min.js:1:60) + at functionA (/test/fixtures/source-map/enclosing-call-site-min.js:1:26) + at Object. (/test/fixtures/source-map/enclosing-call-site-min.js:1:199) diff --git a/test/fixtures/source-map/output/source_map_reference_error_tabs.snapshot b/test/fixtures/source-map/output/source_map_reference_error_tabs.snapshot index 354c13891c5268..da0de3a93c0655 100644 --- a/test/fixtures/source-map/output/source_map_reference_error_tabs.snapshot +++ b/test/fixtures/source-map/output/source_map_reference_error_tabs.snapshot @@ -1,9 +1,9 @@ -*/test/fixtures/source-map/tabs.coffee:26 +/test/fixtures/source-map/tabs.coffee:26 alert "I knew it!" ^ ReferenceError: alert is not defined - at Object. (*/test/fixtures/source-map/tabs.coffee:26:2) - at Object. (*/test/fixtures/source-map/tabs.coffee:1:14) + at Object. (/test/fixtures/source-map/tabs.coffee:26:2) + at Object. (/test/fixtures/source-map/tabs.coffee:1:14) Node.js diff --git a/test/fixtures/source-map/output/source_map_sourcemapping_url_string.snapshot b/test/fixtures/source-map/output/source_map_sourcemapping_url_string.snapshot index 52d4e6a28ee5ce..8ebf9af22e9d09 100644 --- a/test/fixtures/source-map/output/source_map_sourcemapping_url_string.snapshot +++ b/test/fixtures/source-map/output/source_map_sourcemapping_url_string.snapshot @@ -1,3 +1,3 @@ Error: an exception. - at Object. (*/test/fixtures/source-map/typescript-sourcemapping_url_string.ts:3:7) + at Object. (/test/fixtures/source-map/typescript-sourcemapping_url_string.ts:3:7) * diff --git a/test/fixtures/source-map/output/source_map_throw_async_stack_trace.snapshot b/test/fixtures/source-map/output/source_map_throw_async_stack_trace.snapshot index ca8334b8ed29e2..8e9410dad38207 100644 --- a/test/fixtures/source-map/output/source_map_throw_async_stack_trace.snapshot +++ b/test/fixtures/source-map/output/source_map_throw_async_stack_trace.snapshot @@ -1,10 +1,10 @@ -*/test/fixtures/source-map/output/source_map_throw_async_stack_trace.mts:13 +/test/fixtures/source-map/output/source_map_throw_async_stack_trace.mts:13 throw new Error('message') ^ Error: message - at Throw (*/test/fixtures/source-map/output/source_map_throw_async_stack_trace.mts:13:9) + at Throw (/test/fixtures/source-map/output/source_map_throw_async_stack_trace.mts:13:9) at async Promise.all (index 3) - at async main (*/test/fixtures/source-map/output/source_map_throw_async_stack_trace.mts:17:3) + at async main (/test/fixtures/source-map/output/source_map_throw_async_stack_trace.mts:17:3) Node.js diff --git a/test/fixtures/source-map/output/source_map_throw_catch.snapshot b/test/fixtures/source-map/output/source_map_throw_catch.snapshot index 6e80e500c8cf17..db728052b52818 100644 --- a/test/fixtures/source-map/output/source_map_throw_catch.snapshot +++ b/test/fixtures/source-map/output/source_map_throw_catch.snapshot @@ -1,4 +1,4 @@ reachable Error: an exception - at branch (*/test/fixtures/source-map/typescript-throw.ts:18:11) - at Object. (*/test/fixtures/source-map/typescript-throw.ts:24:1) + at branch (/test/fixtures/source-map/typescript-throw.ts:18:11) + at Object. (/test/fixtures/source-map/typescript-throw.ts:24:1) diff --git a/test/fixtures/source-map/output/source_map_throw_class_method.snapshot b/test/fixtures/source-map/output/source_map_throw_class_method.snapshot index a6b7984d4c7c76..a0f79e1babdf88 100644 --- a/test/fixtures/source-map/output/source_map_throw_class_method.snapshot +++ b/test/fixtures/source-map/output/source_map_throw_class_method.snapshot @@ -1,6 +1,6 @@ Error: This is a test - at Foo.bar (*/test/fixtures/source-map/throw-class-method.js:3:11) - at Object. (*/test/fixtures/source-map/throw-class-method.js:12:7) + at Foo.bar (/test/fixtures/source-map/throw-class-method.js:3:11) + at Object. (/test/fixtures/source-map/throw-class-method.js:12:7) Error: This is a test - at Bar.bar (*/test/fixtures/source-map/throw-class-method.js:3:11) - at Object. (*/test/fixtures/source-map/throw-class-method.js:19:7) + at Bar.bar (/test/fixtures/source-map/throw-class-method.js:3:11) + at Object. (/test/fixtures/source-map/throw-class-method.js:19:7) diff --git a/test/fixtures/source-map/output/source_map_throw_construct.snapshot b/test/fixtures/source-map/output/source_map_throw_construct.snapshot index 21518d761c5219..43718adba6a306 100644 --- a/test/fixtures/source-map/output/source_map_throw_construct.snapshot +++ b/test/fixtures/source-map/output/source_map_throw_construct.snapshot @@ -1,10 +1,10 @@ -*/test/fixtures/source-map/output/source_map_throw_construct.mts:13 +/test/fixtures/source-map/output/source_map_throw_construct.mts:13 throw new Error('message'); ^ Error: message - at new Foo (*/test/fixtures/source-map/output/source_map_throw_construct.mts:13:11) - at (*/test/fixtures/source-map/output/source_map_throw_construct.mts:17:1) + at new Foo (/test/fixtures/source-map/output/source_map_throw_construct.mts:13:11) + at (/test/fixtures/source-map/output/source_map_throw_construct.mts:17:1) * * * diff --git a/test/fixtures/source-map/output/source_map_throw_first_tick.snapshot b/test/fixtures/source-map/output/source_map_throw_first_tick.snapshot index cf71446be0b388..35b7207dce770f 100644 --- a/test/fixtures/source-map/output/source_map_throw_first_tick.snapshot +++ b/test/fixtures/source-map/output/source_map_throw_first_tick.snapshot @@ -1,10 +1,10 @@ reachable -*/test/fixtures/source-map/typescript-throw.ts:18 +/test/fixtures/source-map/typescript-throw.ts:18 throw Error('an exception'); ^ Error: an exception - at branch (*/test/fixtures/source-map/typescript-throw.ts:18:11) - at Object. (*/test/fixtures/source-map/typescript-throw.ts:24:1) + at branch (/test/fixtures/source-map/typescript-throw.ts:18:11) + at Object. (/test/fixtures/source-map/typescript-throw.ts:24:1) Node.js diff --git a/test/fixtures/source-map/output/source_map_throw_icu.snapshot b/test/fixtures/source-map/output/source_map_throw_icu.snapshot index cdac638d5c733f..9cd46e186c17ca 100644 --- a/test/fixtures/source-map/output/source_map_throw_icu.snapshot +++ b/test/fixtures/source-map/output/source_map_throw_icu.snapshot @@ -1,9 +1,9 @@ -*/test/fixtures/source-map/icu.jsx:3 +/test/fixtures/source-map/icu.jsx:3 ("あ 🐕 🐕", throw Error("an error")); ^ Error: an error - at Object.createElement (*/test/fixtures/source-map/icu.jsx:3:23) - at Object. (*/test/fixtures/source-map/icu.jsx:9:5) + at Object.createElement (/test/fixtures/source-map/icu.jsx:3:23) + at Object. (/test/fixtures/source-map/icu.jsx:9:5) Node.js diff --git a/test/fixtures/source-map/output/source_map_throw_set_immediate.snapshot b/test/fixtures/source-map/output/source_map_throw_set_immediate.snapshot index 6415b9f8b715db..999258182a6152 100644 --- a/test/fixtures/source-map/output/source_map_throw_set_immediate.snapshot +++ b/test/fixtures/source-map/output/source_map_throw_set_immediate.snapshot @@ -1,10 +1,10 @@ -*/test/fixtures/source-map/uglify-throw-original.js:5 +/test/fixtures/source-map/uglify-throw-original.js:5 throw Error('goodbye'); ^ Error: goodbye - at Hello (*/test/fixtures/source-map/uglify-throw-original.js:5:9) - at Immediate. (*/test/fixtures/source-map/uglify-throw-original.js:9:3) + at Hello (/test/fixtures/source-map/uglify-throw-original.js:5:9) + at Immediate. (/test/fixtures/source-map/uglify-throw-original.js:9:3) * Node.js diff --git a/test/fixtures/test-runner/output/abort-runs-after-hook.snapshot b/test/fixtures/test-runner/output/abort-runs-after-hook.snapshot index 86191e55ddc3dc..f551a0b5baab75 100644 --- a/test/fixtures/test-runner/output/abort-runs-after-hook.snapshot +++ b/test/fixtures/test-runner/output/abort-runs-after-hook.snapshot @@ -5,7 +5,7 @@ not ok 1 - test that aborts --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort-runs-after-hook.js:(LINE):1' + location: '/test/fixtures/test-runner/output/abort-runs-after-hook.js:(LINE):1' failureType: 'uncaughtException' error: 'boom' code: 'ERR_TEST_FAILURE' diff --git a/test/fixtures/test-runner/output/abort.snapshot b/test/fixtures/test-runner/output/abort.snapshot index efe24771221956..c8e9aeb31b5faa 100644 --- a/test/fixtures/test-runner/output/abort.snapshot +++ b/test/fixtures/test-runner/output/abort.snapshot @@ -29,7 +29,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort.js:(LINE):7' + location: '/test/fixtures/test-runner/output/abort.js:(LINE):7' failureType: 'cancelledByParent' error: 'test did not finish before its parent and was cancelled' code: 'ERR_TEST_FAILURE' @@ -39,7 +39,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort.js:(LINE):7' + location: '/test/fixtures/test-runner/output/abort.js:(LINE):7' failureType: 'cancelledByParent' error: 'test did not finish before its parent and was cancelled' code: 'ERR_TEST_FAILURE' @@ -49,7 +49,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort.js:(LINE):7' + location: '/test/fixtures/test-runner/output/abort.js:(LINE):7' failureType: 'testAborted' error: 'This operation was aborted' code: 20 @@ -71,7 +71,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort.js:(LINE):7' + location: '/test/fixtures/test-runner/output/abort.js:(LINE):7' failureType: 'testAborted' error: 'This operation was aborted' code: 20 @@ -93,7 +93,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort.js:(LINE):7' + location: '/test/fixtures/test-runner/output/abort.js:(LINE):7' failureType: 'testAborted' error: 'This operation was aborted' code: 20 @@ -115,7 +115,7 @@ not ok 1 - promise timeout signal --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort.js:(LINE):1' + location: '/test/fixtures/test-runner/output/abort.js:(LINE):1' failureType: 'testAborted' error: 'The operation was aborted due to timeout' code: 23 @@ -131,7 +131,7 @@ not ok 2 - promise abort signal --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort.js:(LINE):1' + location: '/test/fixtures/test-runner/output/abort.js:(LINE):1' failureType: 'testAborted' error: 'This operation was aborted' code: 20 @@ -178,7 +178,7 @@ not ok 2 - promise abort signal --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort.js:(LINE):5' + location: '/test/fixtures/test-runner/output/abort.js:(LINE):5' failureType: 'cancelledByParent' error: 'test did not finish before its parent and was cancelled' code: 'ERR_TEST_FAILURE' @@ -188,7 +188,7 @@ not ok 2 - promise abort signal --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort.js:(LINE):5' + location: '/test/fixtures/test-runner/output/abort.js:(LINE):5' failureType: 'cancelledByParent' error: 'test did not finish before its parent and was cancelled' code: 'ERR_TEST_FAILURE' @@ -198,7 +198,7 @@ not ok 2 - promise abort signal --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort.js:(LINE):5' + location: '/test/fixtures/test-runner/output/abort.js:(LINE):5' failureType: 'testAborted' error: 'This operation was aborted' code: 20 @@ -220,7 +220,7 @@ not ok 2 - promise abort signal --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort.js:(LINE):5' + location: '/test/fixtures/test-runner/output/abort.js:(LINE):5' failureType: 'testAborted' error: 'This operation was aborted' code: 20 @@ -242,7 +242,7 @@ not ok 2 - promise abort signal --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort.js:(LINE):5' + location: '/test/fixtures/test-runner/output/abort.js:(LINE):5' failureType: 'testAborted' error: 'This operation was aborted' code: 20 @@ -264,7 +264,7 @@ not ok 3 - callback timeout signal --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort.js:(LINE):1' + location: '/test/fixtures/test-runner/output/abort.js:(LINE):1' failureType: 'testAborted' error: 'The operation was aborted due to timeout' code: 23 @@ -280,7 +280,7 @@ not ok 4 - callback abort signal --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort.js:(LINE):1' + location: '/test/fixtures/test-runner/output/abort.js:(LINE):1' failureType: 'testAborted' error: 'This operation was aborted' code: 20 diff --git a/test/fixtures/test-runner/output/abort_hooks.snapshot b/test/fixtures/test-runner/output/abort_hooks.snapshot index a1d389d98b5610..db52ca3c8fbbb0 100644 --- a/test/fixtures/test-runner/output/abort_hooks.snapshot +++ b/test/fixtures/test-runner/output/abort_hooks.snapshot @@ -13,7 +13,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):3' + location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):3' failureType: 'cancelledByParent' error: 'test did not finish before its parent and was cancelled' code: 'ERR_TEST_FAILURE' @@ -23,7 +23,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):3' + location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):3' failureType: 'cancelledByParent' error: 'test did not finish before its parent and was cancelled' code: 'ERR_TEST_FAILURE' @@ -33,7 +33,7 @@ not ok 1 - 1 before describe --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):1' failureType: 'hookFailed' error: 'This operation was aborted' code: 20 @@ -68,7 +68,7 @@ not ok 2 - 2 after describe --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):1' failureType: 'hookFailed' error: 'This operation was aborted' code: 20 @@ -91,7 +91,7 @@ not ok 2 - 2 after describe --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):3' + location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):3' failureType: 'hookFailed' error: 'This operation was aborted' code: 20 @@ -113,7 +113,7 @@ not ok 2 - 2 after describe --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):3' + location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):3' failureType: 'hookFailed' error: 'This operation was aborted' code: 20 @@ -135,7 +135,7 @@ not ok 3 - 3 beforeEach describe --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):1' failureType: 'subtestsFailed' error: '2 subtests failed' code: 'ERR_TEST_FAILURE' @@ -146,7 +146,7 @@ not ok 3 - 3 beforeEach describe --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):3' + location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):3' failureType: 'hookFailed' error: 'This operation was aborted' code: 20 @@ -168,7 +168,7 @@ not ok 3 - 3 beforeEach describe --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):3' + location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):3' failureType: 'hookFailed' error: 'This operation was aborted' code: 20 @@ -190,7 +190,7 @@ not ok 4 - 4 afterEach describe --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/abort_hooks.js:(LINE):1' failureType: 'subtestsFailed' error: '2 subtests failed' code: 'ERR_TEST_FAILURE' diff --git a/test/fixtures/test-runner/output/abort_suite.snapshot b/test/fixtures/test-runner/output/abort_suite.snapshot index bdb52ad1ffcc72..80a7705e92959b 100644 --- a/test/fixtures/test-runner/output/abort_suite.snapshot +++ b/test/fixtures/test-runner/output/abort_suite.snapshot @@ -29,7 +29,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):3' + location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):3' failureType: 'cancelledByParent' error: 'test did not finish before its parent and was cancelled' code: 'ERR_TEST_FAILURE' @@ -39,7 +39,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):3' + location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):3' failureType: 'cancelledByParent' error: 'test did not finish before its parent and was cancelled' code: 'ERR_TEST_FAILURE' @@ -49,7 +49,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):3' + location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):3' failureType: 'testAborted' error: 'This operation was aborted' code: 20 @@ -71,7 +71,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):3' + location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):3' failureType: 'testAborted' error: 'This operation was aborted' code: 20 @@ -93,7 +93,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):3' + location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):3' failureType: 'testAborted' error: 'This operation was aborted' code: 20 @@ -115,7 +115,7 @@ not ok 1 - describe timeout signal --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):1' + location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):1' failureType: 'testAborted' error: 'The operation was aborted due to timeout' code: 23 @@ -131,7 +131,7 @@ not ok 2 - describe abort signal --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):1' + location: '/test/fixtures/test-runner/output/abort_suite.js:(LINE):1' failureType: 'testAborted' error: 'This operation was aborted' code: 20 diff --git a/test/fixtures/test-runner/output/describe_it.snapshot b/test/fixtures/test-runner/output/describe_it.snapshot index f41f4440d05d7d..f1240a6a99dafc 100644 --- a/test/fixtures/test-runner/output/describe_it.snapshot +++ b/test/fixtures/test-runner/output/describe_it.snapshot @@ -40,7 +40,7 @@ not ok 7 - sync todo # TODO --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):4' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):4' failureType: 'testCodeFailure' error: 'should not count as a failure' code: 'ERR_TEST_FAILURE' @@ -64,7 +64,7 @@ not ok 9 - sync todo with message # TODO this is a failing todo --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'testCodeFailure' error: 'should not count as a failure' code: 'ERR_TEST_FAILURE' @@ -106,7 +106,7 @@ not ok 14 - sync throw fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'testCodeFailure' error: 'thrown from sync throw fail' code: 'ERR_TEST_FAILURE' @@ -142,7 +142,7 @@ not ok 18 - async throw fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'testCodeFailure' error: 'thrown from async throw fail' code: 'ERR_TEST_FAILURE' @@ -160,7 +160,7 @@ not ok 19 - async skip fail # SKIP --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'callbackAndPromisePresent' error: 'passed a callback but also returned a Promise' code: 'ERR_TEST_FAILURE' @@ -170,7 +170,7 @@ not ok 20 - async assertion fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'testCodeFailure' error: |- Expected values to be strictly equal: @@ -202,7 +202,7 @@ not ok 22 - reject fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'testCodeFailure' error: 'rejected from reject fail' code: 'ERR_TEST_FAILURE' @@ -251,7 +251,7 @@ ok 27 - immediate resolve pass --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):3' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):3' failureType: 'testCodeFailure' error: 'thrown from subtest sync throw fail' code: 'ERR_TEST_FAILURE' @@ -278,7 +278,7 @@ not ok 28 - subtest sync throw fail --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'subtestsFailed' error: '1 subtest failed' code: 'ERR_TEST_FAILURE' @@ -288,7 +288,7 @@ not ok 29 - sync throw non-error fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'testCodeFailure' error: 'Symbol(thrown symbol from sync throw non-error fail)' code: 'ERR_TEST_FAILURE' @@ -347,7 +347,7 @@ not ok 34 - sync skip option is false fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'testCodeFailure' error: 'this should be executed' code: 'ERR_TEST_FAILURE' @@ -419,7 +419,7 @@ not ok 44 - callback fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'testCodeFailure' error: 'callback failure' code: 'ERR_TEST_FAILURE' @@ -450,7 +450,7 @@ not ok 48 - callback also returns a Promise --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'callbackAndPromisePresent' error: 'passed a callback but also returned a Promise' code: 'ERR_TEST_FAILURE' @@ -460,7 +460,7 @@ not ok 49 - callback throw --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'testCodeFailure' error: 'thrown from callback throw' code: 'ERR_TEST_FAILURE' @@ -478,7 +478,7 @@ not ok 50 - callback called twice --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'multipleCallbackInvocations' error: 'callback invoked multiple times' code: 'ERR_TEST_FAILURE' @@ -497,7 +497,7 @@ not ok 52 - callback called twice in future tick --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'uncaughtException' error: 'callback invoked multiple times' code: 'ERR_TEST_FAILURE' @@ -509,7 +509,7 @@ not ok 53 - callback async throw --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'uncaughtException' error: 'thrown from callback async throw' code: 'ERR_TEST_FAILURE' @@ -528,7 +528,7 @@ not ok 55 - custom inspect symbol fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'testCodeFailure' error: 'customized' code: 'ERR_TEST_FAILURE' @@ -538,7 +538,7 @@ not ok 56 - custom inspect symbol that throws fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'testCodeFailure' error: |- { @@ -553,7 +553,7 @@ not ok 56 - custom inspect symbol that throws fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):3' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):3' failureType: 'testCodeFailure' error: 'thrown from subtest sync throw fails at first' code: 'ERR_TEST_FAILURE' @@ -574,7 +574,7 @@ not ok 56 - custom inspect symbol that throws fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):3' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):3' failureType: 'testCodeFailure' error: 'thrown from subtest sync throw fails at second' code: 'ERR_TEST_FAILURE' @@ -594,7 +594,7 @@ not ok 57 - subtest sync throw fails --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'subtestsFailed' error: '2 subtests failed' code: 'ERR_TEST_FAILURE' @@ -605,7 +605,7 @@ not ok 57 - subtest sync throw fails --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):3' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):3' failureType: 'cancelledByParent' error: 'test did not finish before its parent and was cancelled' code: 'ERR_TEST_FAILURE' @@ -615,7 +615,7 @@ not ok 58 - describe sync throw fails --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'testCodeFailure' error: 'thrown from describe' code: 'ERR_TEST_FAILURE' @@ -637,7 +637,7 @@ not ok 58 - describe sync throw fails --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):3' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):3' failureType: 'cancelledByParent' error: 'test did not finish before its parent and was cancelled' code: 'ERR_TEST_FAILURE' @@ -647,7 +647,7 @@ not ok 59 - describe async throw fails --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'testCodeFailure' error: 'thrown from describe' code: 'ERR_TEST_FAILURE' @@ -669,7 +669,7 @@ not ok 59 - describe async throw fails --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):3' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):3' failureType: 'testTimeoutFailure' error: 'test timed out after 5ms' code: 'ERR_TEST_FAILURE' @@ -681,7 +681,7 @@ not ok 59 - describe async throw fails --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):3' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):3' failureType: 'testTimeoutFailure' error: 'test timed out after 5ms' code: 'ERR_TEST_FAILURE' @@ -703,7 +703,7 @@ not ok 60 - timeouts --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'subtestsFailed' error: '2 subtests failed' code: 'ERR_TEST_FAILURE' @@ -720,7 +720,7 @@ not ok 60 - timeouts --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):3' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):3' failureType: 'testCodeFailure' error: 'custom error' code: 'ERR_TEST_FAILURE' @@ -734,7 +734,7 @@ not ok 61 - successful thenable --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'subtestsFailed' error: '1 subtest failed' code: 'ERR_TEST_FAILURE' @@ -744,7 +744,7 @@ not ok 62 - rejected thenable --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):1' failureType: 'testCodeFailure' error: 'custom error' code: 'ERR_TEST_FAILURE' @@ -789,7 +789,7 @@ not ok 64 - invalid subtest fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):5' + location: '/test/fixtures/test-runner/output/describe_it.js:(LINE):5' failureType: 'parentAlreadyFinished' error: 'test could not be started because its parent finished' code: 'ERR_TEST_FAILURE' diff --git a/test/fixtures/test-runner/output/filtered-suite-throws.snapshot b/test/fixtures/test-runner/output/filtered-suite-throws.snapshot index 8befa83c004c28..cdcbbc8593df87 100644 --- a/test/fixtures/test-runner/output/filtered-suite-throws.snapshot +++ b/test/fixtures/test-runner/output/filtered-suite-throws.snapshot @@ -4,7 +4,7 @@ not ok 1 - suite 1 --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/filtered-suite-throws.js:(LINE):1' + location: '/test/fixtures/test-runner/output/filtered-suite-throws.js:(LINE):1' failureType: 'testCodeFailure' error: 'boom 1' code: 'ERR_TEST_FAILURE' @@ -26,7 +26,7 @@ not ok 1 - suite 1 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/filtered-suite-throws.js:(LINE):3' + location: '/test/fixtures/test-runner/output/filtered-suite-throws.js:(LINE):3' failureType: 'cancelledByParent' error: 'test did not finish before its parent and was cancelled' code: 'ERR_TEST_FAILURE' @@ -36,7 +36,7 @@ not ok 2 - suite 2 --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/filtered-suite-throws.js:(LINE):1' + location: '/test/fixtures/test-runner/output/filtered-suite-throws.js:(LINE):1' failureType: 'testCodeFailure' error: 'boom 1' code: 'ERR_TEST_FAILURE' diff --git a/test/fixtures/test-runner/output/global_after_should_fail_the_test.snapshot b/test/fixtures/test-runner/output/global_after_should_fail_the_test.snapshot index 7d4e5923f75740..1aaedf6df75fa3 100644 --- a/test/fixtures/test-runner/output/global_after_should_fail_the_test.snapshot +++ b/test/fixtures/test-runner/output/global_after_should_fail_the_test.snapshot @@ -6,10 +6,10 @@ ok 1 - this is a test duration_ms: * type: 'test' ... -not ok 2 - /test/fixtures/test-runner/output/global_after_should_fail_the_test.js +not ok 2 - /test/fixtures/test-runner/output/global_after_should_fail_the_test.js --- duration_ms: * - location: '/test/fixtures/test-runner/output/global_after_should_fail_the_test.js:(LINE):1' + location: '/test/fixtures/test-runner/output/global_after_should_fail_the_test.js:(LINE):1' failureType: 'hookFailed' error: 'this should fail the test' code: 'ERR_TEST_FAILURE' diff --git a/test/fixtures/test-runner/output/hooks.snapshot b/test/fixtures/test-runner/output/hooks.snapshot index 4ba957d539ce70..f9cfd9ddb1c206 100644 --- a/test/fixtures/test-runner/output/hooks.snapshot +++ b/test/fixtures/test-runner/output/hooks.snapshot @@ -50,7 +50,7 @@ ok 2 - describe hooks - no subtests --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' failureType: 'cancelledByParent' error: 'test did not finish before its parent and was cancelled' code: 'ERR_TEST_FAILURE' @@ -60,7 +60,7 @@ ok 2 - describe hooks - no subtests --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' failureType: 'cancelledByParent' error: 'test did not finish before its parent and was cancelled' code: 'ERR_TEST_FAILURE' @@ -70,7 +70,7 @@ not ok 3 - before throws --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'hookFailed' error: 'before' code: 'ERR_TEST_FAILURE' @@ -89,7 +89,7 @@ not ok 4 - before throws - no subtests --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'hookFailed' error: 'before' code: 'ERR_TEST_FAILURE' @@ -121,7 +121,7 @@ not ok 5 - after throws --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'hookFailed' error: 'after' code: 'ERR_TEST_FAILURE' @@ -142,7 +142,7 @@ not ok 6 - after throws - no subtests --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'hookFailed' error: 'after' code: 'ERR_TEST_FAILURE' @@ -164,7 +164,7 @@ not ok 6 - after throws - no subtests --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' failureType: 'hookFailed' error: 'beforeEach' code: 'ERR_TEST_FAILURE' @@ -185,7 +185,7 @@ not ok 6 - after throws - no subtests --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' failureType: 'hookFailed' error: 'beforeEach' code: 'ERR_TEST_FAILURE' @@ -206,7 +206,7 @@ not ok 7 - beforeEach throws --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'subtestsFailed' error: '2 subtests failed' code: 'ERR_TEST_FAILURE' @@ -217,7 +217,7 @@ not ok 7 - beforeEach throws --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' failureType: 'hookFailed' error: 'afterEach' code: 'ERR_TEST_FAILURE' @@ -238,7 +238,7 @@ not ok 7 - beforeEach throws --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' failureType: 'hookFailed' error: 'afterEach' code: 'ERR_TEST_FAILURE' @@ -258,7 +258,7 @@ not ok 8 - afterEach throws --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'subtestsFailed' error: '2 subtests failed' code: 'ERR_TEST_FAILURE' @@ -269,7 +269,7 @@ not ok 8 - afterEach throws --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' failureType: 'testCodeFailure' error: 'test' code: 'ERR_TEST_FAILURE' @@ -296,7 +296,7 @@ not ok 9 - afterEach when test fails --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'subtestsFailed' error: '1 subtest failed' code: 'ERR_TEST_FAILURE' @@ -307,7 +307,7 @@ not ok 9 - afterEach when test fails --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' failureType: 'testCodeFailure' error: 'test' code: 'ERR_TEST_FAILURE' @@ -328,7 +328,7 @@ not ok 9 - afterEach when test fails --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' failureType: 'hookFailed' error: 'afterEach' code: 'ERR_TEST_FAILURE' @@ -348,7 +348,7 @@ not ok 10 - afterEach throws and test fails --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'subtestsFailed' error: '2 subtests failed' code: 'ERR_TEST_FAILURE' @@ -403,7 +403,7 @@ ok 12 - test hooks - no subtests --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' failureType: 'hookFailed' error: 'before' code: 'ERR_TEST_FAILURE' @@ -424,7 +424,7 @@ ok 12 - test hooks - no subtests --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' failureType: 'hookFailed' error: 'before' code: 'ERR_TEST_FAILURE' @@ -445,7 +445,7 @@ not ok 13 - t.before throws --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'testCodeFailure' error: 'before' code: 'ERR_TEST_FAILURE' @@ -466,7 +466,7 @@ not ok 14 - t.before throws - no subtests --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'testCodeFailure' error: 'before' code: 'ERR_TEST_FAILURE' @@ -500,7 +500,7 @@ not ok 15 - t.after throws --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'hookFailed' error: 'after' code: 'ERR_TEST_FAILURE' @@ -520,7 +520,7 @@ not ok 16 - t.after throws - no subtests --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'hookFailed' error: 'after' code: 'ERR_TEST_FAILURE' @@ -541,7 +541,7 @@ not ok 16 - t.after throws - no subtests --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' failureType: 'hookFailed' error: 'beforeEach' code: 'ERR_TEST_FAILURE' @@ -562,7 +562,7 @@ not ok 16 - t.after throws - no subtests --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' failureType: 'hookFailed' error: 'beforeEach' code: 'ERR_TEST_FAILURE' @@ -583,7 +583,7 @@ not ok 17 - t.beforeEach throws --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'subtestsFailed' error: '2 subtests failed' code: 'ERR_TEST_FAILURE' @@ -594,7 +594,7 @@ not ok 17 - t.beforeEach throws --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' failureType: 'hookFailed' error: 'afterEach' code: 'ERR_TEST_FAILURE' @@ -615,7 +615,7 @@ not ok 17 - t.beforeEach throws --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' failureType: 'hookFailed' error: 'afterEach' code: 'ERR_TEST_FAILURE' @@ -636,7 +636,7 @@ not ok 18 - t.afterEach throws --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'subtestsFailed' error: '2 subtests failed' code: 'ERR_TEST_FAILURE' @@ -647,7 +647,7 @@ not ok 18 - t.afterEach throws --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' failureType: 'testCodeFailure' error: 'test' code: 'ERR_TEST_FAILURE' @@ -673,7 +673,7 @@ not ok 19 - afterEach when test fails --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'subtestsFailed' error: '1 subtest failed' code: 'ERR_TEST_FAILURE' @@ -697,7 +697,7 @@ ok 20 - afterEach context when test passes --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' failureType: 'testCodeFailure' error: 'test' code: 'ERR_TEST_FAILURE' @@ -712,7 +712,7 @@ not ok 21 - afterEach context when test fails --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'subtestsFailed' error: '1 subtest failed' code: 'ERR_TEST_FAILURE' @@ -723,7 +723,7 @@ not ok 21 - afterEach context when test fails --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' failureType: 'testCodeFailure' error: 'test' code: 'ERR_TEST_FAILURE' @@ -743,7 +743,7 @@ not ok 21 - afterEach context when test fails --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):11' failureType: 'hookFailed' error: 'afterEach' code: 'ERR_TEST_FAILURE' @@ -764,7 +764,7 @@ not ok 22 - afterEach throws and test fails --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'subtestsFailed' error: '2 subtests failed' code: 'ERR_TEST_FAILURE' @@ -774,7 +774,7 @@ not ok 23 - t.after() is called if test body throws --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'testCodeFailure' error: 'bye' code: 'ERR_TEST_FAILURE' @@ -791,7 +791,7 @@ not ok 23 - t.after() is called if test body throws --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):3' failureType: 'cancelledByParent' error: 'test did not finish before its parent and was cancelled' code: 'ERR_TEST_FAILURE' @@ -801,7 +801,7 @@ not ok 24 - run after when before throws --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' + location: '/test/fixtures/test-runner/output/hooks.js:(LINE):1' failureType: 'hookFailed' error: 'before' code: 'ERR_TEST_FAILURE' diff --git a/test/fixtures/test-runner/output/output.snapshot b/test/fixtures/test-runner/output/output.snapshot index 36f487d9311344..b99744c9f12a2a 100644 --- a/test/fixtures/test-runner/output/output.snapshot +++ b/test/fixtures/test-runner/output/output.snapshot @@ -52,7 +52,7 @@ not ok 9 - sync fail todo # TODO --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'thrown from sync fail todo' code: 'ERR_TEST_FAILURE' @@ -70,7 +70,7 @@ not ok 10 - sync fail todo with message # TODO this is a failing todo --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'thrown from sync fail todo with message' code: 'ERR_TEST_FAILURE' @@ -107,7 +107,7 @@ not ok 14 - sync throw fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'thrown from sync throw fail' code: 'ERR_TEST_FAILURE' @@ -137,7 +137,7 @@ not ok 17 - async throw fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'thrown from async throw fail' code: 'ERR_TEST_FAILURE' @@ -155,7 +155,7 @@ not ok 18 - async skip fail # SKIP --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'thrown from async throw fail' code: 'ERR_TEST_FAILURE' @@ -173,7 +173,7 @@ not ok 19 - async assertion fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: |- Expected values to be strictly equal: @@ -205,7 +205,7 @@ not ok 21 - reject fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'rejected from reject fail' code: 'ERR_TEST_FAILURE' @@ -254,7 +254,7 @@ ok 26 - immediate resolve pass --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):11' + location: '/test/fixtures/test-runner/output/output.js:(LINE):11' failureType: 'testCodeFailure' error: 'thrown from subtest sync throw fail' code: 'ERR_TEST_FAILURE' @@ -276,7 +276,7 @@ not ok 27 - subtest sync throw fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'subtestsFailed' error: '1 subtest failed' code: 'ERR_TEST_FAILURE' @@ -286,7 +286,7 @@ not ok 28 - sync throw non-error fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'Symbol(thrown symbol from sync throw non-error fail)' code: 'ERR_TEST_FAILURE' @@ -371,7 +371,7 @@ not ok 34 - sync skip option is false fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'this should be executed' code: 'ERR_TEST_FAILURE' @@ -443,7 +443,7 @@ not ok 44 - callback fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'callback failure' code: 'ERR_TEST_FAILURE' @@ -474,7 +474,7 @@ not ok 48 - callback also returns a Promise --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'callbackAndPromisePresent' error: 'passed a callback but also returned a Promise' code: 'ERR_TEST_FAILURE' @@ -484,7 +484,7 @@ not ok 49 - callback throw --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'thrown from callback throw' code: 'ERR_TEST_FAILURE' @@ -502,7 +502,7 @@ not ok 50 - callback called twice --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'multipleCallbackInvocations' error: 'callback invoked multiple times' code: 'ERR_TEST_FAILURE' @@ -521,7 +521,7 @@ not ok 52 - callback called twice in future tick --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'uncaughtException' error: 'callback invoked multiple times' code: 'ERR_TEST_FAILURE' @@ -533,7 +533,7 @@ not ok 53 - callback async throw --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'uncaughtException' error: 'thrown from callback async throw' code: 'ERR_TEST_FAILURE' @@ -577,7 +577,7 @@ not ok 56 - custom inspect symbol fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'customized' code: 'ERR_TEST_FAILURE' @@ -587,7 +587,7 @@ not ok 57 - custom inspect symbol that throws fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: |- { @@ -602,7 +602,7 @@ not ok 57 - custom inspect symbol that throws fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):11' + location: '/test/fixtures/test-runner/output/output.js:(LINE):11' failureType: 'testCodeFailure' error: 'thrown from subtest sync throw fails at first' code: 'ERR_TEST_FAILURE' @@ -623,7 +623,7 @@ not ok 57 - custom inspect symbol that throws fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):11' + location: '/test/fixtures/test-runner/output/output.js:(LINE):11' failureType: 'testCodeFailure' error: 'thrown from subtest sync throw fails at second' code: 'ERR_TEST_FAILURE' @@ -642,7 +642,7 @@ not ok 58 - subtest sync throw fails --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'subtestsFailed' error: '2 subtests failed' code: 'ERR_TEST_FAILURE' @@ -652,7 +652,7 @@ not ok 59 - timed out async test --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testTimeoutFailure' error: 'test timed out after 5ms' code: 'ERR_TEST_FAILURE' @@ -662,7 +662,7 @@ not ok 60 - timed out callback test --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testTimeoutFailure' error: 'test timed out after 5ms' code: 'ERR_TEST_FAILURE' @@ -690,7 +690,7 @@ not ok 64 - rejected thenable --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'custom error' code: 'ERR_TEST_FAILURE' @@ -700,7 +700,7 @@ not ok 65 - unfinished test with uncaughtException --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'uncaughtException' error: 'foo' code: 'ERR_TEST_FAILURE' @@ -714,7 +714,7 @@ not ok 66 - unfinished test with unhandledRejection --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'unhandledRejection' error: 'bar' code: 'ERR_TEST_FAILURE' @@ -728,7 +728,7 @@ not ok 67 - assertion errors display actual and expected properly --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: |- Expected values to be loosely deep-equal: @@ -798,7 +798,7 @@ not ok 68 - invalid subtest fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):7' + location: '/test/fixtures/test-runner/output/output.js:(LINE):7' failureType: 'parentAlreadyFinished' error: 'test could not be started because its parent finished' code: 'ERR_TEST_FAILURE' diff --git a/test/fixtures/test-runner/output/output_cli.snapshot b/test/fixtures/test-runner/output/output_cli.snapshot index 0df9f723afa0b9..25392dafaa0574 100644 --- a/test/fixtures/test-runner/output/output_cli.snapshot +++ b/test/fixtures/test-runner/output/output_cli.snapshot @@ -52,7 +52,7 @@ not ok 9 - sync fail todo # TODO --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'thrown from sync fail todo' code: 'ERR_TEST_FAILURE' @@ -70,7 +70,7 @@ not ok 10 - sync fail todo with message # TODO this is a failing todo --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'thrown from sync fail todo with message' code: 'ERR_TEST_FAILURE' @@ -107,7 +107,7 @@ not ok 14 - sync throw fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'thrown from sync throw fail' code: 'ERR_TEST_FAILURE' @@ -137,7 +137,7 @@ not ok 17 - async throw fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'thrown from async throw fail' code: 'ERR_TEST_FAILURE' @@ -155,7 +155,7 @@ not ok 18 - async skip fail # SKIP --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'thrown from async throw fail' code: 'ERR_TEST_FAILURE' @@ -173,7 +173,7 @@ not ok 19 - async assertion fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: |- Expected values to be strictly equal: @@ -205,7 +205,7 @@ not ok 21 - reject fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'rejected from reject fail' code: 'ERR_TEST_FAILURE' @@ -254,7 +254,7 @@ ok 26 - immediate resolve pass --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):11' + location: '/test/fixtures/test-runner/output/output.js:(LINE):11' failureType: 'testCodeFailure' error: 'thrown from subtest sync throw fail' code: 'ERR_TEST_FAILURE' @@ -276,7 +276,7 @@ not ok 27 - subtest sync throw fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'subtestsFailed' error: '1 subtest failed' code: 'ERR_TEST_FAILURE' @@ -286,7 +286,7 @@ not ok 28 - sync throw non-error fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'Symbol(thrown symbol from sync throw non-error fail)' code: 'ERR_TEST_FAILURE' @@ -371,7 +371,7 @@ not ok 34 - sync skip option is false fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'this should be executed' code: 'ERR_TEST_FAILURE' @@ -443,7 +443,7 @@ not ok 44 - callback fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'callback failure' code: 'ERR_TEST_FAILURE' @@ -474,7 +474,7 @@ not ok 48 - callback also returns a Promise --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'callbackAndPromisePresent' error: 'passed a callback but also returned a Promise' code: 'ERR_TEST_FAILURE' @@ -484,7 +484,7 @@ not ok 49 - callback throw --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'thrown from callback throw' code: 'ERR_TEST_FAILURE' @@ -502,7 +502,7 @@ not ok 50 - callback called twice --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'multipleCallbackInvocations' error: 'callback invoked multiple times' code: 'ERR_TEST_FAILURE' @@ -521,7 +521,7 @@ not ok 52 - callback called twice in future tick --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'uncaughtException' error: 'callback invoked multiple times' code: 'ERR_TEST_FAILURE' @@ -533,7 +533,7 @@ not ok 53 - callback async throw --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'uncaughtException' error: 'thrown from callback async throw' code: 'ERR_TEST_FAILURE' @@ -585,7 +585,7 @@ not ok 56 - custom inspect symbol fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'customized' code: 'ERR_TEST_FAILURE' @@ -595,7 +595,7 @@ not ok 57 - custom inspect symbol that throws fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: |- { @@ -610,7 +610,7 @@ not ok 57 - custom inspect symbol that throws fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):11' + location: '/test/fixtures/test-runner/output/output.js:(LINE):11' failureType: 'testCodeFailure' error: 'thrown from subtest sync throw fails at first' code: 'ERR_TEST_FAILURE' @@ -631,7 +631,7 @@ not ok 57 - custom inspect symbol that throws fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):11' + location: '/test/fixtures/test-runner/output/output.js:(LINE):11' failureType: 'testCodeFailure' error: 'thrown from subtest sync throw fails at second' code: 'ERR_TEST_FAILURE' @@ -650,7 +650,7 @@ not ok 58 - subtest sync throw fails --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'subtestsFailed' error: '2 subtests failed' code: 'ERR_TEST_FAILURE' @@ -660,7 +660,7 @@ not ok 59 - timed out async test --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testTimeoutFailure' error: 'test timed out after 5ms' code: 'ERR_TEST_FAILURE' @@ -670,7 +670,7 @@ not ok 60 - timed out callback test --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testTimeoutFailure' error: 'test timed out after 5ms' code: 'ERR_TEST_FAILURE' @@ -698,7 +698,7 @@ not ok 64 - rejected thenable --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: 'custom error' code: 'ERR_TEST_FAILURE' @@ -708,7 +708,7 @@ not ok 65 - unfinished test with uncaughtException --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'uncaughtException' error: 'foo' code: 'ERR_TEST_FAILURE' @@ -722,7 +722,7 @@ not ok 66 - unfinished test with unhandledRejection --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'unhandledRejection' error: 'bar' code: 'ERR_TEST_FAILURE' @@ -736,7 +736,7 @@ not ok 67 - assertion errors display actual and expected properly --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):1' + location: '/test/fixtures/test-runner/output/output.js:(LINE):1' failureType: 'testCodeFailure' error: |- Expected values to be loosely deep-equal: @@ -806,7 +806,7 @@ not ok 68 - invalid subtest fail --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/output.js:(LINE):7' + location: '/test/fixtures/test-runner/output/output.js:(LINE):7' failureType: 'parentAlreadyFinished' error: 'test could not be started because its parent finished' code: 'ERR_TEST_FAILURE' diff --git a/test/fixtures/test-runner/output/source_mapped_locations.snapshot b/test/fixtures/test-runner/output/source_mapped_locations.snapshot index 4f4db620a44380..41ddcd622c4e62 100644 --- a/test/fixtures/test-runner/output/source_mapped_locations.snapshot +++ b/test/fixtures/test-runner/output/source_mapped_locations.snapshot @@ -4,7 +4,7 @@ not ok 1 - fails --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/source_mapped_locations.ts:5:1' + location: '/test/fixtures/test-runner/output/source_mapped_locations.ts:5:1' failureType: 'testCodeFailure' error: |- Expected values to be strictly equal: diff --git a/test/fixtures/test-runner/output/test-runner-plan-timeout.snapshot b/test/fixtures/test-runner/output/test-runner-plan-timeout.snapshot index 6b4f60e4210514..b704f0af39cf74 100644 --- a/test/fixtures/test-runner/output/test-runner-plan-timeout.snapshot +++ b/test/fixtures/test-runner/output/test-runner-plan-timeout.snapshot @@ -11,7 +11,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/test-runner-plan-timeout.js:(LINE):3' + location: '/test/fixtures/test-runner/output/test-runner-plan-timeout.js:(LINE):3' failureType: 'uncaughtException' error: |- The expression evaluated to a falsy value: @@ -33,7 +33,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/test-runner-plan-timeout.js:(LINE):3' + location: '/test/fixtures/test-runner/output/test-runner-plan-timeout.js:(LINE):3' failureType: 'testTimeoutFailure' error: 'plan timed out after 500ms with 0 assertions when expecting 2' code: 'ERR_TEST_FAILURE' @@ -49,7 +49,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/test-runner-plan-timeout.js:(LINE):3' + location: '/test/fixtures/test-runner/output/test-runner-plan-timeout.js:(LINE):3' failureType: 'uncaughtException' error: |- The expression evaluated to a falsy value: @@ -71,7 +71,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/test-runner-plan-timeout.js:(LINE):3' + location: '/test/fixtures/test-runner/output/test-runner-plan-timeout.js:(LINE):3' failureType: 'testCodeFailure' error: 'plan expected 1 assertions but received 0' code: 'ERR_TEST_FAILURE' @@ -81,7 +81,7 @@ not ok 1 - planning with wait --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/test-runner-plan-timeout.js:(LINE):1' + location: '/test/fixtures/test-runner/output/test-runner-plan-timeout.js:(LINE):1' failureType: 'subtestsFailed' error: '4 subtests failed' code: 'ERR_TEST_FAILURE' diff --git a/test/fixtures/test-runner/output/test-runner-plan.snapshot b/test/fixtures/test-runner/output/test-runner-plan.snapshot index 0300384d31ec91..8698312a519d81 100644 --- a/test/fixtures/test-runner/output/test-runner-plan.snapshot +++ b/test/fixtures/test-runner/output/test-runner-plan.snapshot @@ -35,7 +35,7 @@ not ok 3 - less assertions than planned --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/test-runner-plan.js:(LINE):1' + location: '/test/fixtures/test-runner/output/test-runner-plan.js:(LINE):1' failureType: 'testCodeFailure' error: 'plan expected 1 assertions but received 0' code: 'ERR_TEST_FAILURE' @@ -45,7 +45,7 @@ not ok 4 - more assertions than planned --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/test-runner-plan.js:(LINE):1' + location: '/test/fixtures/test-runner/output/test-runner-plan.js:(LINE):1' failureType: 'testCodeFailure' error: 'plan expected 1 assertions but received 2' code: 'ERR_TEST_FAILURE' @@ -94,7 +94,7 @@ not ok 8 - failing planning by options --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/test-runner-plan.js:(LINE):1' + location: '/test/fixtures/test-runner/output/test-runner-plan.js:(LINE):1' failureType: 'testCodeFailure' error: 'plan expected 1 assertions but received 0' code: 'ERR_TEST_FAILURE' @@ -123,7 +123,7 @@ not ok 11 - failing more assertions than planned --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/test-runner-plan.js:(LINE):1' + location: '/test/fixtures/test-runner/output/test-runner-plan.js:(LINE):1' failureType: 'testCodeFailure' error: 'plan expected 2 assertions but received 3' code: 'ERR_TEST_FAILURE' diff --git a/test/fixtures/test-runner/output/test-timeout-flag.snapshot b/test/fixtures/test-runner/output/test-timeout-flag.snapshot index 1c5426891744cd..2c45befde37c5f 100644 --- a/test/fixtures/test-runner/output/test-timeout-flag.snapshot +++ b/test/fixtures/test-runner/output/test-timeout-flag.snapshot @@ -5,7 +5,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/test-timeout-flag.js:(LINE):3' + location: '/test/fixtures/test-runner/output/test-timeout-flag.js:(LINE):3' failureType: 'testTimeoutFailure' error: 'test timed out after 100ms' code: 'ERR_TEST_FAILURE' @@ -17,7 +17,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/test-timeout-flag.js:(LINE):3' + location: '/test/fixtures/test-runner/output/test-timeout-flag.js:(LINE):3' failureType: 'testTimeoutFailure' error: 'test timed out after 5ms' code: 'ERR_TEST_FAILURE' @@ -39,7 +39,7 @@ not ok 1 - --test-timeout is set to 100ms --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/test-timeout-flag.js:(LINE):1' + location: '/test/fixtures/test-runner/output/test-timeout-flag.js:(LINE):1' failureType: 'subtestsFailed' error: '2 subtests failed' code: 'ERR_TEST_FAILURE' @@ -50,7 +50,7 @@ not ok 1 - --test-timeout is set to 100ms --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/test-timeout-flag.js:(LINE):3' + location: '/test/fixtures/test-runner/output/test-timeout-flag.js:(LINE):3' failureType: 'cancelledByParent' error: 'test did not finish before its parent and was cancelled' code: 'ERR_TEST_FAILURE' @@ -60,7 +60,7 @@ not ok 2 - should inherit timeout options to children --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/test-timeout-flag.js:(LINE):1' + location: '/test/fixtures/test-runner/output/test-timeout-flag.js:(LINE):1' failureType: 'testTimeoutFailure' error: 'test timed out after 1ms' code: 'ERR_TEST_FAILURE' diff --git a/test/fixtures/test-runner/output/timeout_in_before_each_should_not_affect_further_tests.snapshot b/test/fixtures/test-runner/output/timeout_in_before_each_should_not_affect_further_tests.snapshot index 76dd789a3a008c..a22daa3174ce0f 100644 --- a/test/fixtures/test-runner/output/timeout_in_before_each_should_not_affect_further_tests.snapshot +++ b/test/fixtures/test-runner/output/timeout_in_before_each_should_not_affect_further_tests.snapshot @@ -10,7 +10,7 @@ gonna timeout --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/timeout_in_before_each_should_not_affect_further_tests.js:(LINE):3' + location: '/test/fixtures/test-runner/output/timeout_in_before_each_should_not_affect_further_tests.js:(LINE):3' failureType: 'hookFailed' error: 'failed running beforeEach hook' code: 'ERR_TEST_FAILURE' @@ -28,7 +28,7 @@ not ok 1 - before each timeout --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/timeout_in_before_each_should_not_affect_further_tests.js:(LINE):1' + location: '/test/fixtures/test-runner/output/timeout_in_before_each_should_not_affect_further_tests.js:(LINE):1' failureType: 'subtestsFailed' error: '1 subtest failed' code: 'ERR_TEST_FAILURE' @@ -41,7 +41,7 @@ not gonna timeout --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/timeout_in_before_each_should_not_affect_further_tests.js:(LINE):3' + location: '/test/fixtures/test-runner/output/timeout_in_before_each_should_not_affect_further_tests.js:(LINE):3' failureType: 'hookFailed' error: 'failed running afterEach hook' code: 'ERR_TEST_FAILURE' @@ -59,7 +59,7 @@ not ok 2 - after each timeout --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/timeout_in_before_each_should_not_affect_further_tests.js:(LINE):1' + location: '/test/fixtures/test-runner/output/timeout_in_before_each_should_not_affect_further_tests.js:(LINE):1' failureType: 'subtestsFailed' error: '1 subtest failed' code: 'ERR_TEST_FAILURE' diff --git a/test/fixtures/test-runner/output/unfinished-suite-async-error.snapshot b/test/fixtures/test-runner/output/unfinished-suite-async-error.snapshot index 1d4df7b3d0514a..59c04c818c7458 100644 --- a/test/fixtures/test-runner/output/unfinished-suite-async-error.snapshot +++ b/test/fixtures/test-runner/output/unfinished-suite-async-error.snapshot @@ -5,7 +5,7 @@ TAP version 13 --- duration_ms: * type: 'test' - location: '/test/fixtures/test-runner/output/unfinished-suite-async-error.js:(LINE):3' + location: '/test/fixtures/test-runner/output/unfinished-suite-async-error.js:(LINE):3' failureType: 'uncaughtException' error: 'callback test does not complete' code: 'ERR_TEST_FAILURE' @@ -24,7 +24,7 @@ not ok 1 - unfinished suite with asynchronous error --- duration_ms: * type: 'suite' - location: '/test/fixtures/test-runner/output/unfinished-suite-async-error.js:(LINE):1' + location: '/test/fixtures/test-runner/output/unfinished-suite-async-error.js:(LINE):1' failureType: 'subtestsFailed' error: '1 subtest failed' code: 'ERR_TEST_FAILURE' diff --git a/test/fixtures/v8/v8_warning.snapshot b/test/fixtures/v8/v8_warning.snapshot index 22fa21644e0830..5419601c1d27d3 100644 --- a/test/fixtures/v8/v8_warning.snapshot +++ b/test/fixtures/v8/v8_warning.snapshot @@ -1,2 +1,2 @@ -(node:) V8: /test/fixtures/v8/v8_warning.js:* Invalid asm.js: Invalid return type -(Use `node --trace-warnings ...` to show where the warning was created) +(node:) V8: /test/fixtures/v8/v8_warning.js:* Invalid asm.js: Invalid return type +(Use ` --trace-warnings ...` to show where the warning was created) diff --git a/test/fixtures/vm/vm_display_runtime_error.snapshot b/test/fixtures/vm/vm_display_runtime_error.snapshot index a5c203536ca253..a20375f224c625 100644 --- a/test/fixtures/vm/vm_display_runtime_error.snapshot +++ b/test/fixtures/vm/vm_display_runtime_error.snapshot @@ -7,7 +7,7 @@ Error: boo! at test.vm:1:7 at Script.runInThisContext (node:vm:*) at Object.runInThisContext (node:vm:*) - at Object. (/test/fixtures/vm/vm_display_runtime_error.js:31:6) + at Object. (/test/fixtures/vm/vm_display_runtime_error.js:31:6) test.vm:1 throw new Error("spooky!") ^ @@ -16,6 +16,6 @@ Error: spooky! at test.vm:1:7 at Script.runInThisContext (node:vm:*) at Object.runInThisContext (node:vm:*) - at Object. (/test/fixtures/vm/vm_display_runtime_error.js:36:4) + at Object. (/test/fixtures/vm/vm_display_runtime_error.js:36:4) Node.js diff --git a/test/fixtures/vm/vm_display_syntax_error.snapshot b/test/fixtures/vm/vm_display_syntax_error.snapshot index 0fa4058bec4e82..b374091a1e67b3 100644 --- a/test/fixtures/vm/vm_display_syntax_error.snapshot +++ b/test/fixtures/vm/vm_display_syntax_error.snapshot @@ -7,7 +7,7 @@ SyntaxError: Unexpected number at new Script (node:vm:*) at createScript (node:vm:*) at Object.runInThisContext (node:vm:*) - at Object. (/test/fixtures/vm/vm_display_syntax_error.js:31:6) + at Object. (/test/fixtures/vm/vm_display_syntax_error.js:31:6) test.vm:1 var 5; ^ @@ -16,6 +16,6 @@ SyntaxError: Unexpected number at new Script (node:vm:*) at createScript (node:vm:*) at Object.runInThisContext (node:vm:*) - at Object. (/test/fixtures/vm/vm_display_syntax_error.js:36:4) + at Object. (/test/fixtures/vm/vm_display_syntax_error.js:36:4) Node.js diff --git a/test/fixtures/vm/vm_dont_display_runtime_error.snapshot b/test/fixtures/vm/vm_dont_display_runtime_error.snapshot index 8e50fe27096e1b..fd64cf80c91004 100644 --- a/test/fixtures/vm/vm_dont_display_runtime_error.snapshot +++ b/test/fixtures/vm/vm_dont_display_runtime_error.snapshot @@ -8,6 +8,6 @@ Error: boo! at test.vm:1:7 at Script.runInThisContext (node:vm:*) at Object.runInThisContext (node:vm:*) - at Object. (/test/fixtures/vm/vm_dont_display_runtime_error.js:41:4) + at Object. (/test/fixtures/vm/vm_dont_display_runtime_error.js:41:4) Node.js diff --git a/test/fixtures/vm/vm_dont_display_syntax_error.snapshot b/test/fixtures/vm/vm_dont_display_syntax_error.snapshot index 673068e35de446..26790583539470 100644 --- a/test/fixtures/vm/vm_dont_display_syntax_error.snapshot +++ b/test/fixtures/vm/vm_dont_display_syntax_error.snapshot @@ -8,6 +8,6 @@ SyntaxError: Unexpected number at new Script (node:vm:*) at createScript (node:vm:*) at Object.runInThisContext (node:vm:*) - at Object. (/test/fixtures/vm/vm_dont_display_syntax_error.js:41:4) + at Object. (/test/fixtures/vm/vm_dont_display_syntax_error.js:41:4) Node.js diff --git a/test/parallel/test-node-output-sourcemaps.mjs b/test/parallel/test-node-output-sourcemaps.mjs index 5c844219d7fa8b..2341d66e628746 100644 --- a/test/parallel/test-node-output-sourcemaps.mjs +++ b/test/parallel/test-node-output-sourcemaps.mjs @@ -7,7 +7,7 @@ describe('sourcemaps output', { concurrency: !process.env.TEST_PARALLEL }, () => const defaultTransform = snapshot .transform( snapshot.basicTransform, - snapshot.transformProjectRoot('*'), + snapshot.transformProjectRoot(), snapshot.replaceInternalStackTrace, );