I’ve figured out how to use react-native-config-node
with other test runners (I'm using jest) that might be a bit simpler and more generic than the method described in the README:
I installed the two modules:
npm install react-native-config-node babel-plugin-import-rename --save-dev
...and added the following config to my .babelrc:
{
"presets": ["react-native"],
"env": {
"test": {
"plugins": [
[
"import-rename",
{
"^react-native-config$": "react-native-config-node"
}
]
]
}
}
}
I am still not able to get it work? Can you help? My package.json is jest node is: