Skip to content

Commit 5218932

Browse files
Esemesekfacebook-github-bot
authored andcommittedJan 25, 2019
fix: change template to work with jest (facebook#23150)
Summary: This change is required to make `yarn test` work in newly initialized project. `Jest@23` doesn't play well with new babel, so we need to install `babel-core@^7.0.0-bridge.0` and change `.babelrc` to `babel.config.js` to make it work. This is a temporary change till `jest` releases stable `24` version. Pull Request resolved: facebook#23150 Differential Revision: D13811428 Pulled By: hramos fbshipit-source-id: 8db6b9177cd31d4a1213fb44964b05f26982bdf2
1 parent 7795a67 commit 5218932

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎template/_babelrc

-3
This file was deleted.

‎template/babel.config.js

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

0 commit comments

Comments
 (0)
Please sign in to comment.