Use workaround from...
Use workaround from https://github.com/facebook/react-native/issues/19859#issuecomment-407748189 for babel issues
.babelrc
0 → 100644
babel.config.js
deleted
100644 → 0
jest/preprocessor.js
0 → 100644
... | ... | @@ -30,7 +30,7 @@ |
".yarn/" | ||
], | ||
"transform": { | ||
"^.+\\.js$": "babel-jest" | ||
"^.+\\.js$": "<rootDir>/jest/preprocessor.js" | ||
}, | ||
"moduleNameMapper": { | ||
"react-i18next": "<rootDir>/__mocks__/react-i18next-mock.js" | ||
... | ... | @@ -56,6 +56,7 @@ |
"redux-saga": "^0.16.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/plugin-transform-runtime": "^7.0.0-beta.56", | ||
"babel-core": "7.0.0-bridge.0", | ||
"babel-eslint": "^9.0.0-beta.3", | ||
"babel-jest": "^23.4.2", | ||
... | ... | @@ -68,7 +69,6 @@ |
"eslint-plugin-react-native": "^3.2.1", | ||
"i18next-scanner": "^2.6.3", | ||
"jest": "^23.4.2", | ||
"react-native-cli": "^2.0.1", | ||
"react-native-git-upgrade": "^0.2.7", | ||
"react-test-renderer": "^16.3.0-alpha.1", | ||
"redux-mock-store": "^1.5.1", | ||
... | ... |
Please register or sign in to comment