Skip to content

Commit 3374790

Browse files
eryue0220SimenB
andauthored
chore: upgrade node version (#14460)
Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
1 parent 76a47d8 commit 3374790

File tree

80 files changed

+116
-132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+116
-132
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ workflows:
5959
matrix:
6060
parameters:
6161
# For some reason, v20 fails to run yarn install…
62-
node-version: ['14', '16', '18', '19']
62+
node-version: ['16', '18']
6363
- test-jest-jasmine

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
node-version: [14.x, 16.x, 18.x, 19.x, 20.x]
15+
node-version: [16.x, 18.x, 20.x]
1616
shard: ['1/4', '2/4', '3/4', '4/4']
1717
name: Node v${{ matrix.node-version }} on ${{ inputs.os }} (${{ matrix.shard }})
1818
runs-on: ${{ inputs.os }}

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
### Chore & Maintenance
1414

15+
- `[*]` [**BREAKING**] Drop support for Node.js versions 14 and 19 ([#14460](https://github.com/jestjs/jest/pull/14460))
16+
1517
## 29.7.0
1618

1719
### Features

constraints.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ gen_enforced_field(WorkspaceCwd, 'publishConfig.access', null) :-
5757
workspace_field(WorkspaceCwd, 'private', true).
5858

5959
% Enforces the engines.node field for public workspace
60-
gen_enforced_field(WorkspaceCwd, 'engines.node', '^14.15.0 || ^16.10.0 || >=18.0.0') :-
60+
gen_enforced_field(WorkspaceCwd, 'engines.node', '^16.10.0 || ^18.12.0 || >=20.0.0') :-
6161
\+ workspace_field(WorkspaceCwd, 'private', true).
6262

6363
% Enforces the main and types field to start with ./

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@types/babel__core": "^7.1.14",
2020
"@types/babel__generator": "^7.0.0",
2121
"@types/babel__template": "^7.0.2",
22-
"@types/node": "~14.14.45",
22+
"@types/node": "^16.10.0",
2323
"@types/which": "^3.0.0",
2424
"@types/ws": "8.5.1",
2525
"@typescript-eslint/eslint-plugin": "^5.14.0",
@@ -170,10 +170,10 @@
170170
"logo": "https://opencollective.com/jest/logo.txt"
171171
},
172172
"engines": {
173-
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
173+
"node": "^16.10.0 || ^18.12.0 || >=20.0.0"
174174
},
175175
"resolutions": {
176-
"@types/node": "~14.14.45",
176+
"@types/node": "~16.18.0",
177177
"@types/react": "^18.2.21",
178178
"ansi-escapes/type-fest": "^2.0.0",
179179
"babel-jest": "workspace:^",

packages/babel-jest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@babel/core": "^7.8.0"
3636
},
3737
"engines": {
38-
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
38+
"node": "^16.10.0 || ^18.12.0 || >=20.0.0"
3939
},
4040
"publishConfig": {
4141
"access": "public"

packages/babel-jest/src/__tests__/getCacheKey.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ afterEach(() => {
2020
jest.resetModules();
2121

2222
if (process.version === 'new-node-version') {
23+
// @ts-expect-error: Testing purpose
2324
process.version = processVersion;
2425
}
2526

@@ -194,6 +195,7 @@ describe('getCacheKey', () => {
194195
test('if node version is changing', () => {
195196
// @ts-expect-error: Testing purpose
196197
delete process.version;
198+
// @ts-expect-error: Testing purpose
197199
process.version = 'new-node-version';
198200

199201
const newCacheKey = getCacheKey!(sourceText, sourcePath, transformOptions);

packages/babel-plugin-jest-hoist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"directory": "packages/babel-plugin-jest-hoist"
88
},
99
"engines": {
10-
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
10+
"node": "^16.10.0 || ^18.12.0 || >=20.0.0"
1111
},
1212
"license": "MIT",
1313
"main": "./build/index.js",

packages/babel-preset-jest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@babel/core": "^7.0.0"
2121
},
2222
"engines": {
23-
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
23+
"node": "^16.10.0 || ^18.12.0 || >=20.0.0"
2424
},
2525
"publishConfig": {
2626
"access": "public"

packages/create-jest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"prompts": "^2.0.1"
3030
},
3131
"engines": {
32-
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
32+
"node": "^16.10.0 || ^18.12.0 || >=20.0.0"
3333
},
3434
"publishConfig": {
3535
"access": "public"

0 commit comments

Comments
 (0)