test: use human readable snapshots #366
Annotations
3 errors, 7 warnings, and 7 notices
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'
}
}
|
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'
}
}
|
|
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
|
|
|
|
|
|
|
|
This job failed
Loading