tests: update tests to reflect latest node updates #361
Annotations
6 errors, 7 warnings, and 7 notices
packages/github/tests/index.test.js#L24
Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
exitCode: 1,
...
'::debug::completed running is ok\n' +
'::debug::starting to run fails\n' +
+ "::error title=fails,file=tests/example.js,line=9,col=11::Error [ERR_TEST_FAILURE]: this is an error%0A at async Promise.all (index 0) {%0A code: 'ERR_TEST_FAILURE',%0A failureType: 'testCodeFailure',%0A cause: Error: this is an error%0A at TestContext.<anonymous> (CWD/tests/example.js:9:11)%0A at Test.runInAsyncScope (node:async_hooks:211:14)%0A at Test.run (node:internal/test_runner/test:887:25)%0A at Suite.processPendingSubtests (node:internal/test_runner/test:584:18)%0A at Test.postRun (node:internal/test_runner/test:983:19)%0A at Test.run (node:internal/test_runner/test:926:12)%0A at async Promise.all (index 0)%0A at async Suite.run (node:internal/test_runner/test:1268:7)%0A at async startSubtestAfterBootstrap (node:internal/test_runner/harness:280:3)%0A}\n" +
- "::error title=fails,file=tests/example.js,line=9,col=11::Error [ERR_TEST_FAILURE]: this is an error%0A at async Promise.all (index 0) {%0A code: 'ERR_TEST_FAILURE',%0A failureType: 'testCodeFailure',%0A cause: Error: this is an error%0A at TestContext.<anonymous> (CWD/tests/example.js:9:11)%0A at Test.runInAsyncScope (node:async_hooks:206:9)%0A at Test.run (node:internal/test_runner/test:856:25)%0A at Suite.processPendingSubtests (node:internal/test_runner/test:565:18)%0A at Test.postRun (node:internal/test_runner/test:955:19)%0A at Test.run (node:internal/test_runner/test:898:12)%0A at async Promise.all (index 0)%0A at async Suite.run (node:internal/test_runner/test:1217:7)%0A at async Test.processPendingSubtests (node:internal/test_runner/test:565:7)%0A}\n" +
'::debug::starting to run is a diagnostic\n' +
'::debug::completed running is a diagnostic\n' +
'::notice file=tests/example.js,line=11,col=3::this is a diagnostic\n' +
'::debug::starting to run should fail\n' +
+ "::error title=should fail,file=tests/example.js,line=12,col=31::[Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:%0A%0A assert(false)%0A] {%0A code: 'ERR_TEST_FAILURE',%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:%0A %0A assert(false)%0A %0A at TestContext.<anonymous> (CWD/tests/example.js:12:31)%0A at Test.runInAsyncScope (node:async_hooks:211:14)%0A at Test.run (node:internal/test_runner/test:887:25)%0A at Suite.processPendingSubtests (node:internal/test_runner/test:584:18)%0A at Test.postRun (node:internal/test_runner/test:983:19)%0A at Test.run (node:internal/test_runner/test:926:12)%0A at async Suite.processPendingSubtests (node:internal/test_runner/test:584:7) {%0A generatedMessage: true,%0A code: 'ERR_ASSERTION',%0A actual: false,%0A expected: true,%0A operator: '=='%0A }%0A}\n" +
- "::error title=should fail,file=tests/example.js,line=12,col=31::[Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:%0A%0A assert(false)%0A] {%0A code: 'ERR_TEST_FAILURE',%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:%0A %0A assert(false)%0A %0A at TestContext.<anonymous> (CWD/tests/example.js:12:31)%0A at Test.runInAsyncScope (node:async_hooks:206:9)%0A at Test.run (node:internal/test_runner/test:856:25)%0A at Suite.processPendingSubtests (node:internal/test_runner/test:565:18)%0A at Test.postRun (node:internal/test_runner/test:955:19)%0A at Test.run (node:internal/test_runner/test:898:12)%0A at async Suite.processPendingSubtests (node:internal/test_runner/test:565:7) {%0A generatedMessage: true,%0A code: 'ERR_ASSERTION',%0A actual: false,%0A expected: true,%0A operator: '=='%0A }%0A}\n" +
'::debug::starting to run more tests\n' +
...
|
packages/github/tests/index.test.js#L32
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected
+ {
+ exitCode: 1,
+ stderr: '',
+ stdout: '::debug::starting to run should fail\n' +
+ "::error title=should fail,file=tests/example.mjs,line=5,col=3::[Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:%0A%0A assert(false)%0A] {%0A code: 'ERR_TEST_FAILURE',%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:%0A %0A assert(false)%0A %0A at TestContext.<anonymous> (file://CWD/tests/example.mjs:5:3)%0A at Test.runInAsyncScope (node:async_hooks:211:14)%0A at Test.run (node:internal/test_runner/test:887:25)%0A at Test.start (node:internal/test_runner/test:786:17)%0A at startSubtestAfterBootstrap (node:internal/test_runner/harness:280:17) {%0A generatedMessage: true,%0A code: 'ERR_ASSERTION',%0A actual: false,%0A expected: true,%0A operator: '=='%0A }%0A}\n" +
+ '::debug::starting to run should pass\n' +
+ '::debug::completed running should pass\n' +
+ '::group::Test results (1 passed, 1 failed)\n' +
+ '::notice::Total Tests: 2%0ASuites π: 0%0APassed β
: 1%0AFailed β: 1%0ACanceled π«: 0%0ASkipped βοΈ: 0%0ATodo π: 0%0ADuration π: *ms\n' +
+ '::endgroup::\n'
+ }
- '<h1>Test Results</h1>\n' +
- '<table><tr><td>Total Tests</td><td>8</td></tr><tr><td>Suites π</td><td>2</td></tr><tr><td>Passed β
</td><td>4</td></tr><tr><td>Failed β</td><td>2</td></tr><tr><td>Canceled π«</td><td>0</td></tr><tr><td>Skipped βοΈ</td><td>1</td></tr><tr><td>Todo π</td><td>1</td></tr><tr><td>Duration π</td><td>*ms</td></tr></table>\n'] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
+ {
+ exitCode: 1,
+ stderr: '',
+ stdout: '::debug::starting to run should fail\n' +
+ "::error title=should fail,file=tests/example.mjs,line=5,col=3::[Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:%0A%0A assert(false)%0A] {%0A code: 'ERR_TEST_FAILURE',%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:%0A %0A assert(false)%0A %0A at TestContext.<anonymous> (file://CWD/tests/example.mjs:5:3)%0A at Test.runInAsyncScope (node:async_hooks:211:14)%0A at Test.run (node:internal/test_runner/test:887:25)%0A at Test.start (node:internal/test_runner/test:786:17)%0A at startSubtestAfterBootstrap (node:internal/test_runner/harness:280:17) {%0A generatedMessage: true,%0A code: 'ERR_ASSERTION',%0A actual: false,%0A expected: true,%0A operator: '=='%0A }%0A}\n" +
+ '::debug::starting to run should pass\n' +
+ '::debug::completed running should pass\n' +
+ '::group::Test results (1 passed, 1 failed)\n' +
+ '::notice::Total Tests: 2%0ASuites π: 0%0APassed β
: 1%0AFailed β: 1%0ACanceled π«: 0%0ASkipped βοΈ: 0%0ATodo π: 0%0ADuration π: *ms\n' +
+ '::endgroup::\n'
+ }
- '<h1>Test Results</h1>\n' +
- '<table><tr><td>Total Tests</td><td>8</td></tr><tr><td>Suites π</td><td>2</td></tr><tr><td>Passed β
</td><td>4</td></tr><tr><td>Failed β</td><td>2</td></tr><tr><td>Canceled π«</td><td>0</td></tr><tr><td>Skipped βοΈ</td><td>1</td></tr><tr><td>Todo π</td><td>1</td></tr><tr><td>Duration π</td><td>*ms</td></tr></table>\n'
at test (/home/runner/work/reporters/reporters/tests/utils.js:30:12)
at async TestContext.<anonymous> (/home/runner/work/reporters/reporters/packages/github/tests/index.test.js:32:5)
at async Test.run (node:internal/test_runner/test:888:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:584:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { stderr: '', stdout: "::debug::starting to run should fail\n::error title=should fail,file=tests/example.mjs,line=5,col=3::[Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:%0A%0A assert
|
packages/github/tests/index.test.js#L37
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected
{
exitCode: 1,
stderr: '',
+ stdout: ''
- stdout: '::debug::starting to run should fail\n' +
- "::error title=should fail,file=tests/example.mjs,line=5,col=3::Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:%0A%0A assert(false)%0A%0A at AsyncResource.runInAsyncScope (node:async_hooks:206:9) {%0A code: 'ERR_TEST_FAILURE',%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:%0A %0A assert(false)%0A %0A at TestContext.<anonymous> (file://CWD/tests/example.mjs:5:3)%0A at Test.runInAsyncScope (node:async_hooks:206:9)%0A at Test.run (node:internal/test_runner/test:856:25)%0A at Test.processPendingSubtests (node:internal/test_runner/test:565:18)%0A at node:internal/test_runner/harness:248:12%0A at node:internal/process/task_queues:140:7%0A at AsyncResource.runInAsyncScope (node:async_hooks:206:9)%0A at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8) {%0A generatedMessage: true,%0A code: 'ERR_ASSERTION',%0A actual: false,%0A expected: true,%0A operator: '=='%0A }%0A}\n" +
- '::debug::starting to run should pass\n' +
- '::debug::completed running should pass\n' +
- '::group::Test results (1 passed, 1 failed)\n' +
- '::notice::Total Tests: 2%0ASuites π: 0%0APassed β
: 1%0AFailed β: 1%0ACanceled π«: 0%0ASkipped βοΈ: 0%0ATodo π: 0%0ADuration π: *ms\n' +
- '::endgroup::\n'
}] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
{
exitCode: 1,
stderr: '',
+ stdout: ''
- stdout: '::debug::starting to run should fail\n' +
- "::error title=should fail,file=tests/example.mjs,line=5,col=3::Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:%0A%0A assert(false)%0A%0A at AsyncResource.runInAsyncScope (node:async_hooks:206:9) {%0A code: 'ERR_TEST_FAILURE',%0A failureType: 'testCodeFailure',%0A cause: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:%0A %0A assert(false)%0A %0A at TestContext.<anonymous> (file://CWD/tests/example.mjs:5:3)%0A at Test.runInAsyncScope (node:async_hooks:206:9)%0A at Test.run (node:internal/test_runner/test:856:25)%0A at Test.processPendingSubtests (node:internal/test_runner/test:565:18)%0A at node:internal/test_runner/harness:248:12%0A at node:internal/process/task_queues:140:7%0A at AsyncResource.runInAsyncScope (node:async_hooks:206:9)%0A at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8) {%0A generatedMessage: true,%0A code: 'ERR_ASSERTION',%0A actual: false,%0A expected: true,%0A operator: '=='%0A }%0A}\n" +
- '::debug::starting to run should pass\n' +
- '::debug::completed running should pass\n' +
- '::group::Test results (1 passed, 1 failed)\n' +
- '::notice::Total Tests: 2%0ASuites π: 0%0APassed β
: 1%0AFailed β: 1%0ACanceled π«: 0%0ASkipped βοΈ: 0%0ATodo π: 0%0ADuration π: *ms\n' +
- '::endgroup::\n'
}
at test (/home/runner/work/reporters/reporters/tests/utils.js:30:12)
at async TestContext.<anonymous> (/home/runner/work/reporters/reporters/packages/github/tests/index.test.js:37:5)
at async Test.run (node:internal/test_runner/test:888:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:584:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { stderr: '', stdout: '', exitCode: 1 },
expected: { stderr: '', stdout: "::debug::starting to run should fail\n::error title=should fail,file=tests/example.mjs,line=5,col=3::Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:%0A%0A assert(false)%0A%0A at AsyncResource.runInAsyncScope (node:async_hooks:206:9) {%0A code: 'ERR_TEST_FAILURE',%0A failureType: 'testCodeFai
|
packages/junit/tests/index.test.js#L18
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
exitCode: 1,
...
'\t<testcase name="should fail" time="*" classname="test" failure="The expression evaluated to a falsy value: assert(false)">\n' +
'\t\t<failure type="testCodeFailure" message="The expression evaluated to a falsy value: assert(false)">\n' +
+ '[Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:\n' +
- 'Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:\n' +
'\n' +
' assert(false)\n' +
+ '] {\n' +
+ " code: 'ERR_TEST_FAILURE',\n" +
+ " failureType: 'testCodeFailure',\n" +
+ ' cause: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:\n' +
+ ' \n' +
+ ' assert(false)\n' +
+ ' \n' +
- '\n' +
- ' * {\n' +
- " code: 'ERR_TEST_FAILURE',\n" +
- " failureType: 'testCodeFailure',\n" +
- ' cause: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:\n' +
- ' \n' +
- ' assert(false)\n' +
- ' \n' +
- ' *\n' +
- ' *\n' +
- ' *\n' +
' *\n' +
...
'\t<testcase name="should pass" time="*" classname="test"/>\n' +
'</testsuites>\n'
}] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
exitCode: 1,
...
'\t<testcase name="should fail" time="*" classname="test" failure="The expression evaluated to a falsy value: assert(false)">\n' +
'\t\t<failure type="testCodeFailure" message="The expression evaluated to a falsy value: assert(false)">\n' +
+ '[Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:\n' +
- 'Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:\n' +
'\n' +
' assert(false)\n' +
+ '] {\n' +
+ " code: 'ERR_TEST_FAILURE',\n" +
+ " failureType: 'testCodeFailure',\n" +
+ ' cause: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:\n' +
+ ' \n' +
+ ' assert(false)\n' +
+ ' \n' +
- '\n' +
- ' * {\n' +
- " code: 'ERR_TEST_FAILURE',\n" +
- " failureType: 'testCodeFailure',\n" +
- ' cause: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:\n' +
- ' \n' +
- ' assert(false)\n' +
- ' \n' +
- ' *\n' +
- ' *\n' +
- ' *\n' +
' *\n' +
...
'\t<testcase name="should pass" time="*" classname="test"/>\n' +
'</testsuites>\n'
}
at test (/home/runner/work/reporters/reporters/tests/utils.js:30:12)
at async TestContext.<anonymous> (/home/runner/work/reporters/reporters/packages/junit/tests/index.test.js:18:3)
at async Test.run (node:internal/test_runner/test:888:9)
at async Test.processPendingSubtests (node:internal/test_runner/test:584:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { stderr: '', stdout: `<?xml version="1.0" encoding="utf-8"?>\n<testsuites>\n\t<testcase name="should fail" time="*" classname="test" failure="The expression evaluated to a falsy value: assert(false)">\n\t\t<failure type="testCodeFailure" message="The expression evaluated to a falsy value: assert(false)">\n[Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:\n\n assert(false)\n] {\n code: 'ERR_TEST_FAILURE',\n failureType: 'testCodeFailure',\n cause: AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:\n \n assert(false)\n \n *\n *\n *\n *\n * {\n generatedMessage: true,\n code: 'ERR_ASSERTION',\n actual: false,\n expected: true,\n operator: '=='\n }\n}\n\t\t</failure>\n\t</testcase>\n\t<testcase name="should pass" time="*" classname="test"/>\n</testsuites>\n`, exitCode: 1 },
expected: { stderr: '', stdout: `<?xml ve
|
packages/mocha/tests/index.test.js#L19
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
exitCode: 1,
...
' assert(false)\n' +
'\n' +
+ ' \n' +
- ' *\n' +
'\n' +
'\n' +
'\n'
}] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
exitCode: 1,
...
' assert(false)\n' +
'\n' +
+ ' \n' +
- ' *\n' +
'\n' +
'\n' +
'\n'
}
at test (/home/runner/work/reporters/reporters/tests/utils.js:30:12)
at async TestContext.<anonymous> (/home/runner/work/reporters/reporters/packages/mocha/tests/index.test.js:19:3)
at async Test.run (node:internal/test_runner/test:888:9)
at async Test.processPendingSubtests (node:internal/test_runner/test:584:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { stderr: '', stdout: '\n\n 1) should fail\n β should pass\n\n 1 passing (*ms)\n 1 failing\n\n 1) \n should fail:\n Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:\n\n assert(false)\n\n \n\n\n\n', exitCode: 1 },
expected: { stderr: '', stdout: '\n\n 1) should fail\n β should pass\n\n 1 passing (*ms)\n 1 failing\n\n 1) \n should fail:\n Error [ERR_TEST_FAILURE]: The expression evaluated to a falsy value:\n\n assert(false)\n\n *\n\n\n\n', exitCode: 1 },
operator: 'deepStrictEqual'
}
}
|
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
packages/mocha/index.js#L137
Unexpected console statement
|
packages/mocha/index.js#L141
Unexpected console statement
|
packages/mocha/tests/customReporter/reporter.js#L11
Unexpected console statement
|
packages/testwatch/index.js#L16
Unexpected console statement
|
packages/testwatch/index.js#L83
Unexpected unnamed async generator function
|
packages/testwatch/index.js#L248
Unexpected console statement
|
|
|
|
|
|
|
|
The logs for this run have expired and are no longer available.
Loading