Skip to content

Commit d7d25b0

Browse files
authored
fix: Bump Jest to 29.x and drop support for Node.js 12.x (#233)
* Bump Jest to 29.x * Don't test with Node.js 12.x BREAKING CHANGE: Drops support for Node.js 12x. Updates Jest to 29.x
1 parent ce96bf4 commit d7d25b0

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

.github/workflows/validate.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
os: [ubuntu-latest, windows-latest]
20-
node: [12.22.0, 12, 14.17.0, 14, 16.10.0, 16, 18]
20+
node: [14.17.0, 14, 16.10.0, 16, 18]
2121
runs-on: ${{ matrix.os }}
2222
steps:
2323
- name: 🛑 Cancel Previous Runs

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@
7070
"@rollup/plugin-json": "^4.1.0",
7171
"@rollup/plugin-node-resolve": "^13.3.0",
7272
"@rollup/plugin-replace": "^4.0.0",
73-
"@types/jest": "^27.5.2",
73+
"@types/jest": "^29.4.0",
7474
"arrify": "^2.0.1",
75-
"babel-jest": "^28.1.3",
75+
"babel-jest": "^29.4.1",
7676
"babel-plugin-macros": "^3.1.0",
7777
"babel-plugin-minify-dead-code-elimination": "^0.5.2",
7878
"babel-plugin-module-resolver": "^4.1.0",
@@ -92,11 +92,11 @@
9292
"glob": "^8.0.3",
9393
"husky": "^4.3.8",
9494
"is-ci": "^3.0.1",
95-
"jest": "^28.1.3",
96-
"jest-environment-jsdom": "^28.1.3",
95+
"jest": "^29.4.1",
96+
"jest-environment-jsdom": "^29.4.1",
9797
"jest-serializer-path": "^0.1.15",
9898
"jest-snapshot-serializer-raw": "^1.2.0",
99-
"jest-watch-typeahead": "^1.1.0",
99+
"jest-watch-typeahead": "^2.2.2",
100100
"lint-staged": "^12.5.0",
101101
"lodash.camelcase": "^4.3.0",
102102
"lodash.has": "^4.5.2",
@@ -118,7 +118,7 @@
118118
"slash": "^3.0.0"
119119
},
120120
"engines": {
121-
"node": "^12.22.0 || ^14.17.0 || ^16.10.0 || >=17.0.0",
121+
"node": "^14.17.0 || ^16.10.0 || >=17.0.0",
122122
"npm": ">=6"
123123
}
124124
}

src/__tests__/__snapshots__/index.js.snap

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,27 @@ exports[`format calls node with the script path and args including inspect-brk a
44
55
exports[`format calls node with the script path and args: format script 1`] = `node <PROJECT_ROOT>/src/scripts/test.js --no-watch`;
66
7-
exports[`format does not log for other signals: format signal 1`] = `Array []`;
7+
exports[`format does not log for other signals: format signal 1`] = `[]`;
88
99
exports[`format logs for SIGKILL signal: format signal 1`] = `
10-
Array [
11-
Array [
10+
[
11+
[
1212
The script "lint" failed because the process exited too early. This probably means the system ran out of memory or someone called \`kill -9\` on the process.,
1313
],
1414
]
1515
`;
1616
1717
exports[`format logs for SIGTERM signal: format signal 1`] = `
18-
Array [
19-
Array [
18+
[
19+
[
2020
The script "build" failed because the process exited too early. Someone might have called \`kill\` or \`killall\`, or the system could be shutting down.,
2121
],
2222
]
2323
`;
2424
2525
exports[`format logs help with no args: format snapshotLog 1`] = `
26-
Array [
27-
Array [
26+
[
27+
[
2828
2929
Usage: ../ [script] [--flags]
3030

src/__tests__/__snapshots__/utils.js.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`getConcurrentlyArgs gives good args to pass to concurrently 1`] = `
4-
Array [
4+
[
55
--kill-others-on-fail,
66
--prefix,
77
[{name}],

0 commit comments

Comments
 (0)