test: use human readable snapshots #366
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
|