Skip to content

Commit

Permalink
Add Node.js 21 to the test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberborn committed Oct 22, 2023
1 parent dbfba59 commit a10c989
Show file tree
Hide file tree
Showing 17 changed files with 965 additions and 2 deletions.
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]
node-version: [^18.18, ^20.8, ^21]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"type": "module",
"engines": {
"node": "^18.18 || ^20.8"
"node": "^18.18 || ^20.8 || ^21"
},
"scripts": {
"test": "./scripts/test.sh"
Expand Down
59 changes: 59 additions & 0 deletions test-tap/reporters/default.edgecases.v21.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@

---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
✘ No tests found in ava-import-no-test-declaration.cjs
---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
✘ No tests found in no-ava-import.cjs, make sure to import "ava" at the top of your test file
---tty-stream-chunk-separator
✘ Line numbers for test.cjs did not match any tests
---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
24 changes: 24 additions & 0 deletions test-tap/reporters/default.failfast.v21.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

---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
24 changes: 24 additions & 0 deletions test-tap/reporters/default.failfast2.v21.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

---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
10 changes: 10 additions & 0 deletions test-tap/reporters/default.only.v21.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

---tty-stream-chunk-separator
✔ a › only
---tty-stream-chunk-separator
✔ b › passes
---tty-stream-chunk-separator
─

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

0 comments on commit a10c989

Please sign in to comment.