For React, I use Shallow Rendering techniques for unit testing my React components. Can I do something similar in React Native?
I\'ve followed the instructions to set
You can do this without using enzyme, just use Shallow Renderer from react-test-renderer.
enzyme
react-test-renderer
import ShallowRenderer from 'react-test-renderer/shallow'; it('renders', () => { const renderer = new ShallowRenderer(); renderer.render(); expect(wrapper).toMatchSnapshot(); });