Skip to content

Commit 002b3a0

Browse files
Include Node.js 22 in supported engines and test matrix
Co-authored-by: Mark Wubben <[email protected]>
1 parent ec1a8d2 commit 002b3a0

21 files changed

+1197
-3
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, ^21]
18+
node-version: [^18.18, ^20.8, ^21, ^22]
1919
os: [ubuntu-latest, windows-latest, macos-latest]
2020
steps:
2121
- uses: actions/checkout@v4

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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 || ^21"
39+
"node": "^18.18 || ^20.8 || ^21 || ^22"
4040
},
4141
"scripts": {
4242
"test": "./scripts/test.sh"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
2+
---tty-stream-chunk-separator
3+
(node:14147) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
4+
(Use `node --trace-deprecation ...` to show where the warning was created)
5+
---tty-stream-chunk-separator
6+
⚠ Could not parse ast-syntax-error.cjs for line number selection
7+
8+
SyntaxError: Unexpected token (3:11)
9+
10+
---tty-stream-chunk-separator
11+
Uncaught exception in ast-syntax-error.cjs
12+
13+
~/test-tap/fixture/report/edgecases/ast-syntax-error.cjs:3
14+
const fn = do {
15+
^^
16+
17+
SyntaxError: Unexpected token 'do'
18+
19+
---tty-stream-chunk-separator
20+
✘ ast-syntax-error.cjs exited with a non-zero exit code: 1
21+
---tty-stream-chunk-separator
22+
(node:14149) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
23+
(Use `node --trace-deprecation ...` to show where the warning was created)
24+
---tty-stream-chunk-separator
25+
✘ No tests found in ava-import-no-test-declaration.cjs
26+
---tty-stream-chunk-separator
27+
(node:14151) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
28+
(Use `node --trace-deprecation ...` to show where the warning was created)
29+
---tty-stream-chunk-separator
30+
31+
Uncaught exception in import-and-use-test-member.cjs
32+
33+
import-and-use-test-member.cjs:3
34+
35+
2:
36+
 3: test('pass', t => t.pass());
37+
4:
38+
39+
TypeError: test is not a function
40+
41+
› Object.<anonymous> (test-tap/fixture/report/edgecases/import-and-use-test-member.cjs:3:1)
42+
43+
---tty-stream-chunk-separator
44+
✘ import-and-use-test-member.cjs exited with a non-zero exit code: 1
45+
---tty-stream-chunk-separator
46+
(node:14153) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
47+
(Use `node --trace-deprecation ...` to show where the warning was created)
48+
---tty-stream-chunk-separator
49+
✘ No tests found in no-ava-import.cjs, make sure to import "ava" at the top of your test file
50+
---tty-stream-chunk-separator
51+
(node:14154) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
52+
(Use `node --trace-deprecation ...` to show where the warning was created)
53+
---tty-stream-chunk-separator
54+
✘ Line numbers for test.cjs did not match any tests
55+
---tty-stream-chunk-separator
56+
(node:14155) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
57+
(Use `node --trace-deprecation ...` to show where the warning was created)
58+
---tty-stream-chunk-separator
59+
60+
Uncaught exception in throws.cjs
61+
62+
throws.cjs:1
63+
64+
 1: throw new Error('throws');
65+
2:
66+
67+
Error: throws
68+
69+
› Object.<anonymous> (test-tap/fixture/report/edgecases/throws.cjs:1:7)
70+
71+
---tty-stream-chunk-separator
72+
✘ throws.cjs exited with a non-zero exit code: 1
73+
---tty-stream-chunk-separator
74+
─
75+
76+
3 uncaught exceptions
77+
---tty-stream-chunk-separator
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
---tty-stream-chunk-separator
3+
(node:14129) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
4+
(Use `node --trace-deprecation ...` to show where the warning was created)
5+
---tty-stream-chunk-separator
6+
✘ [fail]: a › fails Test failed via `t.fail()`
7+
---tty-stream-chunk-separator
8+
─
9+
10+
a › fails
11+
12+
a.cjs: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.cjs:3:22
21+
22+
─
23+
24+
`--fail-fast` is on. 1 test file was skipped.
25+
26+
1 test failed
27+
---tty-stream-chunk-separator
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
---tty-stream-chunk-separator
3+
(node:14130) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
4+
(Use `node --trace-deprecation ...` to show where the warning was created)
5+
---tty-stream-chunk-separator
6+
✘ [fail]: a › fails Test failed via `t.fail()`
7+
---tty-stream-chunk-separator
8+
─
9+
10+
a › fails
11+
12+
a.cjs: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.cjs:3:22
21+
22+
─
23+
24+
`--fail-fast` is on. At least 1 test was skipped, as well as 1 test file.
25+
26+
1 test failed
27+
---tty-stream-chunk-separator
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
---tty-stream-chunk-separator
3+
(node:14133) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
4+
(Use `node --trace-deprecation ...` to show where the warning was created)
5+
---tty-stream-chunk-separator
6+
✔ a › only
7+
---tty-stream-chunk-separator
8+
(node:14136) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
9+
(Use `node --trace-deprecation ...` to show where the warning was created)
10+
---tty-stream-chunk-separator
11+
✔ b › passes
12+
---tty-stream-chunk-separator
13+
─
14+
15+
2 tests passed
16+
---tty-stream-chunk-separator

0 commit comments

Comments
 (0)