Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable node 22 support #3328

Merged
merged 4 commits into from
May 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [^18.18, ^20.8, ^21]
node-version: [^18.18, ^20.8, ^21, ^22]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"type": "module",
"engines": {
"node": "^18.18 || ^20.8 || ^21"
"node": "^18.18 || ^20.8 || ^21 || ^22"
},
"scripts": {
"test": "./scripts/test.sh"
Expand Down
77 changes: 77 additions & 0 deletions test-tap/reporters/default.edgecases.v22.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@

---tty-stream-chunk-separator
(node:14147) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
---tty-stream-chunk-separator
⚠ Could not parse ast-syntax-error.cjs for line number selection

SyntaxError: Unexpected token (3:11)

---tty-stream-chunk-separator
Uncaught exception in ast-syntax-error.cjs

~/test-tap/fixture/report/edgecases/ast-syntax-error.cjs:3
const fn = do {
^^

SyntaxError: Unexpected token 'do'

---tty-stream-chunk-separator
✘ ast-syntax-error.cjs exited with a non-zero exit code: 1
---tty-stream-chunk-separator
(node:14149) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
---tty-stream-chunk-separator
✘ No tests found in ava-import-no-test-declaration.cjs
---tty-stream-chunk-separator
(node:14151) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
---tty-stream-chunk-separator

Uncaught exception in import-and-use-test-member.cjs

import-and-use-test-member.cjs:3

2:
 3: test('pass', t => t.pass());
4:

TypeError: test is not a function

› Object.<anonymous> (test-tap/fixture/report/edgecases/import-and-use-test-member.cjs:3:1)

---tty-stream-chunk-separator
✘ import-and-use-test-member.cjs exited with a non-zero exit code: 1
---tty-stream-chunk-separator
(node:14153) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
---tty-stream-chunk-separator
✘ No tests found in no-ava-import.cjs, make sure to import "ava" at the top of your test file
---tty-stream-chunk-separator
(node:14154) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
---tty-stream-chunk-separator
✘ Line numbers for test.cjs did not match any tests
---tty-stream-chunk-separator
(node:14155) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
---tty-stream-chunk-separator

Uncaught exception in throws.cjs

throws.cjs:1

 1: throw new Error('throws');
2:

Error: throws

› Object.<anonymous> (test-tap/fixture/report/edgecases/throws.cjs:1:7)

---tty-stream-chunk-separator
✘ throws.cjs exited with a non-zero exit code: 1
---tty-stream-chunk-separator
─

3 uncaught exceptions
---tty-stream-chunk-separator
27 changes: 27 additions & 0 deletions test-tap/reporters/default.failfast.v22.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

---tty-stream-chunk-separator
(node:14129) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
---tty-stream-chunk-separator
✘ [fail]: a › fails Test failed via `t.fail()`
---tty-stream-chunk-separator
─

a › fails

a.cjs:3

2:
 3: test('fails', t => t.fail());
4:

Test failed via `t.fail()`

› test-tap/fixture/report/failfast/a.cjs:3:22

─

`--fail-fast` is on. 1 test file was skipped.

1 test failed
---tty-stream-chunk-separator
27 changes: 27 additions & 0 deletions test-tap/reporters/default.failfast2.v22.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

---tty-stream-chunk-separator
(node:14130) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
---tty-stream-chunk-separator
✘ [fail]: a › fails Test failed via `t.fail()`
---tty-stream-chunk-separator
─

a › fails

a.cjs:3

2:
 3: test('fails', t => t.fail()); 
4: test('passes', t => t.pass());

Test failed via `t.fail()`

› test-tap/fixture/report/failfast2/a.cjs:3:22

─

`--fail-fast` is on. At least 1 test was skipped, as well as 1 test file.

1 test failed
---tty-stream-chunk-separator
16 changes: 16 additions & 0 deletions test-tap/reporters/default.only.v22.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

---tty-stream-chunk-separator
(node:14133) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
---tty-stream-chunk-separator
✔ a › only
---tty-stream-chunk-separator
(node:14136) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
---tty-stream-chunk-separator
✔ b › passes
---tty-stream-chunk-separator
─

2 tests passed
---tty-stream-chunk-separator
Loading
Loading