Skip to content

test: use human readable snapshots #366

test: use human readable snapshots

test: use human readable snapshots #366

Triggered via pull request September 10, 2024 21:30
Status Failure
Total duration 32s
Artifacts

test.yaml

on: pull_request
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 20 warnings, and 21 notices
empty: packages/junit/tests/index.test.js#L27
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal: + actual - expected + [ + '<?xml version="1.0" encoding="utf-8"?>\n', + '<testsuites>\n', + '</testsuites>\n' + ] - '<?xml version="1.0" encoding="utf-8"?>\n<testsuites>\n</testsuites>\n'] { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal: + actual - expected + [ + '<?xml version="1.0" encoding="utf-8"?>\n', + '<testsuites>\n', + '</testsuites>\n' + ] - '<?xml version="1.0" encoding="utf-8"?>\n<testsuites>\n</testsuites>\n' at TestContext.<anonymous> (/home/runner/work/reporters/reporters/packages/junit/tests/index.test.js:27:10) at async Test.run (node:internal/test_runner/test:790:9) at async Test.processPendingSubtests (node:internal/test_runner/test:517:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: [ '<?xml version="1.0" encoding="utf-8"?>\n', '<testsuites>\n', '</testsuites>\n' ], expected: '<?xml version="1.0" encoding="utf-8"?>\n<testsuites>\n</testsuites>\n', operator: 'deepStrictEqual' } }
single test: packages/junit/tests/index.test.js#L35
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal: + actual - expected + [ + '<?xml version="1.0" encoding="utf-8"?>\n', + '<testsuites>\n', + '\t<undefined name="root">\n' + + '\t<testcase name="test" time="0.100000" classname="test"/>\n' + + '\t</undefined>\n', + '</testsuites>\n' + ] - '<?xml version="1.0" encoding="utf-8"?>\n' + - '<testsuites>\n' + - '\t<undefined name="root">\n' + - '\t<testcase name="test" time="0.100000" classname="test"/>\n' + - '\t</undefined>\n' + - '</testsuites>\n'] { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal: + actual - expected + [ + '<?xml version="1.0" encoding="utf-8"?>\n', + '<testsuites>\n', + '\t<undefined name="root">\n' + + '\t<testcase name="test" time="0.100000" classname="test"/>\n' + + '\t</undefined>\n', + '</testsuites>\n' + ] - '<?xml version="1.0" encoding="utf-8"?>\n' + - '<testsuites>\n' + - '\t<undefined name="root">\n' + - '\t<testcase name="test" time="0.100000" classname="test"/>\n' + - '\t</undefined>\n' + - '</testsuites>\n' at TestContext.<anonymous> (/home/runner/work/reporters/reporters/packages/junit/tests/index.test.js:35:10) at async Test.run (node:internal/test_runner/test:790:9) at async Test.processPendingSubtests (node:internal/test_runner/test:517:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: [ '<?xml version="1.0" encoding="utf-8"?>\n', '<testsuites>\n', '\t<undefined name="root">\n\t<testcase name="test" time="0.100000" classname="test"/>\n\t</undefined>\n', '</testsuites>\n' ], expected: '<?xml version="1.0" encoding="utf-8"?>\n<testsuites>\n\t<undefined name="root">\n\t<testcase name="test" time="0.100000" classname="test"/>\n\t</undefined>\n</testsuites>\n', operator: 'deepStrictEqual' } }
tests (v20)
Process completed with exit code 1.
empty: packages/junit/tests/index.test.js#L27
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal: + actual - expected + [ + '<?xml version="1.0" encoding="utf-8"?>\n', + '<testsuites>\n', + '</testsuites>\n' + ] - '<?xml version="1.0" encoding="utf-8"?>\n<testsuites>\n</testsuites>\n'] { failureType: 'testCodeFailure', cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal: + actual - expected + [ + '<?xml version="1.0" encoding="utf-8"?>\n', + '<testsuites>\n', + '</testsuites>\n' + ] - '<?xml version="1.0" encoding="utf-8"?>\n<testsuites>\n</testsuites>\n' at TestContext.<anonymous> (/home/runner/work/reporters/reporters/packages/junit/tests/index.test.js:27:10) at async Test.run (node:internal/test_runner/test:632:9) at async Test.processPendingSubtests (node:internal/test_runner/test:374:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: [ '<?xml version="1.0" encoding="utf-8"?>\n', '<testsuites>\n', '</testsuites>\n' ], expected: '<?xml version="1.0" encoding="utf-8"?>\n<testsuites>\n</testsuites>\n', operator: 'deepStrictEqual' }, code: 'ERR_TEST_FAILURE' }
single test: packages/junit/tests/index.test.js#L35
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal: + actual - expected + [ + '<?xml version="1.0" encoding="utf-8"?>\n', + '<testsuites>\n', + '\t<undefined name="root">\n' + + '\t<testcase name="test" time="0.100000" classname="test"/>\n' + + '\t</undefined>\n', + '</testsuites>\n' + ] - '<?xml version="1.0" encoding="utf-8"?>\n' + - '<testsuites>\n' + - '\t<undefined name="root">\n' + - '\t<testcase name="test" time="0.100000" classname="test"/>\n' + - '\t</undefined>\n' + - '</testsuites>\n'] { failureType: 'testCodeFailure', cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal: + actual - expected + [ + '<?xml version="1.0" encoding="utf-8"?>\n', + '<testsuites>\n', + '\t<undefined name="root">\n' + + '\t<testcase name="test" time="0.100000" classname="test"/>\n' + + '\t</undefined>\n', + '</testsuites>\n' + ] - '<?xml version="1.0" encoding="utf-8"?>\n' + - '<testsuites>\n' + - '\t<undefined name="root">\n' + - '\t<testcase name="test" time="0.100000" classname="test"/>\n' + - '\t</undefined>\n' + - '</testsuites>\n' at TestContext.<anonymous> (/home/runner/work/reporters/reporters/packages/junit/tests/index.test.js:35:10) at async Test.run (node:internal/test_runner/test:632:9) at async Test.processPendingSubtests (node:internal/test_runner/test:374:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: [ '<?xml version="1.0" encoding="utf-8"?>\n', '<testsuites>\n', '\t<undefined name="root">\n\t<testcase name="test" time="0.100000" classname="test"/>\n\t</undefined>\n', '</testsuites>\n' ], expected: '<?xml version="1.0" encoding="utf-8"?>\n<testsuites>\n\t<undefined name="root">\n\t<testcase name="test" time="0.100000" classname="test"/>\n\t</undefined>\n</testsuites>\n', operator: 'deepStrictEqual' }, code: 'ERR_TEST_FAILURE' }
tests (v18)
Process completed with exit code 1.
tests (v22)
The job was canceled because "v18" failed.
empty: packages/junit/tests/index.test.js#L27
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal: + actual - expected + [ + '<?xml version="1.0" encoding="utf-8"?>\n', + '<testsuites>\n', + '</testsuites>\n' + ] - '<?xml version="1.0" encoding="utf-8"?>\n<testsuites>\n</testsuites>\n'] { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal: + actual - expected + [ + '<?xml version="1.0" encoding="utf-8"?>\n', + '<testsuites>\n', + '</testsuites>\n' + ] - '<?xml version="1.0" encoding="utf-8"?>\n<testsuites>\n</testsuites>\n' at TestContext.<anonymous> (/home/runner/work/reporters/reporters/packages/junit/tests/index.test.js:27:10) 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: [ '<?xml version="1.0" encoding="utf-8"?>\n', '<testsuites>\n', '</testsuites>\n' ], expected: '<?xml version="1.0" encoding="utf-8"?>\n<testsuites>\n</testsuites>\n', operator: 'deepStrictEqual' } }
single test: packages/junit/tests/index.test.js#L35
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal: + actual - expected + [ + '<?xml version="1.0" encoding="utf-8"?>\n', + '<testsuites>\n', + '\t<undefined name="root">\n' + + '\t<testcase name="test" time="0.100000" classname="test"/>\n' + + '\t</undefined>\n', + '</testsuites>\n' + ] - '<?xml version="1.0" encoding="utf-8"?>\n' + - '<testsuites>\n' + - '\t<undefined name="root">\n' + - '\t<testcase name="test" time="0.100000" classname="test"/>\n' + - '\t</undefined>\n' + - '</testsuites>\n'] { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal: + actual - expected + [ + '<?xml version="1.0" encoding="utf-8"?>\n', + '<testsuites>\n', + '\t<undefined name="root">\n' + + '\t<testcase name="test" time="0.100000" classname="test"/>\n' + + '\t</undefined>\n', + '</testsuites>\n' + ] - '<?xml version="1.0" encoding="utf-8"?>\n' + - '<testsuites>\n' + - '\t<undefined name="root">\n' + - '\t<testcase name="test" time="0.100000" classname="test"/>\n' + - '\t</undefined>\n' + - '</testsuites>\n' at TestContext.<anonymous> (/home/runner/work/reporters/reporters/packages/junit/tests/index.test.js:35:10) 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: [ '<?xml version="1.0" encoding="utf-8"?>\n', '<testsuites>\n', '\t<undefined name="root">\n\t<testcase name="test" time="0.100000" classname="test"/>\n\t</undefined>\n', '</testsuites>\n' ], expected: '<?xml version="1.0" encoding="utf-8"?>\n<testsuites>\n\t<undefined name="root">\n\t<testcase name="test" time="0.100000" classname="test"/>\n\t</undefined>\n</testsuites>\n', operator: 'deepStrictEqual' } }
tests (v22)
The operation was canceled.
tests (v20)
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/
tests (v20): packages/mocha/index.js#L137
Unexpected console statement
tests (v20): packages/mocha/index.js#L141
Unexpected console statement
tests (v20): packages/mocha/tests/customReporter/reporter.js#L11
Unexpected console statement
tests (v18)
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/
tests (v20): packages/testwatch/index.js#L16
Unexpected console statement
tests (v20): packages/testwatch/index.js#L83
Unexpected unnamed async generator function
tests (v20): packages/testwatch/index.js#L248
Unexpected console statement
tests (v18): packages/mocha/index.js#L137
Unexpected console statement
tests (v18): packages/mocha/index.js#L141
Unexpected console statement
tests (v18): packages/mocha/tests/customReporter/reporter.js#L11
Unexpected console statement
tests (v18): packages/testwatch/index.js#L16
Unexpected console statement
tests (v18): packages/testwatch/index.js#L83
Unexpected unnamed async generator function
tests (v18): packages/testwatch/index.js#L248
Unexpected console statement
tests (v22): packages/mocha/index.js#L137
Unexpected console statement
tests (v22): packages/mocha/index.js#L141
Unexpected console statement
tests (v22): packages/mocha/tests/customReporter/reporter.js#L11
Unexpected console statement
tests (v22): packages/testwatch/index.js#L16
Unexpected console statement
tests (v22): packages/testwatch/index.js#L83
Unexpected unnamed async generator function
tests (v22): packages/testwatch/index.js#L248
Unexpected console statement
tests (v20)
Total Tests: 2 Suites πŸ“‚: 0 Passed βœ…: 2 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 266.477ms
tests (v20)
Total Tests: 1 Suites πŸ“‚: 0 Passed βœ…: 1 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 1201.586ms
tests (v20)
Total Tests: 2 Suites πŸ“‚: 0 Passed βœ…: 2 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 296.406ms
tests (v20)
Total Tests: 3 Suites πŸ“‚: 1 Passed βœ…: 3 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 488.604ms
tests (v20)
Total Tests: 4 Suites πŸ“‚: 0 Passed βœ…: 2 Failed ❌: 2 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 324.282ms
tests (v20)
Total Tests: 17 Suites πŸ“‚: 3 Passed βœ…: 17 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 2076.639ms
tests (v20)
Total Tests: 7 Suites πŸ“‚: 0 Passed βœ…: 7 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 1177.039ms
tests (v18)
Total Tests: 2 Suites πŸ“‚: 0 Passed βœ…: 2 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 297.540ms
tests (v18)
Total Tests: 1 Suites πŸ“‚: 0 Passed βœ…: 1 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 1229.748ms
tests (v18)
Total Tests: 2 Suites πŸ“‚: 0 Passed βœ…: 2 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 331.467ms
tests (v18)
Total Tests: 3 Suites πŸ“‚: 1 Passed βœ…: 3 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 534.166ms
tests (v18)
Total Tests: 4 Suites πŸ“‚: 0 Passed βœ…: 2 Failed ❌: 2 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 348.046ms
tests (v18)
Total Tests: 17 Suites πŸ“‚: 3 Passed βœ…: 17 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 2275.396ms
tests (v18)
Total Tests: 7 Suites πŸ“‚: 0 Passed βœ…: 7 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 1287.597ms
tests (v22)
Total Tests: 2 Suites πŸ“‚: 0 Passed βœ…: 2 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 259.814ms
tests (v22)
Total Tests: 1 Suites πŸ“‚: 0 Passed βœ…: 1 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 1199.361ms
tests (v22)
Total Tests: 2 Suites πŸ“‚: 0 Passed βœ…: 2 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 284.193ms
tests (v22)
Total Tests: 3 Suites πŸ“‚: 1 Passed βœ…: 3 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 489.239ms
tests (v22)
Total Tests: 4 Suites πŸ“‚: 0 Passed βœ…: 2 Failed ❌: 2 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 305.515ms
tests (v22)
Total Tests: 17 Suites πŸ“‚: 3 Passed βœ…: 17 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 2072.867ms
tests (v22)
Total Tests: 7 Suites πŸ“‚: 0 Passed βœ…: 7 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo πŸ“: 0 Duration πŸ•: 1267.378ms