Skip to content

Commit

Permalink
Include Node.js 22 in supported engines and test matrix
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Wubben <mark@novemberborn.net>
  • Loading branch information
lenovouser and novemberborn committed May 5, 2024
1 parent ec1a8d2 commit 002b3a0
Show file tree
Hide file tree
Showing 21 changed files with 1,197 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
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
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
@@ -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
@@ -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
@@ -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
@@ -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

0 comments on commit 002b3a0

Please sign in to comment.