Skip to content

Commit c3e43bf

Browse files
committed
Test with Node.js 15
1 parent dcd5831 commit c3e43bf

22 files changed

+1908
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
node-version: [^10.18.0, ^12.14.0, ^14.0.0]
18+
node-version: [^10.18.0, ^12.14.0, ^14.0.0, ^15.0.0]
1919
os: [ubuntu-latest, windows-latest]
2020
steps:
2121
- uses: actions/checkout@v1

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"homepage": "https://avajs.dev",
88
"bin": "cli.js",
99
"engines": {
10-
"node": ">=10.18.0 <11 || >=12.14.0 <12.17.0 || >=12.17.0 <13 || >=14.0.0"
10+
"node": ">=10.18.0 <11 || >=12.14.0 <12.17.0 || >=12.17.0 <13 || >=14.0.0 <15 || >=15"
1111
},
1212
"scripts": {
1313
"test": "xo && tsd && c8 --report=none tap && c8 --report=none --no-clean test-ava && c8 report"
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
[?25l---tty-stream-chunk-separator
2+
3+
---tty-stream-chunk-separator
4+
* ---tty-stream-chunk-separator
5+
---tty-stream-chunk-separator
6+
* ⚠ Could not parse ast-syntax-error.js for line number selection---tty-stream-chunk-separator
7+
---tty-stream-chunk-separator
8+
* ✖ Line numbers for ast-syntax-error.js did not match any tests---tty-stream-chunk-separator
9+
---tty-stream-chunk-separator
10+
* ✖ No tests found in ava-import-no-test-declaration.js---tty-stream-chunk-separator
11+
---tty-stream-chunk-separator
12+
* ✖ No tests found in no-ava-import.js, make sure to import "ava" at the top of your test file---tty-stream-chunk-separator
13+
---tty-stream-chunk-separator
14+
* ✖ Line numbers for test.js did not match any tests---tty-stream-chunk-separator
15+
---tty-stream-chunk-separator
16+
[?25h ✖ No tests found in no-ava-import.js, make sure to import "ava" at the top of your test file
17+
✖ No tests found in ava-import-no-test-declaration.js
18+
✖ No tests found in import-and-use-test-member.js
19+
✖ No tests found in throws.js
20+
⚠ Could not parse ast-syntax-error.js for line number selection
21+
✖ Line numbers for ast-syntax-error.js did not match any tests
22+
✖ Line numbers for test.js did not match any tests
23+
24+
─
25+
26+
Uncaught exception in import-and-use-test-member.js
27+
28+
import-and-use-test-member.js:3
29+
30+
2:
31+
 3: test('pass', t => t.pass());
32+
4:
33+
34+
TypeError: test is not a function
35+
36+
› Object.<anonymous> (test-tap/fixture/report/edgecases/import-and-use-test-member.js:3:1)
37+
› Module._compile (node:internal/modules/cjs/loader:1083:30)
38+
› Module.load (node:internal/modules/cjs/loader:948:32)
39+
› Function.Module._load (node:internal/modules/cjs/loader:789:14)
40+
› Module.require (node:internal/modules/cjs/loader:972:19)
41+
› require (node:internal/modules/cjs/helpers:88:18)
42+
43+
44+
45+
Uncaught exception in throws.js
46+
47+
throws.js:1
48+
49+
 1: throw new Error('throws');
50+
2:
51+
52+
Error: throws
53+
54+
› Object.<anonymous> (test-tap/fixture/report/edgecases/throws.js:1:7)
55+
› Module._compile (node:internal/modules/cjs/loader:1083:30)
56+
› Module.load (node:internal/modules/cjs/loader:948:32)
57+
› Function.Module._load (node:internal/modules/cjs/loader:789:14)
58+
› Module.require (node:internal/modules/cjs/loader:972:19)
59+
› require (node:internal/modules/cjs/helpers:88:18)
60+
61+
─
62+
63+
2 uncaught exceptions
64+
---tty-stream-chunk-separator
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[?25l---tty-stream-chunk-separator
2+
3+
---tty-stream-chunk-separator
4+
* ---tty-stream-chunk-separator
5+
---tty-stream-chunk-separator
6+
* a › fails
7+
8+
1 test failed---tty-stream-chunk-separator
9+
---tty-stream-chunk-separator
10+
[?25h a › fails
11+
12+
a.js:3
13+
14+
2:
15+
 3: test('fails', t => t.fail());
16+
4:
17+
18+
Test failed via `t.fail()`
19+
20+
› test-tap/fixture/report/failfast/a.js:3:22
21+
› processTicksAndRejections (node:internal/process/task_queues:93:5)
22+
23+
─
24+
25+
`--fail-fast` is on. 1 test file was skipped.
26+
1 test failed
27+
---tty-stream-chunk-separator
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[?25l---tty-stream-chunk-separator
2+
3+
---tty-stream-chunk-separator
4+
* ---tty-stream-chunk-separator
5+
---tty-stream-chunk-separator
6+
* a › fails
7+
8+
1 test failed---tty-stream-chunk-separator
9+
---tty-stream-chunk-separator
10+
[?25h a › fails
11+
12+
a.js:3
13+
14+
2:
15+
 3: test('fails', t => t.fail()); 
16+
4: test('passes', t => t.pass());
17+
18+
Test failed via `t.fail()`
19+
20+
› test-tap/fixture/report/failfast2/a.js:3:22
21+
› processTicksAndRejections (node:internal/process/task_queues:93:5)
22+
23+
─
24+
25+
`--fail-fast` is on. At least 1 test was skipped, as well as 1 test file.
26+
1 test failed
27+
---tty-stream-chunk-separator

test-tap/reporters/mini.only.v15.log

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[?25l---tty-stream-chunk-separator
2+
3+
---tty-stream-chunk-separator
4+
* ---tty-stream-chunk-separator
5+
---tty-stream-chunk-separator
6+
* a › only
7+
8+
1 passed---tty-stream-chunk-separator
9+
---tty-stream-chunk-separator
10+
* b › passes
11+
12+
2 passed---tty-stream-chunk-separator
13+
---tty-stream-chunk-separator
14+
[?25h 2 tests passed
15+
---tty-stream-chunk-separator

0 commit comments

Comments
 (0)