Skip to content

Commit e23b044

Browse files
authored
Update dependencies related to tests (#3005)
## Description Updates dependencies necessary to run tests. ## Test plan Run `yarn test` in the root repository before & after
1 parent 39a8426 commit e23b044

File tree

3 files changed

+87
-213
lines changed

3 files changed

+87
-213
lines changed

jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ module.exports = {
55
"node_modules/?!(react-native-reanimated)",
66
"node_modules/?!(react-native)"
77
],
8+
modulePathIgnorePatterns: [
9+
"<rootDir>/lib/"
10+
],
811
roots: ["<rootDir>/src/"]
912
};

package.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,15 @@
6868
"invariant": "^2.2.4",
6969
"prop-types": "^15.7.2"
7070
},
71-
"jest": {
72-
"preset": "react-native",
73-
"modulePathIgnorePatterns": [
74-
"<rootDir>/lib/"
75-
]
76-
},
7771
"devDependencies": {
7872
"@babel/core": "^7.12.9",
7973
"@babel/plugin-proposal-class-properties": "^7.12.1",
8074
"@babel/preset-env": "^7.12.11",
8175
"@babel/preset-typescript": "^7.12.7",
8276
"@babel/runtime": "^7.12.5",
83-
"@react-native/babel-preset": "^0.73.19",
84-
"@testing-library/jest-native": "^4.0.4",
85-
"@testing-library/react-native": "^9.0.0",
77+
"@react-native/babel-preset": "^0.74.85",
78+
"@testing-library/jest-native": "^5.4.3",
79+
"@testing-library/react-native": "^12.5.1",
8680
"@types/hammerjs": "^2.0.38",
8781
"@types/hoist-non-react-statics": "^3.3.1",
8882
"@types/jest": "^27.0.3",
@@ -109,7 +103,7 @@
109103
"react-native-builder-bob": "^0.17.1",
110104
"react-native-reanimated": "^3.12.0",
111105
"react-native-web": "^0.11.7",
112-
"react-test-renderer": "17.0.2",
106+
"react-test-renderer": "18.2.0",
113107
"release-it": "^13.6.5",
114108
"typescript": "5.0.4"
115109
},

0 commit comments

Comments
 (0)