Skip to content

Commit

Permalink
chore!: drop support for Node.js 21 (#15118)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas committed Jul 12, 2024
1 parent f33b04e commit 697ce45
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.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: [16.x, 18.x, 20.x, 21.x, 22.x]
node-version: [16.x, 18.x, 20.x, 22.x]
name: Node v${{ matrix.node-version }}
runs-on: ${{ inputs.os }}

Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
### Chore & Maintenance

- `[*]` Increase version of `micromatch` to `^4.0.7` ([#15082](https://github.com/jestjs/jest/pull/15082))
- `[*]` [**BREAKING**] Drop support for Node.js versions 14 and 19 ([#14460](https://github.com/jestjs/jest/pull/14460))
- `[*]` [**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))
- `[*]` [**BREAKING**] Drop support for `typescript@4.3`, minimum version is now `5.0` ([#14542](https://github.com/jestjs/jest/pull/14542))
- `[*]` Depend on exact versions of monorepo dependencies instead of `^` range ([#14553](https://github.com/jestjs/jest/pull/14553))
- `[*]` [**BREAKING**] Add ESM wrapper for all of Jest's modules ([#14661](https://github.com/jestjs/jest/pull/14661))
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/__snapshots__/wrongEnv.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Wrong globals for environment on node <21 print useful error for navigator 1`] = `
exports[`Wrong globals for environment on node <=18 print useful error for navigator 1`] = `
"FAIL __tests__/node.js
✕ use navigator
○ skipped use document
Expand Down
3 changes: 2 additions & 1 deletion e2e/__tests__/wrongEnv.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ describe('Wrong globals for environment', () => {
assertFailuresAndSnapshot(['node', '-t=document']);
});

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

0 comments on commit 697ce45

Please sign in to comment.