Skip to content

Commit d5832ce

Browse files
committed
Test with Node.js 24
1 parent fabd6b4 commit d5832ce

17 files changed

+969
-2
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
node-version: [^18.18, ^20.8, ^22]
18+
node-version: [^18.18, ^20.8, ^22, ^24]
1919
os: [ubuntu-latest, windows-latest, macos-latest]
2020
steps:
2121
- uses: actions/checkout@v4

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
"type": "module",
3838
"engines": {
39-
"node": "^18.18 || ^20.8 || ^22 || >=23"
39+
"node": "^18.18 || ^20.8 || ^22 || ^23 || >=24"
4040
},
4141
"scripts": {
4242
"test": "./scripts/test.sh"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
2+
---tty-stream-chunk-separator
3+
⚠ Could not parse ast-syntax-error.cjs for line number selection
4+
5+
SyntaxError: Unexpected token (3:11)
6+
7+
---tty-stream-chunk-separator
8+
Uncaught exception in ast-syntax-error.cjs
9+
10+
~/test-tap/fixture/report/edgecases/ast-syntax-error.cjs:3
11+
const fn = do {
12+
^^
13+
14+
SyntaxError: Unexpected token 'do'
15+
16+
---tty-stream-chunk-separator
17+
✘ ast-syntax-error.cjs exited with a non-zero exit code: 1
18+
---tty-stream-chunk-separator
19+
✘ No tests found in ava-import-no-test-declaration.cjs
20+
---tty-stream-chunk-separator
21+
22+
Uncaught exception in import-and-use-test-member.cjs
23+
24+
import-and-use-test-member.cjs:3
25+
26+
2:
27+
 3: test('pass', t => t.pass());
28+
4:
29+
30+
TypeError: test is not a function
31+
32+
› Object.<anonymous> (test-tap/fixture/report/edgecases/import-and-use-test-member.cjs:3:1)
33+
34+
---tty-stream-chunk-separator
35+
✘ import-and-use-test-member.cjs exited with a non-zero exit code: 1
36+
---tty-stream-chunk-separator
37+
✘ No tests found in no-ava-import.cjs, make sure to import "ava" at the top of your test file
38+
---tty-stream-chunk-separator
39+
✘ Line numbers for test.cjs did not match any tests
40+
---tty-stream-chunk-separator
41+
42+
Uncaught exception in throws.cjs
43+
44+
throws.cjs:1
45+
46+
 1: throw new Error('throws');
47+
2:
48+
49+
Error: throws
50+
51+
› Object.<anonymous> (test-tap/fixture/report/edgecases/throws.cjs:1:7)
52+
53+
---tty-stream-chunk-separator
54+
✘ throws.cjs exited with a non-zero exit code: 1
55+
---tty-stream-chunk-separator
56+
─
57+
58+
3 uncaught exceptions
59+
---tty-stream-chunk-separator
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
---tty-stream-chunk-separator
3+
✘ [fail]: a › fails Test failed via `t.fail()`
4+
---tty-stream-chunk-separator
5+
─
6+
7+
a › fails
8+
9+
a.cjs:3
10+
11+
2:
12+
 3: test('fails', t => t.fail());
13+
4:
14+
15+
Test failed via `t.fail()`
16+
17+
› test-tap/fixture/report/failfast/a.cjs:3:22
18+
19+
─
20+
21+
`--fail-fast` is on. 1 test file was skipped.
22+
23+
1 test failed
24+
---tty-stream-chunk-separator
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
---tty-stream-chunk-separator
3+
✘ [fail]: a › fails Test failed via `t.fail()`
4+
---tty-stream-chunk-separator
5+
─
6+
7+
a › fails
8+
9+
a.cjs:3
10+
11+
2:
12+
 3: test('fails', t => t.fail()); 
13+
4: test('passes', t => t.pass());
14+
15+
Test failed via `t.fail()`
16+
17+
› test-tap/fixture/report/failfast2/a.cjs:3:22
18+
19+
─
20+
21+
`--fail-fast` is on. At least 1 test was skipped, as well as 1 test file.
22+
23+
1 test failed
24+
---tty-stream-chunk-separator
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
---tty-stream-chunk-separator
3+
✔ a › only
4+
---tty-stream-chunk-separator
5+
✔ b › passes
6+
---tty-stream-chunk-separator
7+
─
8+
9+
2 tests passed
10+
---tty-stream-chunk-separator

0 commit comments

Comments
 (0)