Skip to content

Commit

Permalink
fix: support Jest 29 (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Aug 25, 2022
1 parent 17b2551 commit 6797aff
Show file tree
Hide file tree
Showing 3 changed files with 499 additions and 359 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
node-version: [10.x, 12.x, 14.x, 16.x, 18.x]
eslint-version: [6, 7, 8]
jest-version: [25, 26, 27, 28]
jest-version: [25, 26, 27, 28, 29]
jest-watch-typeahead-version: [0.6, 1]
include:
# eslint@7 and jest@26 don't support node@8
Expand All @@ -34,6 +34,12 @@ jobs:
# jest@28 doesn't support node@10
- node-version: 10.x
jest-version: 28
# jest@29 doesn't support node@10
- node-version: 10.x
jest-version: 29
# jest@29 doesn't support node@12
- node-version: 12.x
jest-version: 29
# jest-watch-typeahead@1 doesn't support jest@25
- jest-version: 25
jest-watch-typeahead-version: 1
Expand All @@ -46,6 +52,9 @@ jobs:
# jest-watch-typeahead@0.6 doesn't support jest@28
- jest-version: 28
jest-watch-typeahead-version: 0.6
# jest-watch-typeahead@0.6 doesn't support jest@29
- jest-version: 29
jest-watch-typeahead-version: 0.6
runs-on: ubuntu-latest

steps:
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@babel/cli": "^7.10.4",
"@babel/core": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"babel-jest": "^25.1 || ^26 || ^27 || ^28",
"babel-jest": "^25.1 || ^26 || ^27 || ^28 || ^29",
"eslint": "^6 || ^7 || ^8",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-config-prettier": "^6.11.0",
Expand All @@ -42,16 +42,16 @@
"eslint-plugin-jest": "^23.17.1",
"eslint-plugin-prettier": "^3.1.4",
"execa": "^3.4.0",
"jest": "^25.1 || ^26 || ^27 || ^28",
"jest": "^25.1 || ^26 || ^27 || ^28 || ^29",
"jest-watch-select-projects": "^2.0.0",
"jest-watch-typeahead": "^0.6.4 || ^1.1.0",
"jest-watch-typeahead": "^0.6.4 || ^1.1.0 || ^2.1.1",
"prettier": "1.19.1",
"rimraf": "^3.0.2",
"semver": "^6.3.0"
},
"peerDependencies": {
"eslint": "^6 || ^7 || ^8",
"jest": "^25.1 || ^26 || ^27 || ^28"
"jest": "^25.1 || ^26 || ^27 || ^28 || ^29"
},
"prettier": {
"proseWrap": "never",
Expand Down

0 comments on commit 6797aff

Please sign in to comment.