Skip to content

Commit 62621ef

Browse files
chrisbobbegnprice
authored andcommitted
jest: Add jest-expo preset, to be used in the next commit.
A bit frustratingly, we need to install react-native-web, because it's a peer dep of jest-expo, and react-dom, because that's a peer dep of react-native-web. It's likely that we'll never run any code in either module, since we don't care about the web. (Expo seems to be expanding React Native's original claim for multi-platform compatibility, namely iOS and Android, to include the web. `react-native-web` looks like a thing that lets you write React Native...for the web.) At least they don't complain if we add them as dev dependencies instead of regular dependencies. Also, run `yarn yarn-deduplicate && yarn` as prompted by `tools/test deps`.
1 parent e116c3f commit 62621ef

File tree

2 files changed

+328
-40
lines changed

2 files changed

+328
-40
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
"jest-cli": "^24.9.0",
117117
"jest-environment-jsdom": "^24.9.0",
118118
"jest-environment-jsdom-global": "^1.2.0",
119+
"jest-expo": "^37.0.0",
119120
"jest-extended": "^0.11.2",
120121
"jetifier": "^1.6.5",
121122
"lolex": "^5.1.1",
@@ -124,7 +125,9 @@
124125
"prettier-eslint": "^9.0.0",
125126
"prettier-eslint-cli": "^5.0.0",
126127
"prop-types": "^15.7.2",
128+
"react-dom": "16.9.0",
127129
"react-native-cli": "^2.0.1",
130+
"react-native-web": "^0.13.3",
128131
"redux-mock-store": "^1.5.1",
129132
"rollup": "^1.23.1",
130133
"rollup-plugin-babel": "^4.3.3",

0 commit comments

Comments
 (0)