Skip to content

Instantly share code, notes, and snippets.

@johnmarinelli
Last active June 27, 2018 15:43
Show Gist options
  • Save johnmarinelli/a11c60642acbd1fa32903c77fe65d5de to your computer and use it in GitHub Desktop.
Save johnmarinelli/a11c60642acbd1fa32903c77fe65d5de to your computer and use it in GitHub Desktop.
da fuck?
{
"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"
]
}
}
}
{
//...
"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