react-native-mocker
v0.0.12
Published
A fork of react-native-mock that renders components
Downloads
98
Maintainers
Readme
react-native-mock-render
A fork of react-native-mock that renders components
Requirements
- Node.js 4+
- The latest version of react-native
Installation
npm i react-native-mock-render --save-dev
/* file-that-runs-before-all-of-my-tests.js */
// This will mutate `react-native`'s require cache with `react-native-mock`'s.
require('react-native-mock-render/mock'); // <-- side-effects!!!
Why?
We wanted to be able deeply render React Native components in our integration tests and already used react-native-mock
.
Contributors
react-native-mock Core Contributors
- Jake Howard
- Leland Richardson (Original Creator)