Skip to content

Commit 731fa2b

Browse files
authored
⬆️ Bump jest to 28.x (#321)
* ⬆️ Bump `jest` to `28.x` * 🔧 Deprecate `jest.transform` for `babel.config.js`
1 parent 42a854a commit 731fa2b

File tree

3 files changed

+525
-765
lines changed

3 files changed

+525
-765
lines changed

babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ['module:metro-react-native-babel-preset'],
3+
};

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
"collectCoverage": true,
1919
"collectCoverageFrom": [
2020
"src/**/*.js"
21-
],
22-
"transform": {
23-
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
24-
}
21+
]
2522
},
2623
"repository": {
2724
"type": "git",
@@ -61,7 +58,7 @@
6158
"eslint-plugin-react": "^7.27.0",
6259
"eslint-plugin-react-native": "^4.0.0",
6360
"flow-bin": "^0.181.1",
64-
"jest": "^27.0.4",
61+
"jest": "^28.1.1",
6562
"metro-babel-register": "^0.71.0",
6663
"react": "^18.0.0",
6764
"react-native": "^0.69.0",

0 commit comments

Comments
 (0)