[#369] Update docs to include react-native-config-node

This commit is contained in:
mguay22 2019-07-25 12:46:33 -04:00 committed by Luan Curti
parent 0fd6fc9e8e
commit e5bd6338bb

View File

@ -218,6 +218,8 @@ When Proguard is enabled (which it is by default for Android release builds), it
## Testing
Since `react-native-config` contains native code, it cannot be run in a node.js environment (Jest, Mocha). [react-native-config-node](https://github.com/CureApp/react-native-config-node) provides a way to mock `react-native-config` for use in test runners - exactly as it is used in the actual app.
### Jest
For mocking the `Config.FOO_BAR` usage, create a mock at `__mocks__/react-native-config.js`: