react native jest snapshot

Solutions on MaxInterview for react native jest snapshot by the best coders in the world

showing results for - "react native jest snapshot"
Jenna
10 Jan 2019
1// __tests__/Intro-test.js
2import React from 'react';
3import renderer from 'react-test-renderer';
4import Intro from '../Intro';
5
6test('renders correctly', () => {
7  const tree = renderer.create(<Intro />).toJSON();
8  expect(tree).toMatchSnapshot();
9});
10
11