Skip to content

Commit d655a32

Browse files
yacinehmitobrentvatne
authored andcommitted
Add jest to devDependencies when ejecting (expo#553)
Solves expo#548.
1 parent 77764f3 commit d655a32

File tree

1 file changed

+3
-0
lines changed
  • react-native-scripts/src/scripts

1 file changed

+3
-0
lines changed

react-native-scripts/src/scripts/eject.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ from \`babel-preset-expo\` to \`babel-preset-react-native-stage-0/decorator-supp
196196
pkgJson.scripts.start = 'react-native start';
197197
pkgJson.scripts.ios = 'react-native run-ios';
198198
pkgJson.scripts.android = 'react-native run-android';
199+
pkgJson.scripts.test = 'jest';
200+
201+
newDevDependencies.push('jest');
199202

200203
if (pkgJson.jest.preset === 'jest-expo') {
201204
pkgJson.jest.preset = 'react-native';

0 commit comments

Comments
 (0)