Revert "Remove babel preset (its already dependency anyway) and babelrc to use Metro defaults"

This reverts commit 7e61f433ef.
This commit is contained in:
Lorenzo Sciandra
2018-08-13 21:38:21 +01:00
parent 7e61f433ef
commit be136a000f
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ function generateProject(destinationRoot, newProjectName, options) {
});
}
if (!options['skip-jest']) {
const jestDeps = `jest babel-jest react-test-renderer@${reactVersion}`;
const jestDeps = `jest babel-jest babel-preset-react-native@^5 react-test-renderer@${reactVersion}`;
if (yarnVersion) {
console.log('Adding Jest...');
execSync(`yarn add ${jestDeps} --dev --exact`, {stdio: 'inherit'});
+3
View File
@@ -0,0 +1,3 @@
{
"presets": ["react-native"]
}