test_runner: add context subtests expectFailure only skip todo
#82188
Annotations
20 errors, 2 warnings, and 2 notices
|
test-linux (ubuntu-24.04-arm):
test/parallel/test-runner-test-rerun-failures.js#L87
--- stdout ---
Test failure: 'test should pass on third rerun'
Location: test/parallel/test-runner-test-rerun-failures.js:78:1
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
[
{
+ 'node:internal/test_runner/test:381:49': {
+ name: '2 levels deep',
- 'test/fixtures/test-runner/rerun.js:17:3': {
- name: 'ambiguous (expectedAttempts=0)',
passed_on_attempt: 0
},
+ 'node:internal/test_runner/test:381:49:(1)': {
- 'test/fixtures/test-runner/rerun.js:29:13': {
name: 'nested',
passed_on_attempt: 0
},
+ 'test/fixtures/test-runner/rerun.js:17:3': {
+ name: 'ambiguous (expectedAttempts=0)',
- 'test/fixtures/test-runner/rerun.js:30:16': {
- name: '2 levels deep',
passed_on_attempt: 0
},
- 'test/fixtures/test-runner/rerun.js:30:16:(1)': {
- name: '2 levels deep',
- passed_on_attempt: 0
- },
- 'test/fixtures/test-runner/rerun.js:35:13': {
- name: 'ok',
- passed_on_attempt: 0
- },
- 'test/fixtures/test-runner/rerun.js:35:13:(1)': {
- name: 'ok',
- passed_on_attempt: 0
- },
'test/fixtures/test-runner/rerun.js:39:1': {
name: 'nested ambiguous (expectedAttempts=0)',
passed_on_attempt: 0
},
'test/fixtures/test-runner/rerun.js:43:1': {
...
},
- 'test/fixtures/test-runner/rerun.js:45:13': {
- name: 'nested',
- passed_on_attempt: 0
- },
'test/fixtures/test-runner/rerun.js:47:3': {
name: 'a',
passed_on_attempt: 0
},
'test/fixtures/test-runner/rerun.js:9:1': {
at TestContext.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-runner-test-rerun-failures.js:87:10)
at async Test.run (node:internal/test_runner/test:1217:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:385:3) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: [Array],
expected: [Array],
operator: 'deepStrictEqual',
diff: 'simple'
}
Test failure: 'test should pass on third rerun with `--test`'
Location: test/parallel/test-runner-test-rerun-failures.js:107:1
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
[
{
+ 'node:internal/test_runner/test:381:49': {
+ name: '2 levels deep',
- 'test/fixtures/test-runner/rerun.js:17:3': {
- name: 'ambiguous (expectedAttempts=0)',
passed_on_attempt: 0
},
+ 'node:internal/test_runner/test:381:49:(1)': {
- 'test/fixtures/test-runner/rerun.js:29:13': {
name: 'nested',
passed_on_attempt: 0
},
+ 'test/fixtures/test-runner/rerun.js:17:3': {
+ name: 'ambiguous (expectedAttempts=0)',
- 'test/fixtures/test-runner/rerun.js:30:16': {
- name: '2 levels deep',
passed_on_attempt: 0
},
- 'test/fixtures/test-runner/rerun.js:30:16:(1)': {
- name: '2 levels deep',
- passed_on_attempt: 0
- },
- 'test/fixtures/test-runner/rerun.js:35:13': {
- name: 'ok',
- passed_on_attempt: 0
- },
- 'test/fixtures/test-runner/rerun.js:35:13:(1)': {
- name: 'ok',
- passed_on_attempt: 0
- },
'test/fixtures/test-runner/rerun.js:39:1': {
name: 'nested ambiguous (expectedAttempts=0)',
passed_on_attempt: 0
},
'test/fixtures/test-runner/rerun.js:43:1': {
...
},
- 'test/fixtures/test-runner/rerun.js:45:13': {
- name: 'nested',
- passed_on_attempt: 0
- },
'test/fixtures/test-runner/rerun.js:47:3': {
name: 'a',
passed_on_attempt: 0
},
'test/fixtures/test-runner/rerun.js:9:1': {
at TestContext.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-runner-test-rerun-failures.js:116:10)
at async Test.run (node:internal/test_runner/test:1217:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:840:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
|
|
test-linux (ubuntu-24.04-arm):
test/parallel/test-runner-reporters.js#L114
--- stdout ---
Test failure: 'should support a 'js' file as a custom reporter'
Location: test/parallel/test-runner-reporters.js:109:5
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'node:internal/test_runner/harness:129\n' +
+ ' throw err;\n' +
+ ' ^\n' +
+ '\n' +
+ 'AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n' +
+ '+ actual - expected\n' +
+ '\n' +
+ "+ 'node:internal/test_runner/test'\n" +
+ "- '/home/runner/work/node/node/node/test/fixtures/test-runner/reporters.js'\n" +
+ '\n' +
+ ' at customReporter (/home/runner/work/node/node/node/test/fixtures/test-runner/custom_reporters/custom.js:8:14)\n' +
+ ' at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n' +
+ ' at async nextAsync (node:internal/streams/from:182:33)\n' +
+ "Emitted 'error' event on Duplex instance at:\n" +
+ ' at emitErrorNT (node:internal/streams/destroy:170:8)\n' +
+ ' at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n' +
+ ' at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {\n' +
+ ' generatedMessage: true,\n' +
+ " code: 'ERR_ASSERTION',\n" +
+ " actual: 'node:internal/test_runner/test',\n" +
+ " expected: '/home/runner/work/node/node/node/test/fixtures/test-runner/reporters.js',\n" +
+ " operator: 'strictEqual',\n" +
+ " diff: 'simple'\n" +
+ '}\n' +
+ '\n' +
+ 'Node.js v26.0.0-pre\n'
- ''
at TestContext.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-runner-reporters.js:114:14)
at Test.runInAsyncScope (node:async_hooks:226:14)
at Test.run (node:internal/test_runner/test:1210:25)
at Test.start (node:internal/test_runner/test:1105:17)
at node:internal/test_runner/test:1626:71
at node:internal/per_context/primordials:466:82
at new Promise (<anonymous>)
at new SafePromise (node:internal/per_context/primordials:435:3)
at node:internal/per_context/primordials:466:9
at Array.map (<anonymous>) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'node:internal/test_runner/harness:129\n' +
' throw err;\n' +
' ^\n' +
'\n' +
'AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n' +
'+ actual - expected\n' +
'\n' +
"+ 'node:internal/test_runner/test'\n" +
"- '/home/runner/work/node/node/node/test/fixtures/test-runner/reporters.js'\n" +
'\n' +
'...',
expected: '',
operator: 'strictEqual',
diff: 'simple'
}
Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/node/node/node/test/parallel/test-runner-reporters.js
|
|
test-linux (ubuntu-24.04-arm):
test/test-runner/test-output-spec-reporter-cli.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'β sync expect fail (method) (*ms) # EXPECTED FAILURE\n' +
'β sync expect fail (options) (*ms) # EXPECTED FAILURE\n' +
'β async expect fail (method) (*ms) # EXPECTED FAILURE\n' +
'β async expect fail (options) (*ms) # EXPECTED FAILURE\n' +
'β sync todo with expect fail (*ms) # TODO\n' +
...
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/output.js:125:11\n' +
'β +sync throw fail (*ms)\n' +
' Error: thrown from subtest sync throw fail\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:127:11)\n' +
' at <node-internal-frames>\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:125:11)\n' +
...
'\n' +
+ 'test at node:internal/test_runner/test:381:4'... 2922 more characters
- 'test at test/fixtures/test-runne'... 2969 more characters
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:173:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:208:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-spec-reporter-cli.mjs:8:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'β sync expect fail (method) (*ms) # EXPECTED FAILURE\n' +
'β sync expect fail (options) (*ms) # EXPECTED FAILURE\n' +
'β async expect fail (method) (*ms) # EXPECTED FAILURE\n' +
'β async expect fail (options) (*ms) # EXPECTED FAILURE\n' +
'β sync todo with expect fail (*ms) # TODO\n' +
'οΉ£ sync skip expect fail (*ms) # SKIP\n' +
'β sync pass todo (*ms) # TODO\n' +
'β sync pass todo with message (*ms) # this is a passing todo\n' +
'β sync fail todo (*ms) # TODO\n' +
'β sync fail todo with message (*ms) # this is a failing todo\n' +
'οΉ£ sync skip pass (*ms) # SKIP\n' +
'οΉ£ sync skip pass with message (*ms) # this is skipped\n' +
'β sync pass (*ms)\n' +
'βΉ this test should pass\n' +
'β sync throw fail (*ms)\n' +
'οΉ£ async skip pass (*ms) # SKIP\n' +
'β async pass (*ms)\n' +
'β async throw fail (*ms)\n' +
'οΉ£ async skip fail (*ms) # SKIP\n' +
'β async assertion fail (*ms)\n' +
'β resolve pass (*ms)\n' +
'β reject fail (*ms)\n' +
'β unhandled rejection - passes but warns (*ms)\n' +
'β async unhandled rejection - passes but warns (*ms)\n' +
'β immediate throw - passes but warns (*ms)\n' +
'β immediate reject - passes but warns (*ms)\n' +
'β immediate resolve pass (*ms)\n' +
'βΆ subtest sync throw fail\n' +
' β +sync throw fail (*ms)\n' +
' βΉ this subtest should make its parent test fail\n' +
'β subtest sync throw fail (*ms)\n' +
'β sync throw non-error fail (*ms)\n' +
'βΆ level 0a\n' +
' β level 1a (*ms)\n' +
' β level 1b (*ms)\n' +
' β level 1c (*ms)\n' +
' β level 1d (*ms)\n' +
'β level 0a (*ms)\n' +
'βΆ top level\n' +
' β +long running (*ms)\n' +
' βΆ +short running\n' +
' β ++short running (*ms)\n' +
' β +short running (*ms)\n' +
'β top level (*ms)\n' +
'β invalid subtest - pass but subtest fails (*ms)\n' +
'οΉ£ sync skip option (*ms) # SKIP\n' +
'οΉ£ sync skip option with message (*ms) # this is skipped\n' +
'β sync skip option is false fail (*ms)\n' +
'β <anonymous> (*ms)\n' +
'β functionOnly (*ms)\n' +
'β <anonymous> (*ms)\n' +
'β test with only a name provided (*ms)\n' +
'β <anonymous> (*ms)\n' +
'οΉ£ <anonymous> (*ms) # SKIP\n' +
'οΉ£ test with a name and options provided (*ms) # SKIP\n' +
'οΉ£ functionAndOptions (*ms) # SKIP\n' +
'β callback pass (*ms)\n' +
'β callback fail (*ms)\n' +
'οΏ½οΏ½
|
|
test-linux (ubuntu-24.04-arm):
test/test-runner/test-output-spec-reporter.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'β sync expect fail (method) (*ms) # EXPECTED FAILURE\n' +
'β sync expect fail (options) (*ms) # EXPECTED FAILURE\n' +
'β async expect fail (method) (*ms) # EXPECTED FAILURE\n' +
'β async expect fail (options) (*ms) # EXPECTED FAILURE\n' +
'β sync todo with expect fail (*ms) # TODO\n' +
...
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/output.js:125:11\n' +
'β +sync throw fail (*ms)\n' +
' Error: thrown from subtest sync throw fail\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:127:11)\n' +
' at <node-internal-frames>\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:125:11)\n' +
...
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/output.js:334:11\n' +
'β sync throw fails at first (*ms)\n' +
+ ' Error: thrown from subtest sync throw fails at first'... 2549 more characters
- ' Error: thrown from subtest s'... 2596 more characters
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:173:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:208:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-spec-reporter.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'β sync expect fail (method) (*ms) # EXPECTED FAILURE\n' +
'β sync expect fail (options) (*ms) # EXPECTED FAILURE\n' +
'β async expect fail (method) (*ms) # EXPECTED FAILURE\n' +
'β async expect fail (options) (*ms) # EXPECTED FAILURE\n' +
'β sync todo with expect fail (*ms) # TODO\n' +
'οΉ£ sync skip expect fail (*ms) # SKIP\n' +
'β sync pass todo (*ms) # TODO\n' +
'β sync pass todo with message (*ms) # this is a passing todo\n' +
'β sync fail todo (*ms) # TODO\n' +
'β sync fail todo with message (*ms) # this is a failing todo\n' +
'οΉ£ sync skip pass (*ms) # SKIP\n' +
'οΉ£ sync skip pass with message (*ms) # this is skipped\n' +
'β sync pass (*ms)\n' +
'βΉ this test should pass\n' +
'β sync throw fail (*ms)\n' +
'οΉ£ async skip pass (*ms) # SKIP\n' +
'β async pass (*ms)\n' +
'β async throw fail (*ms)\n' +
'οΉ£ async skip fail (*ms) # SKIP\n' +
'β async assertion fail (*ms)\n' +
'β resolve pass (*ms)\n' +
'β reject fail (*ms)\n' +
'β unhandled rejection - passes but warns (*ms)\n' +
'β async unhandled rejection - passes but warns (*ms)\n' +
'β immediate throw - passes but warns (*ms)\n' +
'β immediate reject - passes but warns (*ms)\n' +
'β immediate resolve pass (*ms)\n' +
'βΆ subtest sync throw fail\n' +
' β +sync throw fail (*ms)\n' +
' βΉ this subtest should make its parent test fail\n' +
'β subtest sync throw fail (*ms)\n' +
'β sync throw non-error fail (*ms)\n' +
'βΆ level 0a\n' +
' β level 1a (*ms)\n' +
' β level 1b (*ms)\n' +
' β level 1c (*ms)\n' +
' β level 1d (*ms)\n' +
'β level 0a (*ms)\n' +
'βΆ top level\n' +
' β +long running (*ms)\n' +
' βΆ +short running\n' +
' β ++short running (*ms)\n' +
' β +short running (*ms)\n' +
'β top level (*ms)\n' +
'β invalid subtest - pass but subtest fails (*ms)\n' +
'οΉ£ sync skip option (*ms) # SKIP\n' +
'οΉ£ sync skip option with message (*ms) # this is skipped\n' +
'β sync skip option is false fail (*ms)\n' +
'β <anonymous> (*ms)\n' +
'β functionOnly (*ms)\n' +
'β <anonymous> (*ms)\n' +
'β test with only a name provided (*ms)\n' +
'β <anonymous> (*ms)\n' +
'οΉ£ <anonymous> (*ms) # SKIP\n' +
'οΉ£ tes
|
|
test-linux (ubuntu-24.04-arm):
test/test-runner/test-output-output-cli.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: 'node:internal/test_runner/test:381:49'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/output.js:125:11'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'thrown from subtest sync throw fail'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:127:11)\n' +
...
' ...\n' +
+ '# Subtest: callback t is this in test\n' +
+ 'ok '... 11601 more characters
- '# Subtest: cal'... 11708 more characters
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:173:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:208:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-output-cli.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '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" +
' ...\n' +
'# Subtest: sync expect fail (options)\n' +
'ok 2 - sync expect fail (options) # EXPECTED FAILURE\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: async expect fail (method)\n' +
'ok 3 - async expect fail (method) # EXPECTED FAILURE\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: async expect fail (options)\n' +
'ok 4 - async expect fail (options) # EXPECTED FAILURE\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync todo with expect fail\n' +
'ok 5 - sync todo with expect fail # TODO\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync skip expect fail\n' +
'ok 6 - sync skip expect fail # SKIP\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync pass todo\n' +
'ok 7 - sync pass todo # TODO\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync pass todo with message\n' +
'ok 8 - sync pass todo with message # TODO this is a passing todo\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync fail todo\n' +
'not ok 9 - sync fail todo # TODO\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" location: '<project-root>/test/fixtures/test-runner/output/output.js:40:1'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'thrown from sync fail todo'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:42:9)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: sync fail todo with message\n' +
'not ok 10 - sync fail todo with message # TODO this is a failing todo\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" location: '<project-root>/test/fixtures/test-runner/output/output.js:45:1'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'thrown from sync fail todo with message'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:47:9)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: sync skip pass\n' +
'ok 11 - sync skip pass # SKIP\n' +
|
|
test-linux (ubuntu-24.04-arm):
test/test-runner/test-output-output.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: 'node:internal/test_runner/test:381:49'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/output.js:125:11'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'thrown from subtest sync throw fail'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:127:11)\n' +
...
' ...\n' +
+ '# Subtest: callback t is this in test\n' +
+ 'ok '... 11252 more characters
- '# Subtest: cal'... 11359 more characters
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:173:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:208:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-output.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '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" +
' ...\n' +
'# Subtest: sync expect fail (options)\n' +
'ok 2 - sync expect fail (options) # EXPECTED FAILURE\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: async expect fail (method)\n' +
'ok 3 - async expect fail (method) # EXPECTED FAILURE\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: async expect fail (options)\n' +
'ok 4 - async expect fail (options) # EXPECTED FAILURE\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync todo with expect fail\n' +
'ok 5 - sync todo with expect fail # TODO\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync skip expect fail\n' +
'ok 6 - sync skip expect fail # SKIP\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync pass todo\n' +
'ok 7 - sync pass todo # TODO\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync pass todo with message\n' +
'ok 8 - sync pass todo with message # TODO this is a passing todo\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync fail todo\n' +
'not ok 9 - sync fail todo # TODO\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" location: '<project-root>/test/fixtures/test-runner/output/output.js:40:1'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'thrown from sync fail todo'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:42:9)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: sync fail todo with message\n' +
'not ok 10 - sync fail todo with message # TODO this is a failing todo\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" location: '<project-root>/test/fixtures/test-runner/output/output.js:45:1'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'thrown from sync fail todo with message'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:47:9)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: sync skip pass\n' +
'ok 11 - sync skip pass # SKIP\n' +
|
|
test-linux (ubuntu-24.04-arm):
test/test-runner/test-output-hooks-spec-reporter.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'- after() called\n' +
'βΆ describe hooks\n' +
' β 1 (*ms)\n' +
' β 2 (*ms)\n' +
' βΆ nested\n' +
...
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/hooks.js:172:11\n' +
'β 1 (*ms)\n' +
' Error: before\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:171:26)\n' +
' at <node-internal-frames>\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:171:5)\n' +
' at <node-internal-frames>\n' +
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/hooks.js:173:11\n' +
'β 2 (*ms)\n' +
' Error: before\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:171:26)\n' +
' at <node-internal-frames>\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:171:5)\n' +
...
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/hooks.js:197:11\n' +
'β 1 (*ms)\n' +
' Error: beforeEach\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:196:30)\n' +
' at <node-internal-frames>\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:197:11)\n' +
- ' at <node-internal-frames>\n' +
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/hooks.js:198:11\n' +
'β 2 (*ms)\n' +
' Error: beforeEach\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:196:30)\n' +
' at <node-internal-frames>\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:198:11)\n' +
- ' at <node-internal-frames>\n' +
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/hooks.js:204:11\n' +
'β 1 (*ms)\n' +
' Error: afterEach\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:203:29)\n' +
' at <node-internal-frames>\n' +
' at async TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:204:3)\n' +
' at <node-internal-frames>\n' +
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/hooks.js:205:11\n' +
'β 2 (*ms)\n' +
' Error: afterEach\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:203:29)\n' +
' at <node-internal-frames>\n' +
' at async TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:205:3)\n' +
' at <node-internal-frames>\n' +
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/hooks.js:212:11\n' +
'β 1 (*ms)\n' +
' Error: test\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:212:35)\n' +
' at <node-internal-frames>\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:212:11)\n' +
' at <node-internal-frames>\n' +
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/hooks.js:232:11\n' +
'β 1 (*ms)\n' +
' Error: test\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:226:15)\n' +
' at <node-internal-frames>\n' +
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
-
|
|
test-linux (ubuntu-24.04-arm):
test/test-runner/test-output-hooks.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'- after() called\n' +
'TAP version 13\n' +
'# Subtest: describe hooks\n' +
' # Subtest: 1\n' +
' ok 1 - 1\n' +
...
" type: 'test'\n" +
+ " location: 'node:internal/test_runner/test:381:49'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/hooks.js:172:11'\n" +
" failureType: 'hookFailed'\n" +
" error: 'before'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:171:26)\n' +
...
" type: 'test'\n" +
+ " location: 'node:internal/test_runner/test:381:49'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/hooks.js:173:11'\n" +
" failureType: 'hookFailed'\n" +
" error: 'before'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:171:26)\n' +
...
'# Subtest: t.before throws - no subtests\n' +
+ 'not ok 14 - t.before throws - no subtests\n' +
+ ' ---\n' +
+ ' duratio'... 8766 more characters
- 'not o'... 9088 more characters
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:173:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:208:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-hooks.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '- after() called\n' +
'TAP version 13\n' +
'# Subtest: describe hooks\n' +
' # Subtest: 1\n' +
' ok 1 - 1\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
' # Subtest: 2\n' +
' ok 2 - 2\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
' # Subtest: nested\n' +
' # Subtest: nested 1\n' +
' ok 1 - nested 1\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
' # Subtest: nested 2\n' +
' ok 2 - nested 2\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
' 1..2\n' +
' ok 3 - nested\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'suite'\n" +
' ...\n' +
' 1..3\n' +
'ok 1 - describe hooks\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'suite'\n" +
' ...\n' +
'# Subtest: describe hooks - no subtests\n' +
'ok 2 - describe hooks - no subtests\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'suite'\n" +
' ...\n' +
'# Subtest: before throws\n' +
' # Subtest: 1\n' +
' not ok 1 - 1\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" location: '<project-root>/test/fixtures/test-runner/output/hooks.js:74:3'\n" +
" failureType: 'cancelledByParent'\n" +
" error: 'test did not finish before its parent and was cancelled'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
' # Subtest: 2\n' +
' not ok 2 - 2\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" location: '<project-root>/test/fixtures/test-runner/output/hooks.js:75: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' +
'not ok 3 - before throws\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'suite'\n" +
" location: '<project-root>/test/fixtures/test-runner/output/hooks.js:72:1'\n"
|
|
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' +
...
'\n' +
+ 'test at node:internal/test_runner/test:381:49\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(<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(<project-root>/[39mtest/fixtures/test-runner/output/default_output.js:13:5[90m)[39m\n' +
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:173:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:208: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(<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 node:internal/test_runner/test:381:49\n' +
'[31mβ should fail [90m(*ms)[39m[39m\n' +
' Error: fail\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(<project-root>/[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' +
'\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(<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(<project-root>/[39mtest/fixtures/test-runner/output/default_output.js:13:39[90m)[39m\n' +
' [90m at <node-internal-frames>[39m\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: 'node:internal/test_runner/test:381:49'\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: 'node:internal/test_runner/test:381:49'\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: 'node:internal/test_runner/test:381:49'\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: 'node:internal/test_runner/test:381:49'\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: 'node:internal/test_runner/test:381:49'\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: 'node:internal/test_runner/test:381:49'\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' +
' # Subtest: not ok 2\n' +
...
" type: 'test'\n" +
+ " location: 'node:internal/test_runner/test:381:49'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:31:5'\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: 'node:internal/test_runner/test:381:49'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:32:5'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
...
" type: 'test'\n" +
+ " location: 'node:internal/test_runner/test:381:49'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:33:5'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
...
" type: 'test'\n" +
+ " location: 'node:internal/test_runner/test:381:49'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:34:5'\n" +
" failureType: 'testAborted'\n" +
" error: '
|
|
test-linux (ubuntu-24.04):
test/parallel/test-runner-test-rerun-failures.js#L87
--- stdout ---
Test failure: 'test should pass on third rerun'
Location: test/parallel/test-runner-test-rerun-failures.js:78:1
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
[
{
+ 'node:internal/test_runner/test:381:49': {
+ name: '2 levels deep',
- 'test/fixtures/test-runner/rerun.js:17:3': {
- name: 'ambiguous (expectedAttempts=0)',
passed_on_attempt: 0
},
+ 'node:internal/test_runner/test:381:49:(1)': {
- 'test/fixtures/test-runner/rerun.js:29:13': {
name: 'nested',
passed_on_attempt: 0
},
+ 'test/fixtures/test-runner/rerun.js:17:3': {
+ name: 'ambiguous (expectedAttempts=0)',
- 'test/fixtures/test-runner/rerun.js:30:16': {
- name: '2 levels deep',
passed_on_attempt: 0
},
- 'test/fixtures/test-runner/rerun.js:30:16:(1)': {
- name: '2 levels deep',
- passed_on_attempt: 0
- },
- 'test/fixtures/test-runner/rerun.js:35:13': {
- name: 'ok',
- passed_on_attempt: 0
- },
- 'test/fixtures/test-runner/rerun.js:35:13:(1)': {
- name: 'ok',
- passed_on_attempt: 0
- },
'test/fixtures/test-runner/rerun.js:39:1': {
name: 'nested ambiguous (expectedAttempts=0)',
passed_on_attempt: 0
},
'test/fixtures/test-runner/rerun.js:43:1': {
...
},
- 'test/fixtures/test-runner/rerun.js:45:13': {
- name: 'nested',
- passed_on_attempt: 0
- },
'test/fixtures/test-runner/rerun.js:47:3': {
name: 'a',
passed_on_attempt: 0
},
'test/fixtures/test-runner/rerun.js:9:1': {
at TestContext.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-runner-test-rerun-failures.js:87:10)
at async Test.run (node:internal/test_runner/test:1217:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:385:3) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: [Array],
expected: [Array],
operator: 'deepStrictEqual',
diff: 'simple'
}
Test failure: 'test should pass on third rerun with `--test`'
Location: test/parallel/test-runner-test-rerun-failures.js:107:1
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
[
{
+ 'node:internal/test_runner/test:381:49': {
+ name: '2 levels deep',
- 'test/fixtures/test-runner/rerun.js:17:3': {
- name: 'ambiguous (expectedAttempts=0)',
passed_on_attempt: 0
},
+ 'node:internal/test_runner/test:381:49:(1)': {
- 'test/fixtures/test-runner/rerun.js:29:13': {
name: 'nested',
passed_on_attempt: 0
},
+ 'test/fixtures/test-runner/rerun.js:17:3': {
+ name: 'ambiguous (expectedAttempts=0)',
- 'test/fixtures/test-runner/rerun.js:30:16': {
- name: '2 levels deep',
passed_on_attempt: 0
},
- 'test/fixtures/test-runner/rerun.js:30:16:(1)': {
- name: '2 levels deep',
- passed_on_attempt: 0
- },
- 'test/fixtures/test-runner/rerun.js:35:13': {
- name: 'ok',
- passed_on_attempt: 0
- },
- 'test/fixtures/test-runner/rerun.js:35:13:(1)': {
- name: 'ok',
- passed_on_attempt: 0
- },
'test/fixtures/test-runner/rerun.js:39:1': {
name: 'nested ambiguous (expectedAttempts=0)',
passed_on_attempt: 0
},
'test/fixtures/test-runner/rerun.js:43:1': {
...
},
- 'test/fixtures/test-runner/rerun.js:45:13': {
- name: 'nested',
- passed_on_attempt: 0
- },
'test/fixtures/test-runner/rerun.js:47:3': {
name: 'a',
passed_on_attempt: 0
},
'test/fixtures/test-runner/rerun.js:9:1': {
at TestContext.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-runner-test-rerun-failures.js:116:10)
at async Test.run (node:internal/test_runner/test:1217:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:840:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
|
|
test-linux (ubuntu-24.04):
test/parallel/test-runner-reporters.js#L114
--- stdout ---
Test failure: 'should support a 'js' file as a custom reporter'
Location: test/parallel/test-runner-reporters.js:109:5
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'node:internal/test_runner/harness:129\n' +
+ ' throw err;\n' +
+ ' ^\n' +
+ '\n' +
+ 'AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n' +
+ '+ actual - expected\n' +
+ '\n' +
+ "+ 'node:internal/test_runner/test'\n" +
+ "- '/home/runner/work/node/node/node/test/fixtures/test-runner/reporters.js'\n" +
+ '\n' +
+ ' at customReporter (/home/runner/work/node/node/node/test/fixtures/test-runner/custom_reporters/custom.js:8:14)\n' +
+ ' at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n' +
+ ' at async nextAsync (node:internal/streams/from:182:33)\n' +
+ "Emitted 'error' event on Duplex instance at:\n" +
+ ' at emitErrorNT (node:internal/streams/destroy:170:8)\n' +
+ ' at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n' +
+ ' at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {\n' +
+ ' generatedMessage: true,\n' +
+ " code: 'ERR_ASSERTION',\n" +
+ " actual: 'node:internal/test_runner/test',\n" +
+ " expected: '/home/runner/work/node/node/node/test/fixtures/test-runner/reporters.js',\n" +
+ " operator: 'strictEqual',\n" +
+ " diff: 'simple'\n" +
+ '}\n' +
+ '\n' +
+ 'Node.js v26.0.0-pre\n'
- ''
at TestContext.<anonymous> (/home/runner/work/node/node/node/test/parallel/test-runner-reporters.js:114:14)
at Test.runInAsyncScope (node:async_hooks:226:14)
at Test.run (node:internal/test_runner/test:1210:25)
at Test.start (node:internal/test_runner/test:1105:17)
at node:internal/test_runner/test:1626:71
at node:internal/per_context/primordials:466:82
at new Promise (<anonymous>)
at new SafePromise (node:internal/per_context/primordials:435:3)
at node:internal/per_context/primordials:466:9
at Array.map (<anonymous>) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'node:internal/test_runner/harness:129\n' +
' throw err;\n' +
' ^\n' +
'\n' +
'AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n' +
'+ actual - expected\n' +
'\n' +
"+ 'node:internal/test_runner/test'\n" +
"- '/home/runner/work/node/node/node/test/fixtures/test-runner/reporters.js'\n" +
'\n' +
'...',
expected: '',
operator: 'strictEqual',
diff: 'simple'
}
Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/node/node/node/test/parallel/test-runner-reporters.js
|
|
test-linux (ubuntu-24.04):
test/test-runner/test-output-spec-reporter-cli.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'β sync expect fail (method) (*ms) # EXPECTED FAILURE\n' +
'β sync expect fail (options) (*ms) # EXPECTED FAILURE\n' +
'β async expect fail (method) (*ms) # EXPECTED FAILURE\n' +
'β async expect fail (options) (*ms) # EXPECTED FAILURE\n' +
'β sync todo with expect fail (*ms) # TODO\n' +
...
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/output.js:125:11\n' +
'β +sync throw fail (*ms)\n' +
' Error: thrown from subtest sync throw fail\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:127:11)\n' +
' at <node-internal-frames>\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:125:11)\n' +
...
'\n' +
+ 'test at node:internal/test_runner/test:381:4'... 2922 more characters
- 'test at test/fixtures/test-runne'... 2969 more characters
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:173:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:208:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-spec-reporter-cli.mjs:8:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'β sync expect fail (method) (*ms) # EXPECTED FAILURE\n' +
'β sync expect fail (options) (*ms) # EXPECTED FAILURE\n' +
'β async expect fail (method) (*ms) # EXPECTED FAILURE\n' +
'β async expect fail (options) (*ms) # EXPECTED FAILURE\n' +
'β sync todo with expect fail (*ms) # TODO\n' +
'οΉ£ sync skip expect fail (*ms) # SKIP\n' +
'β sync pass todo (*ms) # TODO\n' +
'β sync pass todo with message (*ms) # this is a passing todo\n' +
'β sync fail todo (*ms) # TODO\n' +
'β sync fail todo with message (*ms) # this is a failing todo\n' +
'οΉ£ sync skip pass (*ms) # SKIP\n' +
'οΉ£ sync skip pass with message (*ms) # this is skipped\n' +
'β sync pass (*ms)\n' +
'βΉ this test should pass\n' +
'β sync throw fail (*ms)\n' +
'οΉ£ async skip pass (*ms) # SKIP\n' +
'β async pass (*ms)\n' +
'β async throw fail (*ms)\n' +
'οΉ£ async skip fail (*ms) # SKIP\n' +
'β async assertion fail (*ms)\n' +
'β resolve pass (*ms)\n' +
'β reject fail (*ms)\n' +
'β unhandled rejection - passes but warns (*ms)\n' +
'β async unhandled rejection - passes but warns (*ms)\n' +
'β immediate throw - passes but warns (*ms)\n' +
'β immediate reject - passes but warns (*ms)\n' +
'β immediate resolve pass (*ms)\n' +
'βΆ subtest sync throw fail\n' +
' β +sync throw fail (*ms)\n' +
' βΉ this subtest should make its parent test fail\n' +
'β subtest sync throw fail (*ms)\n' +
'β sync throw non-error fail (*ms)\n' +
'βΆ level 0a\n' +
' β level 1a (*ms)\n' +
' β level 1b (*ms)\n' +
' β level 1c (*ms)\n' +
' β level 1d (*ms)\n' +
'β level 0a (*ms)\n' +
'βΆ top level\n' +
' β +long running (*ms)\n' +
' βΆ +short running\n' +
' β ++short running (*ms)\n' +
' β +short running (*ms)\n' +
'β top level (*ms)\n' +
'β invalid subtest - pass but subtest fails (*ms)\n' +
'οΉ£ sync skip option (*ms) # SKIP\n' +
'οΉ£ sync skip option with message (*ms) # this is skipped\n' +
'β sync skip option is false fail (*ms)\n' +
'β <anonymous> (*ms)\n' +
'β functionOnly (*ms)\n' +
'β <anonymous> (*ms)\n' +
'β test with only a name provided (*ms)\n' +
'β <anonymous> (*ms)\n' +
'οΉ£ <anonymous> (*ms) # SKIP\n' +
'οΉ£ test with a name and options provided (*ms) # SKIP\n' +
'οΉ£ functionAndOptions (*ms) # SKIP\n' +
'β callback pass (*ms)\n' +
'β callback fail (*ms)\n' +
'οΏ½οΏ½
|
|
test-linux (ubuntu-24.04):
test/test-runner/test-output-spec-reporter.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'β sync expect fail (method) (*ms) # EXPECTED FAILURE\n' +
'β sync expect fail (options) (*ms) # EXPECTED FAILURE\n' +
'β async expect fail (method) (*ms) # EXPECTED FAILURE\n' +
'β async expect fail (options) (*ms) # EXPECTED FAILURE\n' +
'β sync todo with expect fail (*ms) # TODO\n' +
...
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/output.js:125:11\n' +
'β +sync throw fail (*ms)\n' +
' Error: thrown from subtest sync throw fail\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:127:11)\n' +
' at <node-internal-frames>\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:125:11)\n' +
...
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/output.js:334:11\n' +
'β sync throw fails at first (*ms)\n' +
+ ' Error: thrown from subtest sync throw fails at first'... 2549 more characters
- ' Error: thrown from subtest s'... 2596 more characters
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:173:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:208:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-spec-reporter.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'β sync expect fail (method) (*ms) # EXPECTED FAILURE\n' +
'β sync expect fail (options) (*ms) # EXPECTED FAILURE\n' +
'β async expect fail (method) (*ms) # EXPECTED FAILURE\n' +
'β async expect fail (options) (*ms) # EXPECTED FAILURE\n' +
'β sync todo with expect fail (*ms) # TODO\n' +
'οΉ£ sync skip expect fail (*ms) # SKIP\n' +
'β sync pass todo (*ms) # TODO\n' +
'β sync pass todo with message (*ms) # this is a passing todo\n' +
'β sync fail todo (*ms) # TODO\n' +
'β sync fail todo with message (*ms) # this is a failing todo\n' +
'οΉ£ sync skip pass (*ms) # SKIP\n' +
'οΉ£ sync skip pass with message (*ms) # this is skipped\n' +
'β sync pass (*ms)\n' +
'βΉ this test should pass\n' +
'β sync throw fail (*ms)\n' +
'οΉ£ async skip pass (*ms) # SKIP\n' +
'β async pass (*ms)\n' +
'β async throw fail (*ms)\n' +
'οΉ£ async skip fail (*ms) # SKIP\n' +
'β async assertion fail (*ms)\n' +
'β resolve pass (*ms)\n' +
'β reject fail (*ms)\n' +
'β unhandled rejection - passes but warns (*ms)\n' +
'β async unhandled rejection - passes but warns (*ms)\n' +
'β immediate throw - passes but warns (*ms)\n' +
'β immediate reject - passes but warns (*ms)\n' +
'β immediate resolve pass (*ms)\n' +
'βΆ subtest sync throw fail\n' +
' β +sync throw fail (*ms)\n' +
' βΉ this subtest should make its parent test fail\n' +
'β subtest sync throw fail (*ms)\n' +
'β sync throw non-error fail (*ms)\n' +
'βΆ level 0a\n' +
' β level 1a (*ms)\n' +
' β level 1b (*ms)\n' +
' β level 1c (*ms)\n' +
' β level 1d (*ms)\n' +
'β level 0a (*ms)\n' +
'βΆ top level\n' +
' β +long running (*ms)\n' +
' βΆ +short running\n' +
' β ++short running (*ms)\n' +
' β +short running (*ms)\n' +
'β top level (*ms)\n' +
'β invalid subtest - pass but subtest fails (*ms)\n' +
'οΉ£ sync skip option (*ms) # SKIP\n' +
'οΉ£ sync skip option with message (*ms) # this is skipped\n' +
'β sync skip option is false fail (*ms)\n' +
'β <anonymous> (*ms)\n' +
'β functionOnly (*ms)\n' +
'β <anonymous> (*ms)\n' +
'β test with only a name provided (*ms)\n' +
'β <anonymous> (*ms)\n' +
'οΉ£ <anonymous> (*ms) # SKIP\n' +
'οΉ£ tes
|
|
test-linux (ubuntu-24.04):
test/test-runner/test-output-output-cli.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: 'node:internal/test_runner/test:381:49'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/output.js:125:11'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'thrown from subtest sync throw fail'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:127:11)\n' +
...
' ...\n' +
+ '# Subtest: callback t is this in test\n' +
+ 'ok '... 11601 more characters
- '# Subtest: cal'... 11708 more characters
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:173:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:208:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-output-cli.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '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" +
' ...\n' +
'# Subtest: sync expect fail (options)\n' +
'ok 2 - sync expect fail (options) # EXPECTED FAILURE\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: async expect fail (method)\n' +
'ok 3 - async expect fail (method) # EXPECTED FAILURE\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: async expect fail (options)\n' +
'ok 4 - async expect fail (options) # EXPECTED FAILURE\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync todo with expect fail\n' +
'ok 5 - sync todo with expect fail # TODO\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync skip expect fail\n' +
'ok 6 - sync skip expect fail # SKIP\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync pass todo\n' +
'ok 7 - sync pass todo # TODO\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync pass todo with message\n' +
'ok 8 - sync pass todo with message # TODO this is a passing todo\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync fail todo\n' +
'not ok 9 - sync fail todo # TODO\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" location: '<project-root>/test/fixtures/test-runner/output/output.js:40:1'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'thrown from sync fail todo'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:42:9)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: sync fail todo with message\n' +
'not ok 10 - sync fail todo with message # TODO this is a failing todo\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" location: '<project-root>/test/fixtures/test-runner/output/output.js:45:1'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'thrown from sync fail todo with message'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:47:9)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: sync skip pass\n' +
'ok 11 - sync skip pass # SKIP\n' +
|
|
test-linux (ubuntu-24.04):
test/test-runner/test-output-output.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: 'node:internal/test_runner/test:381:49'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/output.js:125:11'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'thrown from subtest sync throw fail'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:127:11)\n' +
...
' ...\n' +
+ '# Subtest: callback t is this in test\n' +
+ 'ok '... 11252 more characters
- '# Subtest: cal'... 11359 more characters
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:173:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:208:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-output.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '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" +
' ...\n' +
'# Subtest: sync expect fail (options)\n' +
'ok 2 - sync expect fail (options) # EXPECTED FAILURE\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: async expect fail (method)\n' +
'ok 3 - async expect fail (method) # EXPECTED FAILURE\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: async expect fail (options)\n' +
'ok 4 - async expect fail (options) # EXPECTED FAILURE\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync todo with expect fail\n' +
'ok 5 - sync todo with expect fail # TODO\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync skip expect fail\n' +
'ok 6 - sync skip expect fail # SKIP\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync pass todo\n' +
'ok 7 - sync pass todo # TODO\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync pass todo with message\n' +
'ok 8 - sync pass todo with message # TODO this is a passing todo\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
'# Subtest: sync fail todo\n' +
'not ok 9 - sync fail todo # TODO\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" location: '<project-root>/test/fixtures/test-runner/output/output.js:40:1'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'thrown from sync fail todo'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:42:9)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: sync fail todo with message\n' +
'not ok 10 - sync fail todo with message # TODO this is a failing todo\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" location: '<project-root>/test/fixtures/test-runner/output/output.js:45:1'\n" +
" failureType: 'testCodeFailure'\n" +
" error: 'thrown from sync fail todo with message'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/output.js:47:9)\n' +
' <node-internal-frames>\n' +
' ...\n' +
'# Subtest: sync skip pass\n' +
'ok 11 - sync skip pass # SKIP\n' +
|
|
test-linux (ubuntu-24.04):
test/test-runner/test-output-hooks-spec-reporter.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'- after() called\n' +
'βΆ describe hooks\n' +
' β 1 (*ms)\n' +
' β 2 (*ms)\n' +
' βΆ nested\n' +
...
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/hooks.js:172:11\n' +
'β 1 (*ms)\n' +
' Error: before\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:171:26)\n' +
' at <node-internal-frames>\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:171:5)\n' +
' at <node-internal-frames>\n' +
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/hooks.js:173:11\n' +
'β 2 (*ms)\n' +
' Error: before\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:171:26)\n' +
' at <node-internal-frames>\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:171:5)\n' +
...
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/hooks.js:197:11\n' +
'β 1 (*ms)\n' +
' Error: beforeEach\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:196:30)\n' +
' at <node-internal-frames>\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:197:11)\n' +
- ' at <node-internal-frames>\n' +
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/hooks.js:198:11\n' +
'β 2 (*ms)\n' +
' Error: beforeEach\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:196:30)\n' +
' at <node-internal-frames>\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:198:11)\n' +
- ' at <node-internal-frames>\n' +
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/hooks.js:204:11\n' +
'β 1 (*ms)\n' +
' Error: afterEach\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:203:29)\n' +
' at <node-internal-frames>\n' +
' at async TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:204:3)\n' +
' at <node-internal-frames>\n' +
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/hooks.js:205:11\n' +
'β 2 (*ms)\n' +
' Error: afterEach\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:203:29)\n' +
' at <node-internal-frames>\n' +
' at async TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:205:3)\n' +
' at <node-internal-frames>\n' +
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/hooks.js:212:11\n' +
'β 1 (*ms)\n' +
' Error: test\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:212:35)\n' +
' at <node-internal-frames>\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:212:11)\n' +
' at <node-internal-frames>\n' +
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
- 'test at test/fixtures/test-runner/output/hooks.js:232:11\n' +
'β 1 (*ms)\n' +
' Error: test\n' +
' at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:226:15)\n' +
' at <node-internal-frames>\n' +
'\n' +
+ 'test at node:internal/test_runner/test:381:49\n' +
-
|
|
test-linux (ubuntu-24.04):
test/test-runner/test-output-hooks.mjs#L0
--- stderr ---
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'- after() called\n' +
'TAP version 13\n' +
'# Subtest: describe hooks\n' +
' # Subtest: 1\n' +
' ok 1 - 1\n' +
...
" type: 'test'\n" +
+ " location: 'node:internal/test_runner/test:381:49'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/hooks.js:172:11'\n" +
" failureType: 'hookFailed'\n" +
" error: 'before'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:171:26)\n' +
...
" type: 'test'\n" +
+ " location: 'node:internal/test_runner/test:381:49'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/hooks.js:173:11'\n" +
" failureType: 'hookFailed'\n" +
" error: 'before'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' stack: |-\n' +
' TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:171:26)\n' +
...
'# Subtest: t.before throws - no subtests\n' +
+ 'not ok 14 - t.before throws - no subtests\n' +
+ ' ---\n' +
+ ' duratio'... 8766 more characters
- 'not o'... 9088 more characters
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:173:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:208:3)
at async file:///home/runner/work/node/node/node/test/test-runner/test-output-hooks.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '- after() called\n' +
'TAP version 13\n' +
'# Subtest: describe hooks\n' +
' # Subtest: 1\n' +
' ok 1 - 1\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
' # Subtest: 2\n' +
' ok 2 - 2\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
' # Subtest: nested\n' +
' # Subtest: nested 1\n' +
' ok 1 - nested 1\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
' # Subtest: nested 2\n' +
' ok 2 - nested 2\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
' ...\n' +
' 1..2\n' +
' ok 3 - nested\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'suite'\n" +
' ...\n' +
' 1..3\n' +
'ok 1 - describe hooks\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'suite'\n" +
' ...\n' +
'# Subtest: describe hooks - no subtests\n' +
'ok 2 - describe hooks - no subtests\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'suite'\n" +
' ...\n' +
'# Subtest: before throws\n' +
' # Subtest: 1\n' +
' not ok 1 - 1\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" location: '<project-root>/test/fixtures/test-runner/output/hooks.js:74:3'\n" +
" failureType: 'cancelledByParent'\n" +
" error: 'test did not finish before its parent and was cancelled'\n" +
" code: 'ERR_TEST_FAILURE'\n" +
' ...\n' +
' # Subtest: 2\n' +
' not ok 2 - 2\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'test'\n" +
" location: '<project-root>/test/fixtures/test-runner/output/hooks.js:75: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' +
'not ok 3 - before throws\n' +
' ---\n' +
' duration_ms: *\n' +
" type: 'suite'\n" +
" location: '<project-root>/test/fixtures/test-runner/output/hooks.js:72:1'\n"
|
|
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' +
...
'\n' +
+ 'test at node:internal/test_runner/test:381:49\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(<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(<project-root>/[39mtest/fixtures/test-runner/output/default_output.js:13:5[90m)[39m\n' +
at assertSnapshot (/home/runner/work/node/node/node/test/common/assertSnapshot.js:173:12)
at async spawnAndAssert (/home/runner/work/node/node/node/test/common/assertSnapshot.js:208: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(<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 node:internal/test_runner/test:381:49\n' +
'[31mβ should fail [90m(*ms)[39m[39m\n' +
' Error: fail\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(<project-root>/[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' +
'\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(<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(<project-root>/[39mtest/fixtures/test-runner/output/default_output.js:13:39[90m)[39m\n' +
' [90m at <node-internal-frames>[39m\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: 'node:internal/test_runner/test:381:49'\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: 'node:internal/test_runner/test:381:49'\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: 'node:internal/test_runner/test:381:49'\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: 'node:internal/test_runner/test:381:49'\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: 'node:internal/test_runner/test:381:49'\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: 'node:internal/test_runner/test:381:49'\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' +
' # Subtest: not ok 2\n' +
...
" type: 'test'\n" +
+ " location: 'node:internal/test_runner/test:381:49'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:31:5'\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: 'node:internal/test_runner/test:381:49'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:32:5'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
...
" type: 'test'\n" +
+ " location: 'node:internal/test_runner/test:381:49'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:33:5'\n" +
" failureType: 'testAborted'\n" +
" error: 'This operation was aborted'\n" +
' code: 20\n' +
" name: 'AbortError'\n" +
' stack: |-\n' +
...
" type: 'test'\n" +
+ " location: 'node:internal/test_runner/test:381:49'\n" +
- " location: '<project-root>/test/fixtures/test-runner/output/abort.js:34:5'\n" +
" failureType: 'testAborted'\n" +
" error: '
|
|
test-linux (ubuntu-24.04-arm)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
test-linux (ubuntu-24.04)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
sccache stats
63% - 3064 hits, 1796 misses, 0 errors
|
|
sccache stats
67% - 3235 hits, 1612 misses, 0 errors
|