Test against Node 22
This commit is contained in:
@@ -4,6 +4,10 @@
|
|||||||
version: 2.1
|
version: 2.1
|
||||||
|
|
||||||
executors:
|
executors:
|
||||||
|
node22:
|
||||||
|
docker:
|
||||||
|
- image: cimg/node:22.0.0
|
||||||
|
working_directory: ~/workspace
|
||||||
node20:
|
node20:
|
||||||
docker:
|
docker:
|
||||||
- image: cimg/node:20.0.0
|
- image: cimg/node:20.0.0
|
||||||
@@ -94,12 +98,20 @@ workflows:
|
|||||||
|
|
||||||
push:
|
push:
|
||||||
jobs:
|
jobs:
|
||||||
|
- build:
|
||||||
|
executor: node22
|
||||||
|
name: build_node_22
|
||||||
- build:
|
- build:
|
||||||
executor: node20
|
executor: node20
|
||||||
name: build_node_20
|
name: build_node_20
|
||||||
- build:
|
- build:
|
||||||
executor: node18
|
executor: node18
|
||||||
name: build_node_18
|
name: build_node_18
|
||||||
|
- test_node:
|
||||||
|
executor: node22
|
||||||
|
name: test_node_22
|
||||||
|
requires:
|
||||||
|
- build_node_22
|
||||||
- test_node:
|
- test_node:
|
||||||
executor: node20
|
executor: node20
|
||||||
name: test_node_20
|
name: test_node_20
|
||||||
@@ -115,6 +127,11 @@ workflows:
|
|||||||
name: test_parallel_node_18
|
name: test_parallel_node_18
|
||||||
requires:
|
requires:
|
||||||
- build_node_18
|
- build_node_18
|
||||||
|
- test_parallel:
|
||||||
|
executor: node22
|
||||||
|
name: test_parallel_node_22
|
||||||
|
requires:
|
||||||
|
- build_node_22
|
||||||
- test_parallel:
|
- test_parallel:
|
||||||
executor: node20
|
executor: node20
|
||||||
name: test_parallel_node_20
|
name: test_parallel_node_20
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ Microsoft Edge) as well as Node.
|
|||||||
|
|
||||||
| Environment | Supported versions |
|
| Environment | Supported versions |
|
||||||
|-------------------|---------------------|
|
|-------------------|---------------------|
|
||||||
| Node | 18, 20 |
|
| Node | 18, 20, 22 |
|
||||||
| Safari | 15-17 |
|
| Safari | 15-17 |
|
||||||
| Chrome | Evergreen |
|
| Chrome | Evergreen |
|
||||||
| Firefox | Evergreen, 102, 115 |
|
| Firefox | Evergreen, 102, 115 |
|
||||||
|
|||||||
@@ -179,7 +179,10 @@ describe('base helpers', function() {
|
|||||||
f2 = jasmine.createSpy('setTimeout callback for ' + (max + 1));
|
f2 = jasmine.createSpy('setTimeout callback for ' + (max + 1));
|
||||||
|
|
||||||
// Suppress printing of TimeoutOverflowWarning in node
|
// Suppress printing of TimeoutOverflowWarning in node
|
||||||
spyOn(console, 'error');
|
if (typeof process !== 'undefined' && process.emitWarning) {
|
||||||
|
spyOn(process, 'emitWarning'); // Node 22
|
||||||
|
}
|
||||||
|
spyOn(console, 'error'); // Node <22
|
||||||
|
|
||||||
let id = setTimeout(f1, max);
|
let id = setTimeout(f1, max);
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user