avajs/ava
The issue has been closed
Test regression on node v15.2 #2616
ninevra posted onGitHub
npm test
on master
on node v15.2.0
and later reports 3 failures in reporter output tests:
FAIL test-tap/reporters/mini.js 2 failed of 6 8s
✖ Output did not match expectation: .../ava/test-tap/reporters/mini.regular.v15.log
✖ Output did not match expectation: .../ava/test-tap/reporters/mini.edgecases.v15.log
FAIL test-tap/reporters/tap.js 2 failed of 5 7s
✖ Output did not match expectation: .../ava/test-tap/reporters/tap.regular.v15.log
✖ Output did not match expectation: .../ava/test-tap/reporters/tap.edgecases.v15.log
FAIL test-tap/reporters/verbose.js 2 failed of 9 49s
✖ Output did not match expectation: .../ava/test-tap/reporters/verbose.regular.v15.log
✖ Output did not match expectation: .../ava/test-tap/reporters/verbose.edgecases.v15.log
Suites: 3 failed, 29 passed, 32 of 32 completed
Asserts: 6 failed, 2155 passed, 1 todo, of 2162
In at least some cases, changes to node internals have altered line numbers in backtraces, e.g.:
test-tap/reporters/verbose.js 1> actual: '\n' +
...
test-tap/reporters/verbose.js 1> ' TypeError: test is not a function\n' +
test-tap/reporters/verbose.js 1> '\n' +
test-tap/reporters/verbose.js 1> ' \x1B[90m› Object.<anonymous> (test-tap/fixture/report/edgecases/import-and-use-test-member.js:3:1)\x1B[39m\n' +
test-tap/reporters/verbose.js 1> ' \x1B[90m› Module._compile (node:internal/modules/cjs/loader:1102:14)\x1B[39m\n' +
test-tap/reporters/verbose.js 1> ' \x1B[90m› Module.load (node:internal/modules/cjs/loader:967:32)\x1B[39m\n' +
test-tap/reporters/verbose.js 1> ' \x1B[90m› Function.Module._load (node:internal/modules/cjs/loader:807:14)\x1B[39m\n' +
test-tap/reporters/verbose.js 1> ' \x1B[90m› Module.require (node:internal/modules/cjs/loader:991:19)\x1B[39m\n' +
test-tap/reporters/verbose.js 1> ' \x1B[90m› require (node:internal/modules/cjs/helpers:92:18)\x1B[39m\n' +
test-tap/reporters/verbose.js 1> '\n' +
...
test-tap/reporters/verbose.js 1> expected: '\n' +
...
test-tap/reporters/verbose.js 1> ' TypeError: test is not a function\n' +
test-tap/reporters/verbose.js 1> '\n' +
test-tap/reporters/verbose.js 1> ' \x1B[90m› Object.<anonymous> (test-tap/fixture/report/edgecases/import-and-use-test-member.js:3:1)\x1B[39m\n' +
test-tap/reporters/verbose.js 1> ' \x1B[90m› Module._compile (node:internal/modules/cjs/loader:1083:30)\x1B[39m\n' +
test-tap/reporters/verbose.js 1> ' \x1B[90m› Module.load (node:internal/modules/cjs/loader:948:32)\x1B[39m\n' +
test-tap/reporters/verbose.js 1> ' \x1B[90m› Function.Module._load (node:internal/modules/cjs/loader:789:14)\x1B[39m\n' +
test-tap/reporters/verbose.js 1> ' \x1B[90m› Module.require (node:internal/modules/cjs/loader:972:19)\x1B[39m\n' +
test-tap/reporters/verbose.js 1> ' \x1B[90m› require (node:internal/modules/cjs/helpers:88:18)\x1B[39m\n' +
test-tap/reporters/verbose.js 1> '\n' +