Skip to content

Commit

Permalink
Test with Node.js 15
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberborn committed Oct 31, 2020
1 parent dcd5831 commit c3e43bf
Show file tree
Hide file tree
Showing 22 changed files with 1,908 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: [^10.18.0, ^12.14.0, ^14.0.0]
node-version: [^10.18.0, ^12.14.0, ^14.0.0, ^15.0.0]
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"homepage": "https://avajs.dev",
"bin": "cli.js",
"engines": {
"node": ">=10.18.0 <11 || >=12.14.0 <12.17.0 || >=12.17.0 <13 || >=14.0.0"
"node": ">=10.18.0 <11 || >=12.14.0 <12.17.0 || >=12.17.0 <13 || >=14.0.0 <15 || >=15"
},
"scripts": {
"test": "xo && tsd && c8 --report=none tap && c8 --report=none --no-clean test-ava && c8 report"
Expand Down
64 changes: 64 additions & 0 deletions test-tap/reporters/mini.edgecases.v15.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
[?25l---tty-stream-chunk-separator

---tty-stream-chunk-separator
* ---tty-stream-chunk-separator
---tty-stream-chunk-separator
* ⚠ Could not parse ast-syntax-error.js for line number selection---tty-stream-chunk-separator
---tty-stream-chunk-separator
* ✖ Line numbers for ast-syntax-error.js did not match any tests---tty-stream-chunk-separator
---tty-stream-chunk-separator
* ✖ No tests found in ava-import-no-test-declaration.js---tty-stream-chunk-separator
---tty-stream-chunk-separator
* ✖ No tests found in no-ava-import.js, make sure to import "ava" at the top of your test file---tty-stream-chunk-separator
---tty-stream-chunk-separator
* ✖ Line numbers for test.js did not match any tests---tty-stream-chunk-separator
---tty-stream-chunk-separator
[?25h ✖ No tests found in no-ava-import.js, make sure to import "ava" at the top of your test file
✖ No tests found in ava-import-no-test-declaration.js
✖ No tests found in import-and-use-test-member.js
✖ No tests found in throws.js
⚠ Could not parse ast-syntax-error.js for line number selection
✖ Line numbers for ast-syntax-error.js did not match any tests
✖ Line numbers for test.js did not match any tests

─

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

import-and-use-test-member.js: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.js:3:1)
› Module._compile (node:internal/modules/cjs/loader:1083:30)
› Module.load (node:internal/modules/cjs/loader:948:32)
› Function.Module._load (node:internal/modules/cjs/loader:789:14)
› Module.require (node:internal/modules/cjs/loader:972:19)
› require (node:internal/modules/cjs/helpers:88:18)



Uncaught exception in throws.js

throws.js:1

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

Error: throws

› Object.<anonymous> (test-tap/fixture/report/edgecases/throws.js:1:7)
› Module._compile (node:internal/modules/cjs/loader:1083:30)
› Module.load (node:internal/modules/cjs/loader:948:32)
› Function.Module._load (node:internal/modules/cjs/loader:789:14)
› Module.require (node:internal/modules/cjs/loader:972:19)
› require (node:internal/modules/cjs/helpers:88:18)

─

2 uncaught exceptions
---tty-stream-chunk-separator
27 changes: 27 additions & 0 deletions test-tap/reporters/mini.failfast.v15.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[?25l---tty-stream-chunk-separator

---tty-stream-chunk-separator
* ---tty-stream-chunk-separator
---tty-stream-chunk-separator
* a › fails

1 test failed---tty-stream-chunk-separator
---tty-stream-chunk-separator
[?25h a › fails

a.js:3

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

Test failed via `t.fail()`

› test-tap/fixture/report/failfast/a.js:3:22
› processTicksAndRejections (node:internal/process/task_queues:93:5)

─

`--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/mini.failfast2.v15.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[?25l---tty-stream-chunk-separator

---tty-stream-chunk-separator
* ---tty-stream-chunk-separator
---tty-stream-chunk-separator
* a › fails

1 test failed---tty-stream-chunk-separator
---tty-stream-chunk-separator
[?25h a › fails

a.js: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.js:3:22
› processTicksAndRejections (node:internal/process/task_queues:93:5)

─

`--fail-fast` is on. At least 1 test was skipped, as well as 1 test file.
1 test failed
---tty-stream-chunk-separator
15 changes: 15 additions & 0 deletions test-tap/reporters/mini.only.v15.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[?25l---tty-stream-chunk-separator

---tty-stream-chunk-separator
* ---tty-stream-chunk-separator
---tty-stream-chunk-separator
* a › only

1 passed---tty-stream-chunk-separator
---tty-stream-chunk-separator
* b › passes

2 passed---tty-stream-chunk-separator
---tty-stream-chunk-separator
[?25h 2 tests passed
---tty-stream-chunk-separator
Loading

0 comments on commit c3e43bf

Please sign in to comment.