Last active
June 27, 2018 15:43
-
-
Save johnmarinelli/a11c60642acbd1fa32903c77fe65d5de to your computer and use it in GitHub Desktop.
da fuck?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"presets": ["react-native"], | |
"plugins": [ | |
[ | |
"module-resolver", | |
{ | |
"alias": { | |
"@assets": "./assets", | |
"@src": "./src", | |
"@components": "./src/components", | |
"@lib": "./src/lib", | |
"@actions": "./src/actions", | |
"@reducers": "./src/reducers", | |
"@config": "./src/config", | |
"@acceptance": "./__cavy__/acceptance", | |
}, | |
"extensions": [".js", ".ios.js", ".android.js"], | |
}, | |
"transform-regenerator" | |
] | |
], | |
"env": { | |
"test": { | |
"presets": ["react-native"], | |
"plugins": [ | |
"transform-class-properties", | |
"transform-es2015-modules-commonjs", | |
"@babel/plugin-proposal-object-rest-spread", | |
"@babel/plugin-transform-destructuring" | |
] | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
//... | |
"jest": { | |
"verbose": true, | |
"preset": "react-native", | |
"transform": { | |
"^.+\\.jsx?$": "babel-jest" | |
}, | |
"transformIgnorePatterns": [ | |
"node_modules/(?!(react-native|react-native-elements|react-native-vector-icons|react-navigation|react-native-safe-area-view|react-native-tab-view|react-native-config)/)" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment