Commit e917a9a
authored
ci: add node v19 (#16443)
Node v19.0.0 has been released.
https://nodejs.org/en/blog/release/v19.0.0/
This PR adds the v19 matrix and fixes the following tests failure when using v19.0.0.
```console
% node -v
v19.0.0
% npx mocha tests/lib/shared/runtime-info.js
(snip)
1) RuntimeInfo
environment()
log and throw an error when checking for local ESLint version when returned output of command is malformed:
AssertionError: expected [Function environment] to throw error including 'Unexpected token T in JSON at positio…' but got 'Unexpected token \'T\', "This is not …'
+ expected - actual
-Unexpected token 'T', "This is not JSON" is not valid JSON
+Unexpected token T in JSON at position 0
at Context.<anonymous> (tests/lib/shared/runtime-info.js:209:20)
at process.processImmediate (node:internal/timers:471:21)
2) RuntimeInfo
environment()
log and throw an error when checking for global ESLint version when returned output of command is malformed:
AssertionError: expected [Function environment] to throw error including 'Unexpected token T in JSON at positio…' but got 'Unexpected token \'T\', "This is not …'
+ expected - actual
-Unexpected token 'T', "This is not JSON" is not valid JSON
+Unexpected token T in JSON at position 0
at Context.<anonymous> (tests/lib/shared/runtime-info.js:217:20)
at process.processImmediate (node:internal/timers:471:21)
```
This patch uses regexp to match both messages because the message has changed in v19.0.0.1 parent 740b208 commit e917a9a
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
0 commit comments