Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-native-mock-render-fork

TiraO7MIT0.0.7

A fork of react-native-mock-render

react, react-native, mock, testing

readme

react-native-mock-render

A fork of react-native-mock-render

Installation

npm install react-native-mock-render-fork --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.