test: make snapshot path matching CWD-agnostic #81091
Annotations
20 errors and 2 notices
|
test-linux (ubuntu-24.04-arm):
test/test-runner/test-output-eval-tap.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'TAP version 13\n' +
'# Subtest: passes\n' +
'ok 1 - passes\n' +
' ---\n' +
' duration_ms: *\n' +
...
' stack: |-\n' +
+ ' TestContext.eval (eval at <anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/eval_tap.js:3:1), <anonymous>:6:11)\n' +
- ' TestContext.eval (eval at <anonymous> (<project-root>/test/fixtures/test-runner/output/eval_tap.js:3:1), <anonymous>:6:11)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'1..2\n' +
'# tests 2\n' +
'# suites 0\n' +
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:182:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:217:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-eval-tap.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'TAP version 13\n' +
'# Subtest: passes\n' +
'ok 1 - passes\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: fails\n' +
'not ok 2 - fails\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'fail'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.eval (eval at <anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/eval_tap.js:3:1), <anonymous>:6:11)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'1..2\n' +
'# tests 2\n' +
'# suites 0\n' +
'# pass 1\n' +
'# fail 1\n' +
'# cancelled 0\n' +
'# skipped 0\n' +
'# todo 0\n' +
'# duration_ms *\n',
expected: 'TAP version 13\n' +
'# Subtest: passes\n' +
'ok 1 - passes\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: fails\n' +
'not ok 2 - fails\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'fail'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.eval (eval at <anonymous> (<project-root>/test/fixtures/test-runner/output/eval_tap.js:3:1), <anonymous>:6:11)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'1..2\n' +
'# tests 2\n' +
'# suites 0\n' +
'# pass 1\n' +
'# fail 1\n' +
'# cancelled 0\n' +
'# skipped 0\n' +
'# todo 0\n' +
'# duration_ms *\n',
operator: 'strictEqual',
diff: 'simple'
}
Node.js v26.0.0-pre
Command: out/Release/node /home/runner/work/node/node/node/test/test-runner/test-output-eval-tap.mjs
|
|
test-linux (ubuntu-24.04-arm):
test/test-runner/test-output-eval-dot.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
'.X\n' +
'\n' +
'Failed tests:\n' +
'\n' +
'✖ fails (*ms)\n' +
' Error: fail\n' +
+ ' at TestContext.eval (eval at <anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/eval_dot.js:3:1), <anonymous>:6:11)\n' +
- ' at TestContext.eval (eval at <anonymous> (<project-root>/test/fixtures/test-runner/output/eval_dot.js:3:1), <anonymous>:6:11)\n' +
' at <node-internal-frames>\n'
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:182:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:217:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-eval-dot.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '.X\n' +
'\n' +
'Failed tests:\n' +
'\n' +
'✖ fails (*ms)\n' +
' Error: fail\n' +
' at TestContext.eval (eval at <anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/eval_dot.js:3:1), <anonymous>:6:11)\n' +
' at <node-internal-frames>\n',
expected: '.X\n' +
'\n' +
'Failed tests:\n' +
'\n' +
'✖ fails (*ms)\n' +
' Error: fail\n' +
' at TestContext.eval (eval at <anonymous> (<project-root>/test/fixtures/test-runner/output/eval_dot.js:3:1), <anonymous>:6:11)\n' +
' at <node-internal-frames>\n',
operator: 'strictEqual',
diff: 'simple'
}
Node.js v26.0.0-pre
Command: out/Release/node /home/runner/work/node/node/node/test/test-runner/test-output-eval-dot.mjs
|
|
test-linux (ubuntu-24.04-arm):
test/test-runner/test-output-eval-spec.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'✔ passes (*ms)\n' +
'✖ fails (*ms)\n' +
'ℹ tests 2\n' +
'ℹ suites 0\n' +
'ℹ pass 1\n' +
...
' Error: fail\n' +
+ ' at TestContext.eval (eval at <anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/eval_spec.js:3:1), <anonymous>:6:11)\n' +
- ' at TestContext.eval (eval at <anonymous> (<project-root>/test/fixtures/test-runner/output/eval_spec.js:3:1), <anonymous>:6:11)\n' +
' at <node-internal-frames>\n'
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:182:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:217:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-eval-spec.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '✔ passes (*ms)\n' +
'✖ fails (*ms)\n' +
'ℹ tests 2\n' +
'ℹ suites 0\n' +
'ℹ pass 1\n' +
'ℹ fail 1\n' +
'ℹ cancelled 0\n' +
'ℹ skipped 0\n' +
'ℹ todo 0\n' +
'ℹ duration_ms *\n' +
'\n' +
'✖ failing tests:\n' +
'\n' +
'✖ fails (*ms)\n' +
' Error: fail\n' +
' at TestContext.eval (eval at <anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/eval_spec.js:3:1), <anonymous>:6:11)\n' +
' at <node-internal-frames>\n',
expected: '✔ passes (*ms)\n' +
'✖ fails (*ms)\n' +
'ℹ tests 2\n' +
'ℹ suites 0\n' +
'ℹ pass 1\n' +
'ℹ fail 1\n' +
'ℹ cancelled 0\n' +
'ℹ skipped 0\n' +
'ℹ todo 0\n' +
'ℹ duration_ms *\n' +
'\n' +
'✖ failing tests:\n' +
'\n' +
'✖ fails (*ms)\n' +
' Error: fail\n' +
' at TestContext.eval (eval at <anonymous> (<project-root>/test/fixtures/test-runner/output/eval_spec.js:3:1), <anonymous>:6:11)\n' +
' at <node-internal-frames>\n',
operator: 'strictEqual',
diff: 'simple'
}
Node.js v26.0.0-pre
Command: out/Release/node /home/runner/work/node/node/node/test/test-runner/test-output-eval-spec.mjs
|
|
test-linux (ubuntu-24.04-arm):
test/test-runner/test-output-dot-reporter.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'........XX...X..XXX.\n' +
'X.....XXX...........\n' +
'.X.........X...XXX.X\n' +
'X.....XXXXXXX...XXXX\n' +
'X\n' +
...
' Error: thrown from sync fail todo\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/output.js:42:9)\n' +
- ' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:42:9)\n' +
' at <node-internal-frames>\n' +
'⚠ sync fail todo with message (*ms) # this is a failing todo\n' +
' Error: thrown from sync fail todo with message\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/output.js:47:9)\n' +
- ' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:47:9)\n' +
' at <node-internal-frames>\n' +
'✖ sync throw fail (*ms)\n' +
' Error: thrown from sync throw fail\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/output.js:63:9)\n' +
- ' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:63:9)\n' +
' at <node-internal-frames>\n' +
'✖ async throw fail (*ms)\n' +
' Error: thrown from async throw fail\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/output.js:75:9)\n' +
- ' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:75:9)\n' +
' at <node-internal-frames>\n' +
'﹣ async skip fail (*ms) # SKIP\n' +
' Error: thrown from async throw fail\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/output.js:80:9)\n' +
- ' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:80:9)\n' +
' at <node-internal-frames>\n' +
'✖ async assertion fail (*ms)\n' +
' AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n' +
'\n' +
' true !== false\n' +
'\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/output.js:85:10)\n' +
- ' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:85:10)\n' +
' at <node-internal-frames>\n' +
' at <node-internal-frames> {\n' +
' generatedMessage: true,\n' +
" code: 'ERR_ASSERTION',\n" +
' actual: true,\n' +
...
' Error: rejected from reject fail\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/output.js:93:25)\n' +
- ' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:93:25)\n' +
' at <node-internal-frames>\n' +
'✖ +sync throw fail (*ms)\n' +
' Error: thrown from subtest sync throw fail\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/output.js:127:11)\n' +
- ' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:127:11)\n' +
' at <node-internal-frames>\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/output.js:125:11)\n' +
- ' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:125:11)\n' +
' at <node-internal-frames>\n' +
'✖ subtest sync throw fail (*ms)\n' +
" '1 subtest failed'\n" +
'✖ sync throw non-error fail (*ms)\n' +
' Symbol(thrown symbol from sync throw non-error fail)\n' +
'✖ sync skip option is false fail (*ms)\n' +
' Error: this should be executed\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/tes
|
|
test-linux (ubuntu-24.04-arm):
test/test-runner/test-output-describe-it.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'TAP version 13\n' +
'# Subtest: sync expect fail (method)\n' +
'ok 1 - sync expect fail (method) # EXPECTED FAILURE\n' +
' ---\n' +
' duration_ms: *\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:30:4'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/describe_it.js:30:4'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'should not count as a failure'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
+ ' TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:31:9)\n' +
- ' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/describe_it.js:31:9)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: sync todo with expect fail\n' +
'ok 8 - sync todo with expect fail # TODO\n' +
' ---\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:38:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/describe_it.js:38:1'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'should not count as a failure'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
+ ' TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:39:9)\n' +
- ' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/describe_it.js:39:9)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: sync skip pass\n' +
'ok 10 - sync skip pass # SKIP\n' +
' ---\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:55:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/describe_it.js:55:1'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'thrown from sync throw fail'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
+ ' TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:56:9)\n' +
- ' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/describe_it.js:56:9)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: async skip pass\n' +
'ok 15 - async skip pass # SKIP\n' +
' ---\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:68:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/describe_it.js:68:1'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'thrown from async throw fail'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
+ ' TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:69:9)\n' +
- ' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/describe_it.js:69:9)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: async skip fail\n' +
'not ok 19 - async skip fail # SKIP\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:72:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/describe_it.js:72:1'\n" +
" failureType: 'callbackAndPromisePresent'\n" +
" error: 'passed a callback but also returned a Promise'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
'# Subtest: async assertion fail\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:77:1'\n" +
- " location: '<project-root>/test
|
|
test-linux (ubuntu-24.04-arm):
test/test-runner/test-output-default-output.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'[32m✔ should pass [90m(*ms)[39m[39m\n' +
'[31m✖ should fail [90m(*ms)[39m[39m\n' +
'[90m﹣ should skip [90m(*ms)[39m # SKIP[39m\n' +
'▶ parent\n' +
' [31m✖ should fail [90m(*ms)[39m[39m\n' +
...
' Error: fail\n' +
+ ' at TestContext.<anonymous> [90m(/home/runner/work/node/node/node/[39mtest/fixtures/test-runner/output/default_output.js:10:35[90m)[39m\n' +
- ' at TestContext.<anonymous> [90m(<project-root>/[39mtest/fixtures/test-runner/output/default_output.js:10:35[90m)[39m\n' +
' [90m at <node-internal-frames>[39m\n' +
'\n' +
'test at test/fixtures/test-runner/output/default_output.js:13:5\n' +
'[31m✖ should fail [90m(*ms)[39m[39m\n' +
' Error: fail\n' +
+ ' at TestContext.<anonymous> [90m(/home/runner/work/node/node/node/[39mtest/fixtures/test-runner/output/default_output.js:13:39[90m)[39m\n' +
- ' at TestContext.<anonymous> [90m(<project-root>/[39mtest/fixtures/test-runner/output/default_output.js:13:39[90m)[39m\n' +
' [90m at <node-internal-frames>[39m\n' +
+ ' at TestContext.<anonymous> [90m(/home/runner/work/node/node/node/[39mtest/fixtures/test-runner/output/default_output.js:13:5[90m)[39m\n' +
- ' at TestContext.<anonymous> [90m(<project-root>/[39mtest/fixtures/test-runner/output/default_output.js:13:5[90m)[39m\n' +
' [90m at <node-internal-frames>[39m\n'
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:182:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:217:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-default-output.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '[32m✔ should pass [90m(*ms)[39m[39m\n' +
'[31m✖ should fail [90m(*ms)[39m[39m\n' +
'[90m﹣ should skip [90m(*ms)[39m # SKIP[39m\n' +
'▶ parent\n' +
' [31m✖ should fail [90m(*ms)[39m[39m\n' +
' [32m✔ should pass but parent fail [90m(*ms)[39m[39m\n' +
'[31m✖ parent [90m(*ms)[39m[39m\n' +
'[34mℹ tests 6[39m\n' +
'[34mℹ suites 0[39m\n' +
'[34mℹ pass 2[39m\n' +
'[34mℹ fail 3[39m\n' +
'[34mℹ cancelled 0[39m\n' +
'[34mℹ skipped 1[39m\n' +
'[34mℹ todo 0[39m\n' +
'[34mℹ duration_ms *[39m\n' +
'\n' +
'[31m✖ failing tests:[39m\n' +
'\n' +
'test at test/fixtures/test-runner/output/default_output.js:10:1\n' +
'[31m✖ should fail [90m(*ms)[39m[39m\n' +
' Error: fail\n' +
' at TestContext.<anonymous> [90m(/home/runner/work/node/node/node/[39mtest/fixtures/test-runner/output/default_output.js:10:35[90m)[39m\n' +
' [90m at <node-internal-frames>[39m\n' +
'\n' +
'test at test/fixtures/test-runner/output/default_output.js:13:5\n' +
'[31m✖ should fail [90m(*ms)[39m[39m\n' +
' Error: fail\n' +
' at TestContext.<anonymous> [90m(/home/runner/work/node/node/node/[39mtest/fixtures/test-runner/output/default_output.js:13:39[90m)[39m\n' +
' [90m at <node-internal-frames>[39m\n' +
' at TestContext.<anonymous> [90m(/home/runner/work/node/node/node/[39mtest/fixtures/test-runner/output/default_output.js:13:5[90m)[39m\n' +
' [90m at <node-internal-frames>[39m\n',
expected: '[32m✔ should pass [90m(*ms)[39m[39m\n' +
'[31m✖ should fail [90m(*ms)[39m[39m\n' +
'[90m﹣ should skip [90m(*ms)[39m # SKIP[39m\n' +
'▶ parent\n' +
' [31m✖ should fail [90m(*ms)[39m[39m\n' +
' [32m✔ should pass but parent fail [90m(*ms)[39m[39m\n' +
'[31m✖ parent [90m(*ms)[39m[39m\n' +
'[34mℹ tests 6[39m\n' +
'[34mℹ suites 0[39m\n' +
'[34mℹ pass 2[39m\n' +
'[34mℹ fail 3[39m\n' +
'[34mℹ cancelled 0[39m\n' +
'[34mℹ skipped 1[39m\n' +
'[34mℹ todo 0[39m\n' +
'[34mℹ duration_ms *[39m\n' +
'\
|
|
test-linux (ubuntu-24.04-arm):
test/test-runner/test-output-abort-suite.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'TAP version 13\n' +
'# Subtest: describe timeout signal\n' +
' # Subtest: ok 1\n' +
' ok 1 - ok 1\n' +
' ---\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_suite.js:10:3'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_suite.js:10:3'\n" +
" failureType: 'cancelledByParent'\n" +
" error: 'test did not finish before its parent and was cancelled'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
' # Subtest: not ok 2\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_suite.js:11:3'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_suite.js:11:3'\n" +
" failureType: 'cancelledByParent'\n" +
" error: 'test did not finish before its parent and was cancelled'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
' # Subtest: not ok 3\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_suite.js:12:3'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_suite.js:12:3'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_suite.js:13:3'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_suite.js:13:3'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_suite.js:14:3'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_suite.js:14:3'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
...
" type: 'suite'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_suite.js:5:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_suite.js:5:1'\n" +
" failureType: 'testAborted'\n" +
" error: 'The operation was aborted due to timeout'\n" +
' code: 23\n' +
" name: 'TimeoutError'\n" +
' stack: |-\n' +
...
" type: 'suite'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_suite.js:19:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_suite.js:19:1'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' <node-internal-frames>\n' +
+ ' Object.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_suite.js:19:57)\n' +
- ' Object.<anonymous> (<project-root>/test/fixtures/test-runner/output/abort_suite.js:19:57)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'1..2\n' +
'# tests 9\n' +
'# suites 2\n' +
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:182:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:217:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-abort-suite.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'TAP version 13\n
|
|
test-linux (ubuntu-24.04-arm):
test/test-runner/test-output-abort.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'TAP version 13\n' +
'# Subtest: promise timeout signal\n' +
' # Subtest: ok 1\n' +
' ok 1 - ok 1\n' +
' ---\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort.js:11:7'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:11:7'\n" +
" failureType: 'cancelledByParent'\n" +
" error: 'test did not finish before its parent and was cancelled'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
' # Subtest: not ok 2\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort.js:12:7'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:12:7'\n" +
" failureType: 'cancelledByParent'\n" +
" error: 'test did not finish before its parent and was cancelled'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
' # Subtest: not ok 3\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort.js:13:7'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:13:7'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort.js:14:7'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:14:7'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort.js:15:7'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:15:7'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort.js:5:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:5:1'\n" +
" failureType: 'testAborted'\n" +
" error: 'The operation was aborted due to timeout'\n" +
' code: 23\n' +
" name: 'TimeoutError'\n" +
' stack: |-\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort.js:21:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:21:1'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' <node-internal-frames>\n' +
+ ' Object.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort.js:21:52)\n' +
- ' Object.<anonymous> (<project-root>/test/fixtures/test-runner/output/abort.js:21:52)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: callback timeout signal\n' +
' # Subtest: ok 1\n' +
' ok 1 - ok 1\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort.js:30:5'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:30:5'\n" +
" failureType: 'cancelledByParent'\n" +
" error: 'test did not finish before its parent and was cancelled'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
'
|
|
test-linux (ubuntu-24.04-arm):
test/test-runner/test-output-abort-hooks.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'before\n' +
'2.1\n' +
'2.2\n' +
'after\n' +
'beforeEach\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_hooks.js:11:3'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_hooks.js:11:3'\n" +
" failureType: 'cancelledByParent'\n" +
" error: 'test did not finish before its parent and was cancelled'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
' # Subtest: test 2\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_hooks.js:14:3'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_hooks.js:14:3'\n" +
" failureType: 'cancelledByParent'\n" +
" error: 'test did not finish before its parent and was cancelled'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
' 1..2\n' +
...
" type: 'suite'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_hooks.js:4:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_hooks.js:4:1'\n" +
" failureType: 'hookFailed'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' <node-internal-frames>\n' +
+ ' before.signal (/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_hooks.js:8:8)\n' +
- ' before.signal (<project-root>/test/fixtures/test-runner/output/abort_hooks.js:8:8)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: 2 after describe\n' +
' # Subtest: test 1\n' +
' ok 1 - test 1\n' +
...
" type: 'suite'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_hooks.js:19:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_hooks.js:19:1'\n" +
" failureType: 'hookFailed'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' <node-internal-frames>\n' +
+ ' after.signal (/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_hooks.js:23:8)\n' +
- ' after.signal (<project-root>/test/fixtures/test-runner/output/abort_hooks.js:23:8)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: 3 beforeEach describe\n' +
' # Subtest: test 1\n' +
' not ok 1 - test 1\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_hooks.js:41:3'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_hooks.js:41:3'\n" +
" failureType: 'hookFailed'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' <node-internal-frames>\n' +
+ ' beforeEach.signal (/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_hooks.js:38:8)\n' +
- ' beforeEach.signal (<project-root>/test/fixtures/test-runner/output/abort_hooks.js:38:8)\n' +
' <node-internal-frames>\n' +
' ...\n' +
' # Subtest: test 2\n' +
' not ok 2 - test 2\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_hooks.js:44:3'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_hooks.js:44:3'\n" +
" failureType: 'hookFailed'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' <node-in
|
|
test-linux (ubuntu-24.04-arm):
test/test-runner/test-output-abort-runs-after-hook.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
'TAP version 13\n' +
'AFTER\n' +
'# Subtest: test that aborts\n' +
'not ok 1 - test that aborts\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort-runs-after-hook.js:4:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort-runs-after-hook.js:4:1'\n" +
" failureType: 'uncaughtException'\n" +
" error: 'boom'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
+ ' Immediate.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort-runs-after-hook.js:12:11)\n' +
- ' Immediate.<anonymous> (<project-root>/test/fixtures/test-runner/output/abort-runs-after-hook.js:12:11)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'1..1\n' +
'# tests 1\n' +
'# suites 0\n' +
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:182:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:217:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-abort-runs-after-hook.mjs:8:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'TAP version 13\n' +
'AFTER\n' +
'# Subtest: test that aborts\n' +
'not ok 1 - test that aborts\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort-runs-after-hook.js:4:1'\n" +
" failureType: 'uncaughtException'\n" +
" error: 'boom'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' Immediate.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort-runs-after-hook.js:12:11)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'1..1\n' +
'# tests 1\n' +
'# suites 0\n' +
'# pass 0\n' +
'# fail 1\n' +
'# cancelled 0\n' +
'# skipped 0\n' +
'# todo 0\n' +
'# duration_ms *\n',
expected: 'TAP version 13\n' +
'AFTER\n' +
'# Subtest: test that aborts\n' +
'not ok 1 - test that aborts\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" location: '<project-root>/test/fixtures/test-runner/output/abort-runs-after-hook.js:4:1'\n" +
" failureType: 'uncaughtException'\n" +
" error: 'boom'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' Immediate.<anonymous> (<project-root>/test/fixtures/test-runner/output/abort-runs-after-hook.js:12:11)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'1..1\n' +
'# tests 1\n' +
'# suites 0\n' +
'# pass 0\n' +
'# fail 1\n' +
'# cancelled 0\n' +
'# skipped 0\n' +
'# todo 0\n' +
'# duration_ms *\n',
operator: 'strictEqual',
diff: 'simple'
}
Node.js v26.0.0-pre
Command: out/Release/node /home/runner/work/node/node/node/test/test-runner/test-output-abort-runs-after-hook.mjs
|
|
test-linux (ubuntu-24.04):
test/test-runner/test-output-dot-reporter.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'........XX...X..XXX.\n' +
'X.....XXX...........\n' +
'.X.........X...XXX.X\n' +
'X.....XXXXXXX...XXXX\n' +
'X\n' +
...
' Error: thrown from sync fail todo\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/output.js:42:9)\n' +
- ' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:42:9)\n' +
' at <node-internal-frames>\n' +
'⚠ sync fail todo with message (*ms) # this is a failing todo\n' +
' Error: thrown from sync fail todo with message\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/output.js:47:9)\n' +
- ' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:47:9)\n' +
' at <node-internal-frames>\n' +
'✖ sync throw fail (*ms)\n' +
' Error: thrown from sync throw fail\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/output.js:63:9)\n' +
- ' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:63:9)\n' +
' at <node-internal-frames>\n' +
'✖ async throw fail (*ms)\n' +
' Error: thrown from async throw fail\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/output.js:75:9)\n' +
- ' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:75:9)\n' +
' at <node-internal-frames>\n' +
'﹣ async skip fail (*ms) # SKIP\n' +
' Error: thrown from async throw fail\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/output.js:80:9)\n' +
- ' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:80:9)\n' +
' at <node-internal-frames>\n' +
'✖ async assertion fail (*ms)\n' +
' AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n' +
'\n' +
' true !== false\n' +
'\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/output.js:85:10)\n' +
- ' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:85:10)\n' +
' at <node-internal-frames>\n' +
' at <node-internal-frames> {\n' +
' generatedMessage: true,\n' +
" code: 'ERR_ASSERTION',\n" +
' actual: true,\n' +
...
' Error: rejected from reject fail\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/output.js:93:25)\n' +
- ' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:93:25)\n' +
' at <node-internal-frames>\n' +
'✖ +sync throw fail (*ms)\n' +
' Error: thrown from subtest sync throw fail\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/output.js:127:11)\n' +
- ' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:127:11)\n' +
' at <node-internal-frames>\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/output.js:125:11)\n' +
- ' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:125:11)\n' +
' at <node-internal-frames>\n' +
'✖ subtest sync throw fail (*ms)\n' +
" '1 subtest failed'\n" +
'✖ sync throw non-error fail (*ms)\n' +
' Symbol(thrown symbol from sync throw non-error fail)\n' +
'✖ sync skip option is false fail (*ms)\n' +
' Error: this should be executed\n' +
+ ' at TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/tes
|
|
test-linux (ubuntu-24.04):
test/test-runner/test-output-eval-spec.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'✔ passes (*ms)\n' +
'✖ fails (*ms)\n' +
'ℹ tests 2\n' +
'ℹ suites 0\n' +
'ℹ pass 1\n' +
...
' Error: fail\n' +
+ ' at TestContext.eval (eval at <anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/eval_spec.js:3:1), <anonymous>:6:11)\n' +
- ' at TestContext.eval (eval at <anonymous> (<project-root>/test/fixtures/test-runner/output/eval_spec.js:3:1), <anonymous>:6:11)\n' +
' at <node-internal-frames>\n'
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:182:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:217:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-eval-spec.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '✔ passes (*ms)\n' +
'✖ fails (*ms)\n' +
'ℹ tests 2\n' +
'ℹ suites 0\n' +
'ℹ pass 1\n' +
'ℹ fail 1\n' +
'ℹ cancelled 0\n' +
'ℹ skipped 0\n' +
'ℹ todo 0\n' +
'ℹ duration_ms *\n' +
'\n' +
'✖ failing tests:\n' +
'\n' +
'✖ fails (*ms)\n' +
' Error: fail\n' +
' at TestContext.eval (eval at <anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/eval_spec.js:3:1), <anonymous>:6:11)\n' +
' at <node-internal-frames>\n',
expected: '✔ passes (*ms)\n' +
'✖ fails (*ms)\n' +
'ℹ tests 2\n' +
'ℹ suites 0\n' +
'ℹ pass 1\n' +
'ℹ fail 1\n' +
'ℹ cancelled 0\n' +
'ℹ skipped 0\n' +
'ℹ todo 0\n' +
'ℹ duration_ms *\n' +
'\n' +
'✖ failing tests:\n' +
'\n' +
'✖ fails (*ms)\n' +
' Error: fail\n' +
' at TestContext.eval (eval at <anonymous> (<project-root>/test/fixtures/test-runner/output/eval_spec.js:3:1), <anonymous>:6:11)\n' +
' at <node-internal-frames>\n',
operator: 'strictEqual',
diff: 'simple'
}
Node.js v26.0.0-pre
Command: out/Release/node /home/runner/work/node/node/node/test/test-runner/test-output-eval-spec.mjs
|
|
test-linux (ubuntu-24.04):
test/test-runner/test-output-eval-dot.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
'.X\n' +
'\n' +
'Failed tests:\n' +
'\n' +
'✖ fails (*ms)\n' +
' Error: fail\n' +
+ ' at TestContext.eval (eval at <anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/eval_dot.js:3:1), <anonymous>:6:11)\n' +
- ' at TestContext.eval (eval at <anonymous> (<project-root>/test/fixtures/test-runner/output/eval_dot.js:3:1), <anonymous>:6:11)\n' +
' at <node-internal-frames>\n'
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:182:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:217:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-eval-dot.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '.X\n' +
'\n' +
'Failed tests:\n' +
'\n' +
'✖ fails (*ms)\n' +
' Error: fail\n' +
' at TestContext.eval (eval at <anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/eval_dot.js:3:1), <anonymous>:6:11)\n' +
' at <node-internal-frames>\n',
expected: '.X\n' +
'\n' +
'Failed tests:\n' +
'\n' +
'✖ fails (*ms)\n' +
' Error: fail\n' +
' at TestContext.eval (eval at <anonymous> (<project-root>/test/fixtures/test-runner/output/eval_dot.js:3:1), <anonymous>:6:11)\n' +
' at <node-internal-frames>\n',
operator: 'strictEqual',
diff: 'simple'
}
Node.js v26.0.0-pre
Command: out/Release/node /home/runner/work/node/node/node/test/test-runner/test-output-eval-dot.mjs
|
|
test-linux (ubuntu-24.04):
test/test-runner/test-output-eval-tap.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'TAP version 13\n' +
'# Subtest: passes\n' +
'ok 1 - passes\n' +
' ---\n' +
' duration_ms: *\n' +
...
' stack: |-\n' +
+ ' TestContext.eval (eval at <anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/eval_tap.js:3:1), <anonymous>:6:11)\n' +
- ' TestContext.eval (eval at <anonymous> (<project-root>/test/fixtures/test-runner/output/eval_tap.js:3:1), <anonymous>:6:11)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'1..2\n' +
'# tests 2\n' +
'# suites 0\n' +
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:182:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:217:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-eval-tap.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'TAP version 13\n' +
'# Subtest: passes\n' +
'ok 1 - passes\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: fails\n' +
'not ok 2 - fails\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'fail'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.eval (eval at <anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/eval_tap.js:3:1), <anonymous>:6:11)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'1..2\n' +
'# tests 2\n' +
'# suites 0\n' +
'# pass 1\n' +
'# fail 1\n' +
'# cancelled 0\n' +
'# skipped 0\n' +
'# todo 0\n' +
'# duration_ms *\n',
expected: 'TAP version 13\n' +
'# Subtest: passes\n' +
'ok 1 - passes\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: fails\n' +
'not ok 2 - fails\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'fail'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.eval (eval at <anonymous> (<project-root>/test/fixtures/test-runner/output/eval_tap.js:3:1), <anonymous>:6:11)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'1..2\n' +
'# tests 2\n' +
'# suites 0\n' +
'# pass 1\n' +
'# fail 1\n' +
'# cancelled 0\n' +
'# skipped 0\n' +
'# todo 0\n' +
'# duration_ms *\n',
operator: 'strictEqual',
diff: 'simple'
}
Node.js v26.0.0-pre
Command: out/Release/node /home/runner/work/node/node/node/test/test-runner/test-output-eval-tap.mjs
|
|
test-linux (ubuntu-24.04):
test/test-runner/test-output-describe-it.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'TAP version 13\n' +
'# Subtest: sync expect fail (method)\n' +
'ok 1 - sync expect fail (method) # EXPECTED FAILURE\n' +
' ---\n' +
' duration_ms: *\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:30:4'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/describe_it.js:30:4'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'should not count as a failure'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
+ ' TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:31:9)\n' +
- ' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/describe_it.js:31:9)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: sync todo with expect fail\n' +
'ok 8 - sync todo with expect fail # TODO\n' +
' ---\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:38:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/describe_it.js:38:1'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'should not count as a failure'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
+ ' TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:39:9)\n' +
- ' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/describe_it.js:39:9)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: sync skip pass\n' +
'ok 10 - sync skip pass # SKIP\n' +
' ---\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:55:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/describe_it.js:55:1'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'thrown from sync throw fail'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
+ ' TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:56:9)\n' +
- ' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/describe_it.js:56:9)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: async skip pass\n' +
'ok 15 - async skip pass # SKIP\n' +
' ---\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:68:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/describe_it.js:68:1'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'thrown from async throw fail'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
+ ' TestContext.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:69:9)\n' +
- ' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/describe_it.js:69:9)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: async skip fail\n' +
'not ok 19 - async skip fail # SKIP\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:72:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/describe_it.js:72:1'\n" +
" failureType: 'callbackAndPromisePresent'\n" +
" error: 'passed a callback but also returned a Promise'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
'# Subtest: async assertion fail\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/describe_it.js:77:1'\n" +
- " location: '<project-root>/test
|
|
test-linux (ubuntu-24.04):
test/test-runner/test-output-default-output.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'[32m✔ should pass [90m(*ms)[39m[39m\n' +
'[31m✖ should fail [90m(*ms)[39m[39m\n' +
'[90m﹣ should skip [90m(*ms)[39m # SKIP[39m\n' +
'▶ parent\n' +
' [31m✖ should fail [90m(*ms)[39m[39m\n' +
...
' Error: fail\n' +
+ ' at TestContext.<anonymous> [90m(/home/runner/work/node/node/node/[39mtest/fixtures/test-runner/output/default_output.js:10:35[90m)[39m\n' +
- ' at TestContext.<anonymous> [90m(<project-root>/[39mtest/fixtures/test-runner/output/default_output.js:10:35[90m)[39m\n' +
' [90m at <node-internal-frames>[39m\n' +
'\n' +
'test at test/fixtures/test-runner/output/default_output.js:13:5\n' +
'[31m✖ should fail [90m(*ms)[39m[39m\n' +
' Error: fail\n' +
+ ' at TestContext.<anonymous> [90m(/home/runner/work/node/node/node/[39mtest/fixtures/test-runner/output/default_output.js:13:39[90m)[39m\n' +
- ' at TestContext.<anonymous> [90m(<project-root>/[39mtest/fixtures/test-runner/output/default_output.js:13:39[90m)[39m\n' +
' [90m at <node-internal-frames>[39m\n' +
+ ' at TestContext.<anonymous> [90m(/home/runner/work/node/node/node/[39mtest/fixtures/test-runner/output/default_output.js:13:5[90m)[39m\n' +
- ' at TestContext.<anonymous> [90m(<project-root>/[39mtest/fixtures/test-runner/output/default_output.js:13:5[90m)[39m\n' +
' [90m at <node-internal-frames>[39m\n'
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:182:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:217:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-default-output.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '[32m✔ should pass [90m(*ms)[39m[39m\n' +
'[31m✖ should fail [90m(*ms)[39m[39m\n' +
'[90m﹣ should skip [90m(*ms)[39m # SKIP[39m\n' +
'▶ parent\n' +
' [31m✖ should fail [90m(*ms)[39m[39m\n' +
' [32m✔ should pass but parent fail [90m(*ms)[39m[39m\n' +
'[31m✖ parent [90m(*ms)[39m[39m\n' +
'[34mℹ tests 6[39m\n' +
'[34mℹ suites 0[39m\n' +
'[34mℹ pass 2[39m\n' +
'[34mℹ fail 3[39m\n' +
'[34mℹ cancelled 0[39m\n' +
'[34mℹ skipped 1[39m\n' +
'[34mℹ todo 0[39m\n' +
'[34mℹ duration_ms *[39m\n' +
'\n' +
'[31m✖ failing tests:[39m\n' +
'\n' +
'test at test/fixtures/test-runner/output/default_output.js:10:1\n' +
'[31m✖ should fail [90m(*ms)[39m[39m\n' +
' Error: fail\n' +
' at TestContext.<anonymous> [90m(/home/runner/work/node/node/node/[39mtest/fixtures/test-runner/output/default_output.js:10:35[90m)[39m\n' +
' [90m at <node-internal-frames>[39m\n' +
'\n' +
'test at test/fixtures/test-runner/output/default_output.js:13:5\n' +
'[31m✖ should fail [90m(*ms)[39m[39m\n' +
' Error: fail\n' +
' at TestContext.<anonymous> [90m(/home/runner/work/node/node/node/[39mtest/fixtures/test-runner/output/default_output.js:13:39[90m)[39m\n' +
' [90m at <node-internal-frames>[39m\n' +
' at TestContext.<anonymous> [90m(/home/runner/work/node/node/node/[39mtest/fixtures/test-runner/output/default_output.js:13:5[90m)[39m\n' +
' [90m at <node-internal-frames>[39m\n',
expected: '[32m✔ should pass [90m(*ms)[39m[39m\n' +
'[31m✖ should fail [90m(*ms)[39m[39m\n' +
'[90m﹣ should skip [90m(*ms)[39m # SKIP[39m\n' +
'▶ parent\n' +
' [31m✖ should fail [90m(*ms)[39m[39m\n' +
' [32m✔ should pass but parent fail [90m(*ms)[39m[39m\n' +
'[31m✖ parent [90m(*ms)[39m[39m\n' +
'[34mℹ tests 6[39m\n' +
'[34mℹ suites 0[39m\n' +
'[34mℹ pass 2[39m\n' +
'[34mℹ fail 3[39m\n' +
'[34mℹ cancelled 0[39m\n' +
'[34mℹ skipped 1[39m\n' +
'[34mℹ todo 0[39m\n' +
'[34mℹ duration_ms *[39m\n' +
'\
|
|
test-linux (ubuntu-24.04):
test/test-runner/test-output-abort-suite.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'TAP version 13\n' +
'# Subtest: describe timeout signal\n' +
' # Subtest: ok 1\n' +
' ok 1 - ok 1\n' +
' ---\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_suite.js:10:3'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_suite.js:10:3'\n" +
" failureType: 'cancelledByParent'\n" +
" error: 'test did not finish before its parent and was cancelled'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
' # Subtest: not ok 2\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_suite.js:11:3'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_suite.js:11:3'\n" +
" failureType: 'cancelledByParent'\n" +
" error: 'test did not finish before its parent and was cancelled'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
' # Subtest: not ok 3\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_suite.js:12:3'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_suite.js:12:3'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_suite.js:13:3'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_suite.js:13:3'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_suite.js:14:3'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_suite.js:14:3'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
...
" type: 'suite'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_suite.js:5:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_suite.js:5:1'\n" +
" failureType: 'testAborted'\n" +
" error: 'The operation was aborted due to timeout'\n" +
' code: 23\n' +
" name: 'TimeoutError'\n" +
' stack: |-\n' +
...
" type: 'suite'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_suite.js:19:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_suite.js:19:1'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' <node-internal-frames>\n' +
+ ' Object.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_suite.js:19:57)\n' +
- ' Object.<anonymous> (<project-root>/test/fixtures/test-runner/output/abort_suite.js:19:57)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'1..2\n' +
'# tests 9\n' +
'# suites 2\n' +
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:182:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:217:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-abort-suite.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'TAP version 13\n
|
|
test-linux (ubuntu-24.04):
test/test-runner/test-output-abort.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'TAP version 13\n' +
'# Subtest: promise timeout signal\n' +
' # Subtest: ok 1\n' +
' ok 1 - ok 1\n' +
' ---\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort.js:11:7'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:11:7'\n" +
" failureType: 'cancelledByParent'\n" +
" error: 'test did not finish before its parent and was cancelled'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
' # Subtest: not ok 2\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort.js:12:7'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:12:7'\n" +
" failureType: 'cancelledByParent'\n" +
" error: 'test did not finish before its parent and was cancelled'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
' # Subtest: not ok 3\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort.js:13:7'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:13:7'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort.js:14:7'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:14:7'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort.js:15:7'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:15:7'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort.js:5:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:5:1'\n" +
" failureType: 'testAborted'\n" +
" error: 'The operation was aborted due to timeout'\n" +
' code: 23\n' +
" name: 'TimeoutError'\n" +
' stack: |-\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort.js:21:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:21:1'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' <node-internal-frames>\n' +
+ ' Object.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort.js:21:52)\n' +
- ' Object.<anonymous> (<project-root>/test/fixtures/test-runner/output/abort.js:21:52)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: callback timeout signal\n' +
' # Subtest: ok 1\n' +
' ok 1 - ok 1\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort.js:30:5'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:30:5'\n" +
" failureType: 'cancelledByParent'\n" +
" error: 'test did not finish before its parent and was cancelled'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
'
|
|
test-linux (ubuntu-24.04):
test/test-runner/test-output-abort-hooks.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'before\n' +
'2.1\n' +
'2.2\n' +
'after\n' +
'beforeEach\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_hooks.js:11:3'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_hooks.js:11:3'\n" +
" failureType: 'cancelledByParent'\n" +
" error: 'test did not finish before its parent and was cancelled'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
' # Subtest: test 2\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_hooks.js:14:3'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_hooks.js:14:3'\n" +
" failureType: 'cancelledByParent'\n" +
" error: 'test did not finish before its parent and was cancelled'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
' 1..2\n' +
...
" type: 'suite'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_hooks.js:4:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_hooks.js:4:1'\n" +
" failureType: 'hookFailed'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' <node-internal-frames>\n' +
+ ' before.signal (/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_hooks.js:8:8)\n' +
- ' before.signal (<project-root>/test/fixtures/test-runner/output/abort_hooks.js:8:8)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: 2 after describe\n' +
' # Subtest: test 1\n' +
' ok 1 - test 1\n' +
...
" type: 'suite'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_hooks.js:19:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_hooks.js:19:1'\n" +
" failureType: 'hookFailed'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' <node-internal-frames>\n' +
+ ' after.signal (/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_hooks.js:23:8)\n' +
- ' after.signal (<project-root>/test/fixtures/test-runner/output/abort_hooks.js:23:8)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: 3 beforeEach describe\n' +
' # Subtest: test 1\n' +
' not ok 1 - test 1\n' +
...
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_hooks.js:41:3'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_hooks.js:41:3'\n" +
" failureType: 'hookFailed'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' <node-internal-frames>\n' +
+ ' beforeEach.signal (/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_hooks.js:38:8)\n' +
- ' beforeEach.signal (<project-root>/test/fixtures/test-runner/output/abort_hooks.js:38:8)\n' +
' <node-internal-frames>\n' +
' ...\n' +
' # Subtest: test 2\n' +
' not ok 2 - test 2\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort_hooks.js:44:3'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort_hooks.js:44:3'\n" +
" failureType: 'hookFailed'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
' <node-in
|
|
test-linux (ubuntu-24.04):
test/test-runner/test-output-abort-runs-after-hook.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
'TAP version 13\n' +
'AFTER\n' +
'# Subtest: test that aborts\n' +
'not ok 1 - test that aborts\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
+ " location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort-runs-after-hook.js:4:1'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort-runs-after-hook.js:4:1'\n" +
" failureType: 'uncaughtException'\n" +
" error: 'boom'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
+ ' Immediate.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort-runs-after-hook.js:12:11)\n' +
- ' Immediate.<anonymous> (<project-root>/test/fixtures/test-runner/output/abort-runs-after-hook.js:12:11)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'1..1\n' +
'# tests 1\n' +
'# suites 0\n' +
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:182:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:217:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-abort-runs-after-hook.mjs:8:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'TAP version 13\n' +
'AFTER\n' +
'# Subtest: test that aborts\n' +
'not ok 1 - test that aborts\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" location: '/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort-runs-after-hook.js:4:1'\n" +
" failureType: 'uncaughtException'\n" +
" error: 'boom'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' Immediate.<anonymous> (/home/runner/work/node/node/node/test/fixtures/test-runner/output/abort-runs-after-hook.js:12:11)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'1..1\n' +
'# tests 1\n' +
'# suites 0\n' +
'# pass 0\n' +
'# fail 1\n' +
'# cancelled 0\n' +
'# skipped 0\n' +
'# todo 0\n' +
'# duration_ms *\n',
expected: 'TAP version 13\n' +
'AFTER\n' +
'# Subtest: test that aborts\n' +
'not ok 1 - test that aborts\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" location: '<project-root>/test/fixtures/test-runner/output/abort-runs-after-hook.js:4:1'\n" +
" failureType: 'uncaughtException'\n" +
" error: 'boom'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' Immediate.<anonymous> (<project-root>/test/fixtures/test-runner/output/abort-runs-after-hook.js:12:11)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'1..1\n' +
'# tests 1\n' +
'# suites 0\n' +
'# pass 0\n' +
'# fail 1\n' +
'# cancelled 0\n' +
'# skipped 0\n' +
'# todo 0\n' +
'# duration_ms *\n',
operator: 'strictEqual',
diff: 'simple'
}
Node.js v26.0.0-pre
Command: out/Release/node /home/runner/work/node/node/node/test/test-runner/test-output-abort-runs-after-hook.mjs
|
|
sccache stats
72% - 3517 hits, 1341 misses, 0 errors
|
|
sccache stats
71% - 3447 hits, 1398 misses, 0 errors
|