Skip to content

Commit 697ce45

Browse files
authored
chore!: drop support for Node.js 21 (#15118)
1 parent f33b04e commit 697ce45

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
node-version: [16.x, 18.x, 20.x, 21.x, 22.x]
18+
node-version: [16.x, 18.x, 20.x, 22.x]
1919
name: Node v${{ matrix.node-version }}
2020
runs-on: ${{ inputs.os }}
2121

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
### Chore & Maintenance
9090

9191
- `[*]` Increase version of `micromatch` to `^4.0.7` ([#15082](https://github.com/jestjs/jest/pull/15082))
92-
- `[*]` [**BREAKING**] Drop support for Node.js versions 14 and 19 ([#14460](https://github.com/jestjs/jest/pull/14460))
92+
- `[*]` [**BREAKING**] Drop support for Node.js versions 14, 19 and 21 ([#14460](https://github.com/jestjs/jest/pull/14460), [#15118](https://github.com/jestjs/jest/pull/15118))
9393
- `[*]` [**BREAKING**] Drop support for `[email protected]`, minimum version is now `5.0` ([#14542](https://github.com/jestjs/jest/pull/14542))
9494
- `[*]` Depend on exact versions of monorepo dependencies instead of `^` range ([#14553](https://github.com/jestjs/jest/pull/14553))
9595
- `[*]` [**BREAKING**] Add ESM wrapper for all of Jest's modules ([#14661](https://github.com/jestjs/jest/pull/14661))

e2e/__tests__/__snapshots__/wrongEnv.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`Wrong globals for environment on node <21 print useful error for navigator 1`] = `
3+
exports[`Wrong globals for environment on node <=18 print useful error for navigator 1`] = `
44
"FAIL __tests__/node.js
55
✕ use navigator
66
○ skipped use document

e2e/__tests__/wrongEnv.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ describe('Wrong globals for environment', () => {
2424
assertFailuresAndSnapshot(['node', '-t=document']);
2525
});
2626

27-
onNodeVersions('<21', () => {
27+
// Node.js 18 is the last LTS version, which is missing the global 'navigator'
28+
onNodeVersions('<=18', () => {
2829
it('print useful error for navigator', () => {
2930
assertFailuresAndSnapshot(['node', '-t=navigator']);
3031
});

0 commit comments

Comments
 (0)