mirror of
https://github.com/status-im/react-native-config.git
synced 2025-02-28 23:10:44 +00:00
[#369] Update docs to include react-native-config-node
This commit is contained in:
parent
0fd6fc9e8e
commit
e5bd6338bb
@ -218,6 +218,8 @@ When Proguard is enabled (which it is by default for Android release builds), it
|
|||||||
|
|
||||||
## Testing
|
## 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
|
### Jest
|
||||||
|
|
||||||
For mocking the `Config.FOO_BAR` usage, create a mock at `__mocks__/react-native-config.js`:
|
For mocking the `Config.FOO_BAR` usage, create a mock at `__mocks__/react-native-config.js`:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user