Pre-release updates
* Update dependencies * Add Node.js >= 23 to test matrix
This commit is contained in:
parent
e5b355d498
commit
563fa5f13a
19 changed files with 2417 additions and 671 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -15,7 +15,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node-version: [^18.18, ^20.8, ^22]
|
||||
node-version: [^18.18, ^20.8, ^22, ^23]
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
@ -42,7 +42,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
ts-version: [~5.2, ~5.3, ~5.4, ~5.5]
|
||||
ts-version: [~5.2, ~5.3, ~5.4, ~5.5, ~5.6]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
|
|
|
|||
2092
package-lock.json
generated
2092
package-lock.json
generated
File diff suppressed because it is too large
Load diff
24
package.json
24
package.json
|
|
@ -36,7 +36,7 @@
|
|||
},
|
||||
"type": "module",
|
||||
"engines": {
|
||||
"node": "^18.18 || ^20.8 || ^22"
|
||||
"node": "^18.18 || ^20.8 || ^22 || >=23"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "./scripts/test.sh"
|
||||
|
|
@ -83,9 +83,9 @@
|
|||
"typescript"
|
||||
],
|
||||
"dependencies": {
|
||||
"@vercel/nft": "^0.27.3",
|
||||
"acorn": "^8.12.1",
|
||||
"acorn-walk": "^8.3.3",
|
||||
"@vercel/nft": "^0.27.5",
|
||||
"acorn": "^8.13.0",
|
||||
"acorn-walk": "^8.3.4",
|
||||
"ansi-styles": "^6.2.1",
|
||||
"arrgv": "^1.0.2",
|
||||
"arrify": "^3.0.0",
|
||||
|
|
@ -100,7 +100,7 @@
|
|||
"common-path-prefix": "^3.0.0",
|
||||
"concordance": "^5.0.4",
|
||||
"currently-unhandled": "^0.4.1",
|
||||
"debug": "^4.3.6",
|
||||
"debug": "^4.3.7",
|
||||
"emittery": "^1.0.3",
|
||||
"figures": "^6.1.0",
|
||||
"globby": "^14.0.2",
|
||||
|
|
@ -121,23 +121,23 @@
|
|||
"strip-ansi": "^7.1.0",
|
||||
"supertap": "^3.0.1",
|
||||
"temp-dir": "^3.0.0",
|
||||
"write-file-atomic": "^5.0.1",
|
||||
"write-file-atomic": "^6.0.0",
|
||||
"yargs": "^17.7.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ava/test": "github:avajs/test",
|
||||
"@ava/typescript": "^5.0.0",
|
||||
"@sindresorhus/tsconfig": "^5.1.1",
|
||||
"@types/node": "^20.16.1",
|
||||
"@types/node": "^22.8.1",
|
||||
"ansi-escapes": "^7.0.0",
|
||||
"c8": "^10.1.2",
|
||||
"execa": "^9.3.1",
|
||||
"execa": "^9.5.0",
|
||||
"expect": "^29.7.0",
|
||||
"sinon": "^18.0.0",
|
||||
"sinon": "^19.0.2",
|
||||
"tap": "^20.0.3",
|
||||
"tempy": "^3.1.0",
|
||||
"tsd": "^0.31.1",
|
||||
"typescript": "~5.5.4",
|
||||
"tsd": "^0.31.2",
|
||||
"typescript": "~5.6.3",
|
||||
"xo": "^0.59.3",
|
||||
"zen-observable": "^0.10.0"
|
||||
},
|
||||
|
|
@ -150,6 +150,6 @@
|
|||
}
|
||||
},
|
||||
"volta": {
|
||||
"node": "22.6.0"
|
||||
"node": "22.10.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import {set as setChalk} from '../../lib/chalk.js';
|
|||
|
||||
const fixColors = () => {
|
||||
// Force consistent and high-fidelity logs.
|
||||
delete process.env.NO_COLOR; // Avoid warning in Node.js 23 about NO_COLOR being ignored due to FORCE_COLOR being set.
|
||||
process.env.FORCE_COLOR = 3;
|
||||
Object.defineProperty(process, 'platform', {value: 'darwin', enumerable: true, configurable: true});
|
||||
};
|
||||
|
|
|
|||
59
test-tap/reporters/default.edgecases.v23.log
Normal file
59
test-tap/reporters/default.edgecases.v23.log
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
|
||||
---tty-stream-chunk-separator
|
||||
[35m⚠ Could not parse ast-syntax-error.cjs for line number selection[39m
|
||||
|
||||
SyntaxError: Unexpected token (3:11)
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
[1mUncaught exception in ast-syntax-error.cjs[22m
|
||||
|
||||
~/test-tap/fixture/report/edgecases/ast-syntax-error.cjs:3
|
||||
const fn = do {
|
||||
^^
|
||||
|
||||
SyntaxError: Unexpected token 'do'
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ ast-syntax-error.cjs exited with a non-zero exit code: 1[39m
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ No tests found in ava-import-no-test-declaration.cjs[39m
|
||||
---tty-stream-chunk-separator
|
||||
|
||||
[1mUncaught exception in import-and-use-test-member.cjs[22m
|
||||
|
||||
[90mimport-and-use-test-member.cjs:3[39m
|
||||
|
||||
[90m2:[39m
|
||||
[41m[1m 3: test('pass', t => t.pass());[22m[49m
|
||||
[90m4:[39m
|
||||
|
||||
TypeError: test is not a function
|
||||
|
||||
[90m› Object.<anonymous> (test-tap/fixture/report/edgecases/import-and-use-test-member.cjs:3:1)[39m
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ import-and-use-test-member.cjs exited with a non-zero exit code: 1[39m
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ No tests found in no-ava-import.cjs, make sure to import "ava" at the top of your test file[39m
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ Line numbers for test.cjs did not match any tests[39m
|
||||
---tty-stream-chunk-separator
|
||||
|
||||
[1mUncaught exception in throws.cjs[22m
|
||||
|
||||
[90mthrows.cjs:1[39m
|
||||
|
||||
[41m[1m 1: throw new Error('throws');[22m[49m
|
||||
[90m2:[39m
|
||||
|
||||
Error: throws
|
||||
|
||||
[90m› Object.<anonymous> (test-tap/fixture/report/edgecases/throws.cjs:1:7)[39m
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ throws.cjs exited with a non-zero exit code: 1[39m
|
||||
---tty-stream-chunk-separator
|
||||
[90m─[39m
|
||||
|
||||
[31m3 uncaught exceptions[39m
|
||||
---tty-stream-chunk-separator
|
||||
24
test-tap/reporters/default.failfast.v23.log
Normal file
24
test-tap/reporters/default.failfast.v23.log
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ [fail]:[39m a [90m[2m›[22m[39m fails [3m[31mTest failed via `t.fail()`[39m[23m
|
||||
---tty-stream-chunk-separator
|
||||
[90m─[39m
|
||||
|
||||
[1ma [90m[2m›[22m[1m[39m fails[22m
|
||||
|
||||
[90ma.cjs:3[39m
|
||||
|
||||
[90m2:[39m
|
||||
[41m[1m 3: test('fails', t => t.fail());[22m[49m
|
||||
[90m4:[39m
|
||||
|
||||
Test failed via `t.fail()`
|
||||
|
||||
[90m› test-tap/fixture/report/failfast/a.cjs:3:22[39m
|
||||
|
||||
[90m─[39m
|
||||
|
||||
[35m`--fail-fast` is on. 1 test file was skipped.[39m
|
||||
|
||||
[31m1 test failed[39m
|
||||
---tty-stream-chunk-separator
|
||||
24
test-tap/reporters/default.failfast2.v23.log
Normal file
24
test-tap/reporters/default.failfast2.v23.log
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ [fail]:[39m a [90m[2m›[22m[39m fails [3m[31mTest failed via `t.fail()`[39m[23m
|
||||
---tty-stream-chunk-separator
|
||||
[90m─[39m
|
||||
|
||||
[1ma [90m[2m›[22m[1m[39m fails[22m
|
||||
|
||||
[90ma.cjs:3[39m
|
||||
|
||||
[90m2:[39m
|
||||
[41m[1m 3: test('fails', t => t.fail()); [22m[49m
|
||||
[90m4:[39m test('passes', t => t.pass());
|
||||
|
||||
Test failed via `t.fail()`
|
||||
|
||||
[90m› test-tap/fixture/report/failfast2/a.cjs:3:22[39m
|
||||
|
||||
[90m─[39m
|
||||
|
||||
[35m`--fail-fast` is on. At least 1 test was skipped, as well as 1 test file.[39m
|
||||
|
||||
[31m1 test failed[39m
|
||||
---tty-stream-chunk-separator
|
||||
10
test-tap/reporters/default.only.v23.log
Normal file
10
test-tap/reporters/default.only.v23.log
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m a [90m[2m›[22m[39m only
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m b [90m[2m›[22m[39m passes
|
||||
---tty-stream-chunk-separator
|
||||
[90m─[39m
|
||||
|
||||
[32m2 tests passed[39m
|
||||
---tty-stream-chunk-separator
|
||||
359
test-tap/reporters/default.regular.v23.log
Normal file
359
test-tap/reporters/default.regular.v23.log
Normal file
|
|
@ -0,0 +1,359 @@
|
|||
|
||||
---tty-stream-chunk-separator
|
||||
[1mUncaught exception in bad-test-chain.cjs[22m
|
||||
|
||||
[90mbad-test-chain.cjs:3[39m
|
||||
|
||||
[90m2:[39m
|
||||
[41m[1m 3: test.serial.test('passes', t => t.pass());[22m[49m
|
||||
[90m4:[39m
|
||||
|
||||
TypeError: test.serial.test is not a function
|
||||
|
||||
[90m› Object.<anonymous> (test-tap/fixture/report/regular/bad-test-chain.cjs:3:13)[39m
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ bad-test-chain.cjs exited with a non-zero exit code: 1[39m
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ [fail]:[39m nested-objects [90m[2m›[22m[39m format with max depth 4
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ [fail]:[39m nested-objects [90m[2m›[22m[39m format like with max depth 4
|
||||
---tty-stream-chunk-separator
|
||||
output-in-hook [90m[2m›[22m[39m before hook
|
||||
[35mℹ[39m [90mbefore[39m
|
||||
---tty-stream-chunk-separator
|
||||
output-in-hook [90m[2m›[22m[39m beforeEach hook for passing test
|
||||
[35mℹ[39m [90mbeforeEach[39m
|
||||
---tty-stream-chunk-separator
|
||||
output-in-hook [90m[2m›[22m[39m beforeEach hook for failing test
|
||||
[35mℹ[39m [90mbeforeEach[39m
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m output-in-hook [90m[2m›[22m[39m passing test
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ [fail]:[39m output-in-hook [90m[2m›[22m[39m failing test [3m[31mTest failed via `t.fail()`[39m[23m
|
||||
---tty-stream-chunk-separator
|
||||
output-in-hook [90m[2m›[22m[39m afterEach hook for passing test
|
||||
[35mℹ[39m [90mafterEach[39m
|
||||
---tty-stream-chunk-separator
|
||||
output-in-hook [90m[2m›[22m[39m afterEach.always hook for failing test
|
||||
[35mℹ[39m [90mafterEachAlways[39m
|
||||
---tty-stream-chunk-separator
|
||||
output-in-hook [90m[2m›[22m[39m afterEach.always hook for passing test
|
||||
[35mℹ[39m [90mafterEachAlways[39m
|
||||
---tty-stream-chunk-separator
|
||||
output-in-hook [90m[2m›[22m[39m cleanup
|
||||
[35mℹ[39m [90mafterAlways[39m
|
||||
---tty-stream-chunk-separator
|
||||
[33m- [skip] test [90m[2m›[22m[39m[33m skip[39m
|
||||
---tty-stream-chunk-separator
|
||||
[34m- [todo] test [90m[2m›[22m[39m[34m todo[39m
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m test [90m[2m›[22m[39m passes
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ [fail]:[39m test [90m[2m›[22m[39m fails [3m[31mTest failed via `t.fail()`[39m[23m
|
||||
---tty-stream-chunk-separator
|
||||
[31m✔ [expected fail][39m test [90m[2m›[22m[39m known failure
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ [unexpected pass]:[39m test [90m[2m›[22m[39m no longer failing [3m[31mTest was expected to fail, but succeeded, you should stop marking the test as failing[39m[23m
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ [fail]:[39m test [90m[2m›[22m[39m logs [3m[31mTest failed via `t.fail()`[39m[23m
|
||||
[35mℹ[39m [90mhello[39m
|
||||
[35mℹ[39m [90mworld[39m
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ [fail]:[39m test [90m[2m›[22m[39m formatted
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ [fail]:[39m test [90m[2m›[22m[39m implementation throws non-error [3m[31mError thrown in test[39m[23m
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ [fail]:[39m traces-in-t-throws [90m[2m›[22m[39m throws
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ [fail]:[39m traces-in-t-throws [90m[2m›[22m[39m notThrows
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ [fail]:[39m traces-in-t-throws [90m[2m›[22m[39m notThrowsAsync
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ [fail]:[39m traces-in-t-throws [90m[2m›[22m[39m throwsAsync
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ [fail]:[39m traces-in-t-throws [90m[2m›[22m[39m throwsAsync different error
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m uncaught-exception [90m[2m›[22m[39m passes
|
||||
---tty-stream-chunk-separator
|
||||
|
||||
[1mUncaught exception in uncaught-exception.cjs[22m
|
||||
|
||||
[90muncaught-exception.cjs:5[39m
|
||||
|
||||
[90m4:[39m setImmediate(() => {
|
||||
[41m[1m 5: throw new Error('Can’t catch me');[22m[49m
|
||||
[90m6:[39m });
|
||||
|
||||
Error: Can’t catch me
|
||||
|
||||
[90m› Immediate.<anonymous> (test-tap/fixture/report/regular/uncaught-exception.cjs:5:9)[39m
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ uncaught-exception.cjs exited with a non-zero exit code: 1[39m
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m unhandled-rejection [90m[2m›[22m[39m passes
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m unhandled-rejection [90m[2m›[22m[39m unhandled non-error rejection
|
||||
---tty-stream-chunk-separator
|
||||
|
||||
[1mUnhandled rejection in unhandled-rejection.cjs[22m
|
||||
|
||||
[90munhandled-rejection.cjs:4[39m
|
||||
|
||||
[90m3:[39m const passes = t => {
|
||||
[41m[1m 4: Promise.reject(new Error('Can’t catch me'));[22m[49m
|
||||
[90m5:[39m t.pass();
|
||||
|
||||
Error: Can’t catch me
|
||||
|
||||
[90m› passes (test-tap/fixture/report/regular/unhandled-rejection.cjs:4:17)[39m
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
[1mUnhandled rejection in unhandled-rejection.cjs[22m
|
||||
|
||||
[33mnull[39m
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
[31m✘ unhandled-rejection.cjs exited with a non-zero exit code: 1[39m
|
||||
---tty-stream-chunk-separator
|
||||
[90m─[39m
|
||||
|
||||
[1mnested-objects [90m[2m›[22m[1m[39m format with max depth 4[22m
|
||||
|
||||
[90mnested-objects.cjs:29[39m
|
||||
|
||||
[90m28:[39m };
|
||||
[41m[1m 29: t.deepEqual(exp, act);[22m[49m
|
||||
[90m30:[39m });
|
||||
|
||||
Difference ([31m-[39m [31mactual[39m, [32m+[39m [32mexpected[39m):
|
||||
|
||||
[90m{[39m
|
||||
a: [90m{[39m
|
||||
b: [90m{[39m
|
||||
foo: [34m'[39m[34mbar[39m[34m'[39m[90m,[39m
|
||||
[90m}[39m[90m,[39m
|
||||
[90m}[39m[90m,[39m
|
||||
[32m+[39m c: [90m{[39m
|
||||
[32m+[39m d: [90m{[39m
|
||||
[32m+[39m e: [90m{[39m
|
||||
[32m+[39m foo: [34m'[39m[34mbar[39m[34m'[39m[90m,[39m
|
||||
[32m+[39m [90m}[39m[90m,[39m
|
||||
[32m+[39m [90m}[39m[90m,[39m
|
||||
[32m+[39m [90m}[39m[90m,[39m
|
||||
[90m}[39m
|
||||
|
||||
[90m› test-tap/fixture/report/regular/nested-objects.cjs:29:4[39m
|
||||
|
||||
|
||||
|
||||
[1mnested-objects [90m[2m›[22m[1m[39m format like with max depth 4[22m
|
||||
|
||||
[90mnested-objects.cjs:55[39m
|
||||
|
||||
[90m54:[39m };
|
||||
[41m[1m 55: t.like(actual, pattern);[22m[49m
|
||||
[90m56:[39m });
|
||||
|
||||
Difference ([31m-[39m [31mactual[39m, [32m+[39m [32mexpected[39m):
|
||||
|
||||
[90m{[39m
|
||||
a: [90m{[39m
|
||||
b: [90m{[39m
|
||||
[31m-[39m foo: [34m'[39m[31mbar[39m[34m'[39m[90m,[39m
|
||||
[32m+[39m foo: [34m'[39m[32mqux[39m[34m'[39m[90m,[39m
|
||||
[90m}[39m[90m,[39m
|
||||
[90m}[39m[90m,[39m
|
||||
[90m}[39m
|
||||
|
||||
[90m› test-tap/fixture/report/regular/nested-objects.cjs:55:4[39m
|
||||
|
||||
|
||||
|
||||
[1moutput-in-hook [90m[2m›[22m[1m[39m failing test[22m
|
||||
|
||||
[90moutput-in-hook.cjs:34[39m
|
||||
|
||||
[90m33:[39m test('failing test', t => {
|
||||
[41m[1m 34: t.fail(); [22m[49m
|
||||
[90m35:[39m });
|
||||
|
||||
Test failed via `t.fail()`
|
||||
|
||||
[90m› test-tap/fixture/report/regular/output-in-hook.cjs:34:4[39m
|
||||
|
||||
|
||||
|
||||
[1mtest [90m[2m›[22m[1m[39m fails[22m
|
||||
|
||||
[90mtest.cjs:9[39m
|
||||
|
||||
[90m8:[39m
|
||||
[41m[1m 9: test('fails', t => t.fail());[22m[49m
|
||||
[90m10:[39m
|
||||
|
||||
Test failed via `t.fail()`
|
||||
|
||||
[90m› test-tap/fixture/report/regular/test.cjs:9:22[39m
|
||||
|
||||
|
||||
|
||||
[1mtest [90m[2m›[22m[1m[39m no longer failing[22m
|
||||
|
||||
Test was expected to fail, but succeeded, you should stop marking the test as failing
|
||||
|
||||
|
||||
|
||||
[1mtest [90m[2m›[22m[1m[39m logs[22m
|
||||
[90mtest.cjs:18[39m
|
||||
|
||||
[90m17:[39m t.log('world');
|
||||
[41m[1m 18: t.fail(); [22m[49m
|
||||
[90m19:[39m });
|
||||
|
||||
Test failed via `t.fail()`
|
||||
|
||||
[90m› test-tap/fixture/report/regular/test.cjs:18:4[39m
|
||||
|
||||
|
||||
|
||||
[1mtest [90m[2m›[22m[1m[39m formatted[22m
|
||||
|
||||
[90mtest.cjs:22[39m
|
||||
|
||||
[90m21:[39m test('formatted', t => {
|
||||
[41m[1m 22: t.deepEqual('foo', 'bar');[22m[49m
|
||||
[90m23:[39m });
|
||||
|
||||
Difference ([31m-[39m [31mactual[39m, [32m+[39m [32mexpected[39m):
|
||||
|
||||
[31m-[39m [34m'[39m[31mfoo[39m[34m'[39m
|
||||
[32m+[39m [34m'[39m[32mbar[39m[34m'[39m
|
||||
|
||||
[90m› test-tap/fixture/report/regular/test.cjs:22:4[39m
|
||||
|
||||
|
||||
|
||||
[1mtest [90m[2m›[22m[1m[39m implementation throws non-error[22m
|
||||
|
||||
Error thrown in test:
|
||||
|
||||
[33mnull[39m
|
||||
|
||||
|
||||
|
||||
[1mtraces-in-t-throws [90m[2m›[22m[1m[39m throws[22m
|
||||
|
||||
[90mtraces-in-t-throws.cjs:12[39m
|
||||
|
||||
[90m11:[39m test('throws', t => {
|
||||
[41m[1m 12: t.throws(() => throwError(), {instanceOf: TypeError});[22m[49m
|
||||
[90m13:[39m });
|
||||
|
||||
Function threw unexpected exception:
|
||||
|
||||
[35mError[39m [90m{[39m
|
||||
message: [34m'[39m[34muh-oh[39m[34m'[39m[90m,[39m
|
||||
[90m}[39m
|
||||
|
||||
Expected instance of:
|
||||
|
||||
[35mFunction[39m [34mTypeError[39m [90m{[39m[90m}[39m
|
||||
|
||||
[90m› throwError (test-tap/fixture/report/regular/traces-in-t-throws.cjs:4:8)[39m
|
||||
[90m› t.throws.instanceOf (test-tap/fixture/report/regular/traces-in-t-throws.cjs:12:17)[39m
|
||||
[90m› test-tap/fixture/report/regular/traces-in-t-throws.cjs:12:4[39m
|
||||
|
||||
|
||||
|
||||
[1mtraces-in-t-throws [90m[2m›[22m[1m[39m notThrows[22m
|
||||
|
||||
[90mtraces-in-t-throws.cjs:16[39m
|
||||
|
||||
[90m15:[39m test('notThrows', t => {
|
||||
[41m[1m 16: t.notThrows(() => throwError());[22m[49m
|
||||
[90m17:[39m });
|
||||
|
||||
Function threw:
|
||||
|
||||
[35mError[39m [90m{[39m
|
||||
message: [34m'[39m[34muh-oh[39m[34m'[39m[90m,[39m
|
||||
[90m}[39m
|
||||
|
||||
[90m› throwError (test-tap/fixture/report/regular/traces-in-t-throws.cjs:4:8)[39m
|
||||
[90m› test-tap/fixture/report/regular/traces-in-t-throws.cjs:16:20[39m
|
||||
[90m› test-tap/fixture/report/regular/traces-in-t-throws.cjs:16:4[39m
|
||||
|
||||
|
||||
|
||||
[1mtraces-in-t-throws [90m[2m›[22m[1m[39m notThrowsAsync[22m
|
||||
|
||||
[90mtraces-in-t-throws.cjs:20[39m
|
||||
|
||||
[90m19:[39m test('notThrowsAsync', async t => {
|
||||
[41m[1m 20: await t.notThrowsAsync(() => throwError());[22m[49m
|
||||
[90m21:[39m });
|
||||
|
||||
Function threw:
|
||||
|
||||
[35mError[39m [90m{[39m
|
||||
message: [34m'[39m[34muh-oh[39m[34m'[39m[90m,[39m
|
||||
[90m}[39m
|
||||
|
||||
[90m› throwError (test-tap/fixture/report/regular/traces-in-t-throws.cjs:4:8)[39m
|
||||
[90m› test-tap/fixture/report/regular/traces-in-t-throws.cjs:20:31[39m
|
||||
[90m› test-tap/fixture/report/regular/traces-in-t-throws.cjs:20:10[39m
|
||||
|
||||
|
||||
|
||||
[1mtraces-in-t-throws [90m[2m›[22m[1m[39m throwsAsync[22m
|
||||
|
||||
[90mtraces-in-t-throws.cjs:24[39m
|
||||
|
||||
[90m23:[39m test('throwsAsync', async t => {
|
||||
[41m[1m 24: await t.throwsAsync(() => throwError(), {instanceOf: TypeError});[22m[49m
|
||||
[90m25:[39m });
|
||||
|
||||
Function threw synchronously. Use `t.throws()` instead:
|
||||
|
||||
[35mError[39m [90m{[39m
|
||||
message: [34m'[39m[34muh-oh[39m[34m'[39m[90m,[39m
|
||||
[90m}[39m
|
||||
|
||||
[90m› throwError (test-tap/fixture/report/regular/traces-in-t-throws.cjs:4:8)[39m
|
||||
[90m› t.throwsAsync.instanceOf (test-tap/fixture/report/regular/traces-in-t-throws.cjs:24:28)[39m
|
||||
[90m› test-tap/fixture/report/regular/traces-in-t-throws.cjs:24:10[39m
|
||||
|
||||
|
||||
|
||||
[1mtraces-in-t-throws [90m[2m›[22m[1m[39m throwsAsync different error[22m
|
||||
|
||||
[90mtraces-in-t-throws.cjs:28[39m
|
||||
|
||||
[90m27:[39m test('throwsAsync different error', async t => {
|
||||
[41m[1m 28: await t.throwsAsync(returnRejectedPromise, {instanceOf: TypeError});[22m[49m
|
||||
[90m29:[39m });
|
||||
|
||||
Returned promise rejected with unexpected exception:
|
||||
|
||||
[35mError[39m [90m{[39m
|
||||
message: [34m'[39m[34muh-oh[39m[34m'[39m[90m,[39m
|
||||
[90m}[39m
|
||||
|
||||
Expected instance of:
|
||||
|
||||
[35mFunction[39m [34mTypeError[39m [90m{[39m[90m}[39m
|
||||
|
||||
[90m› returnRejectedPromise (test-tap/fixture/report/regular/traces-in-t-throws.cjs:8:24)[39m
|
||||
[90m› test-tap/fixture/report/regular/traces-in-t-throws.cjs:28:10[39m
|
||||
|
||||
[90m─[39m
|
||||
|
||||
[31m13 tests failed[39m
|
||||
[31m1 known failure[39m
|
||||
[33m1 test skipped[39m
|
||||
[34m1 test todo[39m
|
||||
[31m2 unhandled rejections[39m
|
||||
[31m2 uncaught exceptions[39m
|
||||
---tty-stream-chunk-separator
|
||||
38
test-tap/reporters/default.timeoutcontextlogs.v23.log
Normal file
38
test-tap/reporters/default.timeoutcontextlogs.v23.log
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m a [90m[2m›[22m[39m a passes
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m a [90m[2m›[22m[39m a passes two
|
||||
---tty-stream-chunk-separator
|
||||
[31m[39m
|
||||
[31m✘ Timed out while running tests[39m
|
||||
|
||||
2 tests were pending in a.cjs
|
||||
|
||||
◌ a [90m[2m›[22m[39m a slow
|
||||
[35mℹ[39m [90mthis slow test prints useful debug message just text[39m
|
||||
◌ a [90m[2m›[22m[39m a slow two
|
||||
[35mℹ[39m [90manother useful debug message [90m{[39m[90m[39m
|
||||
[90m x: [33m5[39m[90m[90m,[39m[90m[39m
|
||||
[90m[90m}[39m[90m[39m
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m b [90m[2m›[22m[39m a passes
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m b [90m[2m›[22m[39m a passes two
|
||||
---tty-stream-chunk-separator
|
||||
[31m[39m
|
||||
[31m✘ Timed out while running tests[39m
|
||||
|
||||
2 tests were pending in b.cjs
|
||||
|
||||
◌ b [90m[2m›[22m[39m a slow
|
||||
[35mℹ[39m [90mhello world[39m
|
||||
◌ b [90m[2m›[22m[39m a slow two
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
[90m─[39m
|
||||
|
||||
[32m4 tests passed[39m
|
||||
[31m4 tests remained pending after a timeout[39m
|
||||
---tty-stream-chunk-separator
|
||||
34
test-tap/reporters/default.timeoutinmultiplefiles.v23.log
Normal file
34
test-tap/reporters/default.timeoutinmultiplefiles.v23.log
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m a [90m[2m›[22m[39m a passes
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m a [90m[2m›[22m[39m a passes two
|
||||
---tty-stream-chunk-separator
|
||||
[31m[39m
|
||||
[31m✘ Timed out while running tests[39m
|
||||
|
||||
2 tests were pending in a.cjs
|
||||
|
||||
◌ a [90m[2m›[22m[39m a slow
|
||||
◌ a [90m[2m›[22m[39m a slow two
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m b [90m[2m›[22m[39m b passes
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m b [90m[2m›[22m[39m b passes two
|
||||
---tty-stream-chunk-separator
|
||||
[31m[39m
|
||||
[31m✘ Timed out while running tests[39m
|
||||
|
||||
3 tests were pending in b.cjs
|
||||
|
||||
◌ b [90m[2m›[22m[39m b slow
|
||||
◌ b [90m[2m›[22m[39m b slow two
|
||||
◌ b [90m[2m›[22m[39m b slow three
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
[90m─[39m
|
||||
|
||||
[32m4 tests passed[39m
|
||||
[31m5 tests remained pending after a timeout[39m
|
||||
---tty-stream-chunk-separator
|
||||
20
test-tap/reporters/default.timeoutinsinglefile.v23.log
Normal file
20
test-tap/reporters/default.timeoutinsinglefile.v23.log
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m passes
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m passes two
|
||||
---tty-stream-chunk-separator
|
||||
[31m[39m
|
||||
[31m✘ Timed out while running tests[39m
|
||||
|
||||
2 tests were pending in a.cjs
|
||||
|
||||
◌ slow
|
||||
◌ slow two
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
[90m─[39m
|
||||
|
||||
[32m2 tests passed[39m
|
||||
[31m2 tests remained pending after a timeout[39m
|
||||
---tty-stream-chunk-separator
|
||||
18
test-tap/reporters/default.timeoutwithmatch.v23.log
Normal file
18
test-tap/reporters/default.timeoutwithmatch.v23.log
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m passes needle
|
||||
---tty-stream-chunk-separator
|
||||
[31m[39m
|
||||
[31m✘ Timed out while running tests[39m
|
||||
|
||||
2 tests were pending in a.cjs
|
||||
|
||||
◌ slow needle
|
||||
◌ slow three needle
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
[90m─[39m
|
||||
|
||||
[32m1 test passed[39m
|
||||
[31m2 tests remained pending after a timeout[39m
|
||||
---tty-stream-chunk-separator
|
||||
32
test-tap/reporters/default.watch.v23.log
Normal file
32
test-tap/reporters/default.watch.v23.log
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m test [90m[2m›[22m[39m passes
|
||||
---tty-stream-chunk-separator
|
||||
[90m─[39m
|
||||
|
||||
[32m1 test passed[39m [90m[2m[17:19:12][22m[39m
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
[90m[2m────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[22m[39m
|
||||
---tty-stream-chunk-separator
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m test [90m[2m›[22m[39m passes
|
||||
---tty-stream-chunk-separator
|
||||
[90m─[39m
|
||||
|
||||
[32m1 test passed[39m [90m[2m[17:19:12][22m[39m
|
||||
[31m2 previous failures in test files that were not rerun[39m
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
[90m[2m────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[22m[39m
|
||||
---tty-stream-chunk-separator
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
[32m✔[39m test [90m[2m›[22m[39m passes
|
||||
---tty-stream-chunk-separator
|
||||
[90m─[39m
|
||||
|
||||
[32m1 test passed[39m [90m[2m[17:19:12][22m[39m
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
42
test-tap/reporters/tap.edgecases.v23.log
Normal file
42
test-tap/reporters/tap.edgecases.v23.log
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
TAP version 13
|
||||
---tty-stream-chunk-separator
|
||||
not ok 1 - ~/test-tap/fixture/report/edgecases/ast-syntax-error.cjs:3
|
||||
---
|
||||
name: SyntaxError
|
||||
message: Unexpected token 'do'
|
||||
at: 'const fn = do {'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
not ok 2 - ast-syntax-error.cjs exited with a non-zero exit code: 1
|
||||
---tty-stream-chunk-separator
|
||||
not ok 3 - No tests found in ava-import-no-test-declaration.cjs
|
||||
---tty-stream-chunk-separator
|
||||
not ok 4 - TypeError: test is not a function
|
||||
---
|
||||
name: TypeError
|
||||
message: test is not a function
|
||||
at: >-
|
||||
Object.<anonymous>
|
||||
(~/test-tap/fixture/report/edgecases/import-and-use-test-member.cjs:3:1)
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
not ok 5 - import-and-use-test-member.cjs exited with a non-zero exit code: 1
|
||||
---tty-stream-chunk-separator
|
||||
not ok 6 - No tests found in no-ava-import.cjs, make sure to import "ava" at the top of your test file
|
||||
---tty-stream-chunk-separator
|
||||
not ok 7 - Error: throws
|
||||
---
|
||||
name: Error
|
||||
message: throws
|
||||
at: 'Object.<anonymous> (~/test-tap/fixture/report/edgecases/throws.cjs:1:7)'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
not ok 8 - throws.cjs exited with a non-zero exit code: 1
|
||||
---tty-stream-chunk-separator
|
||||
|
||||
1..0
|
||||
# tests 0
|
||||
# pass 0
|
||||
# fail 8
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
17
test-tap/reporters/tap.failfast.v23.log
Normal file
17
test-tap/reporters/tap.failfast.v23.log
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
TAP version 13
|
||||
---tty-stream-chunk-separator
|
||||
not ok 1 - a › fails
|
||||
---
|
||||
name: AssertionError
|
||||
assertion: t.fail()
|
||||
message: Test failed via `t.fail()`
|
||||
at: 'ExecutionContext.fail (/lib/assert.js:287:15)'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
|
||||
1..1
|
||||
# tests 1
|
||||
# pass 0
|
||||
# fail 1
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
19
test-tap/reporters/tap.failfast2.v23.log
Normal file
19
test-tap/reporters/tap.failfast2.v23.log
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
TAP version 13
|
||||
---tty-stream-chunk-separator
|
||||
not ok 1 - a › fails
|
||||
---
|
||||
name: AssertionError
|
||||
assertion: t.fail()
|
||||
message: Test failed via `t.fail()`
|
||||
at: 'ExecutionContext.fail (/lib/assert.js:287:15)'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
# 1 test remaining in a.cjs
|
||||
---tty-stream-chunk-separator
|
||||
|
||||
1..2
|
||||
# tests 2
|
||||
# pass 0
|
||||
# fail 2
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
13
test-tap/reporters/tap.only.v23.log
Normal file
13
test-tap/reporters/tap.only.v23.log
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
TAP version 13
|
||||
---tty-stream-chunk-separator
|
||||
ok 1 - a › only
|
||||
---tty-stream-chunk-separator
|
||||
ok 2 - b › passes
|
||||
---tty-stream-chunk-separator
|
||||
|
||||
1..2
|
||||
# tests 2
|
||||
# pass 2
|
||||
# fail 0
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
258
test-tap/reporters/tap.regular.v23.log
Normal file
258
test-tap/reporters/tap.regular.v23.log
Normal file
|
|
@ -0,0 +1,258 @@
|
|||
TAP version 13
|
||||
---tty-stream-chunk-separator
|
||||
not ok 1 - TypeError: test.serial.test is not a function
|
||||
---
|
||||
name: TypeError
|
||||
message: test.serial.test is not a function
|
||||
at: 'Object.<anonymous> (~/test-tap/fixture/report/regular/bad-test-chain.cjs:3:13)'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
not ok 2 - bad-test-chain.cjs exited with a non-zero exit code: 1
|
||||
---tty-stream-chunk-separator
|
||||
not ok 3 - nested-objects › format with max depth 4
|
||||
---
|
||||
name: AssertionError
|
||||
assertion: t.deepEqual()
|
||||
details:
|
||||
'Difference (- actual, + expected):': |2-
|
||||
{
|
||||
a: {
|
||||
b: {
|
||||
foo: 'bar',
|
||||
},
|
||||
},
|
||||
+ c: {
|
||||
+ d: {
|
||||
+ e: {
|
||||
+ foo: 'bar',
|
||||
+ },
|
||||
+ },
|
||||
+ },
|
||||
}
|
||||
message: ''
|
||||
at: 'ExecutionContext.deepEqual (/lib/assert.js:339:15)'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
not ok 4 - nested-objects › format like with max depth 4
|
||||
---
|
||||
name: AssertionError
|
||||
assertion: t.like()
|
||||
details:
|
||||
'Difference (- actual, + expected):': |2-
|
||||
{
|
||||
a: {
|
||||
b: {
|
||||
- foo: 'bar',
|
||||
+ foo: 'qux',
|
||||
},
|
||||
},
|
||||
}
|
||||
message: ''
|
||||
at: 'ExecutionContext.like (/lib/assert.js:391:15)'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
# output-in-hook › before hook
|
||||
---tty-stream-chunk-separator
|
||||
# output-in-hook › before hook
|
||||
---tty-stream-chunk-separator
|
||||
# before
|
||||
---tty-stream-chunk-separator
|
||||
# output-in-hook › beforeEach hook for passing test
|
||||
---tty-stream-chunk-separator
|
||||
# beforeEach
|
||||
---tty-stream-chunk-separator
|
||||
# output-in-hook › beforeEach hook for failing test
|
||||
---tty-stream-chunk-separator
|
||||
# beforeEach
|
||||
---tty-stream-chunk-separator
|
||||
ok 5 - output-in-hook › passing test
|
||||
---tty-stream-chunk-separator
|
||||
not ok 6 - output-in-hook › failing test
|
||||
---
|
||||
name: AssertionError
|
||||
assertion: t.fail()
|
||||
message: Test failed via `t.fail()`
|
||||
at: 'ExecutionContext.fail (/lib/assert.js:287:15)'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
# output-in-hook › afterEach hook for passing test
|
||||
---tty-stream-chunk-separator
|
||||
# afterEach
|
||||
---tty-stream-chunk-separator
|
||||
# output-in-hook › afterEach.always hook for failing test
|
||||
---tty-stream-chunk-separator
|
||||
# afterEachAlways
|
||||
---tty-stream-chunk-separator
|
||||
# output-in-hook › afterEach.always hook for passing test
|
||||
---tty-stream-chunk-separator
|
||||
# afterEachAlways
|
||||
---tty-stream-chunk-separator
|
||||
# output-in-hook › cleanup
|
||||
---tty-stream-chunk-separator
|
||||
# afterAlways
|
||||
---tty-stream-chunk-separator
|
||||
ok 7 - test › skip # SKIP
|
||||
---tty-stream-chunk-separator
|
||||
not ok 8 - test › todo # TODO
|
||||
---tty-stream-chunk-separator
|
||||
ok 9 - test › passes
|
||||
---tty-stream-chunk-separator
|
||||
not ok 10 - test › fails
|
||||
---
|
||||
name: AssertionError
|
||||
assertion: t.fail()
|
||||
message: Test failed via `t.fail()`
|
||||
at: 'ExecutionContext.fail (/lib/assert.js:287:15)'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
ok 11 - test › known failure
|
||||
---tty-stream-chunk-separator
|
||||
not ok 12 - test › no longer failing
|
||||
---
|
||||
name: AssertionError
|
||||
message: >-
|
||||
Test was expected to fail, but succeeded, you should stop marking the test as
|
||||
failing
|
||||
at: 'Test.finish (/lib/test.js:633:28)'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
not ok 13 - test › logs
|
||||
# hello
|
||||
# world
|
||||
---
|
||||
name: AssertionError
|
||||
assertion: t.fail()
|
||||
message: Test failed via `t.fail()`
|
||||
at: 'ExecutionContext.fail (/lib/assert.js:287:15)'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
not ok 14 - test › formatted
|
||||
---
|
||||
name: AssertionError
|
||||
assertion: t.deepEqual()
|
||||
details:
|
||||
'Difference (- actual, + expected):': |-
|
||||
- 'foo'
|
||||
+ 'bar'
|
||||
message: ''
|
||||
at: 'ExecutionContext.deepEqual (/lib/assert.js:339:15)'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
not ok 15 - test › implementation throws non-error
|
||||
---
|
||||
name: AssertionError
|
||||
details:
|
||||
'Error thrown in test:': 'null'
|
||||
message: Error thrown in test
|
||||
at: 'Test.run (/lib/test.js:546:25)'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
not ok 16 - traces-in-t-throws › throws
|
||||
---
|
||||
name: AssertionError
|
||||
assertion: t.throws()
|
||||
details:
|
||||
'Function threw unexpected exception:': |-
|
||||
Error {
|
||||
message: 'uh-oh',
|
||||
}
|
||||
'Expected instance of:': 'Function TypeError {}'
|
||||
message: ''
|
||||
at: 'throwError (~/test-tap/fixture/report/regular/traces-in-t-throws.cjs:4:8)'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
not ok 17 - traces-in-t-throws › notThrows
|
||||
---
|
||||
name: AssertionError
|
||||
assertion: t.notThrows()
|
||||
details:
|
||||
'Function threw:': |-
|
||||
Error {
|
||||
message: 'uh-oh',
|
||||
}
|
||||
message: ''
|
||||
at: 'throwError (~/test-tap/fixture/report/regular/traces-in-t-throws.cjs:4:8)'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
not ok 18 - traces-in-t-throws › notThrowsAsync
|
||||
---
|
||||
name: AssertionError
|
||||
assertion: t.notThrowsAsync()
|
||||
details:
|
||||
'Function threw:': |-
|
||||
Error {
|
||||
message: 'uh-oh',
|
||||
}
|
||||
message: ''
|
||||
at: 'throwError (~/test-tap/fixture/report/regular/traces-in-t-throws.cjs:4:8)'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
not ok 19 - traces-in-t-throws › throwsAsync
|
||||
---
|
||||
name: AssertionError
|
||||
assertion: t.throwsAsync()
|
||||
details:
|
||||
'Function threw synchronously. Use `t.throws()` instead:': |-
|
||||
Error {
|
||||
message: 'uh-oh',
|
||||
}
|
||||
message: ''
|
||||
at: 'throwError (~/test-tap/fixture/report/regular/traces-in-t-throws.cjs:4:8)'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
not ok 20 - traces-in-t-throws › throwsAsync different error
|
||||
---
|
||||
name: AssertionError
|
||||
assertion: t.throwsAsync()
|
||||
details:
|
||||
'Returned promise rejected with unexpected exception:': |-
|
||||
Error {
|
||||
message: 'uh-oh',
|
||||
}
|
||||
'Expected instance of:': 'Function TypeError {}'
|
||||
message: ''
|
||||
at: >-
|
||||
returnRejectedPromise
|
||||
(~/test-tap/fixture/report/regular/traces-in-t-throws.cjs:8:24)
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
ok 21 - uncaught-exception › passes
|
||||
---tty-stream-chunk-separator
|
||||
not ok 22 - Error: Can’t catch me
|
||||
---
|
||||
name: Error
|
||||
message: Can’t catch me
|
||||
at: >-
|
||||
Immediate.<anonymous>
|
||||
(~/test-tap/fixture/report/regular/uncaught-exception.cjs:5:9)
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
not ok 23 - uncaught-exception.cjs exited with a non-zero exit code: 1
|
||||
---tty-stream-chunk-separator
|
||||
ok 24 - unhandled-rejection › passes
|
||||
---tty-stream-chunk-separator
|
||||
ok 25 - unhandled-rejection › unhandled non-error rejection
|
||||
---tty-stream-chunk-separator
|
||||
not ok 26 - Error: Can’t catch me
|
||||
---
|
||||
name: Error
|
||||
message: Can’t catch me
|
||||
at: 'passes (~/test-tap/fixture/report/regular/unhandled-rejection.cjs:4:17)'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
not ok 27 - unhandled-rejection
|
||||
---
|
||||
message: Non-native error
|
||||
formatted: 'null'
|
||||
...
|
||||
---tty-stream-chunk-separator
|
||||
not ok 28 - unhandled-rejection.cjs exited with a non-zero exit code: 1
|
||||
---tty-stream-chunk-separator
|
||||
|
||||
1..21
|
||||
# tests 20
|
||||
# pass 6
|
||||
# skip 1
|
||||
# fail 21
|
||||
|
||||
---tty-stream-chunk-separator
|
||||
Loading…
Reference in a new issue