Skip to content

Instantly share code, notes, and snippets.

@sstur
Created February 3, 2020 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sstur/c55effbded26a27b193deb33d3ad70b3 to your computer and use it in GitHub Desktop.
Save sstur/c55effbded26a27b193deb33d3ad70b3 to your computer and use it in GitHub Desktop.
import 'react-native';
import React from 'react';
import App from '../App';
// Note: test renderer must be required after react-native.
import { createRenderer } from 'react-test-renderer/shallow';
it('should render correctly', () => {
let renderer = createRenderer();
renderer.render(<App />);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment