UNPKG

quickbuild

Version:

A mature, feature-complete application generator with an emphasis on speed

15 lines (11 loc) 379 B
import React from 'react'; import ShallowRenderer from 'react-test-renderer/shallow'; import App from '../index'; const renderer = new ShallowRenderer(); describe('<App />', () => { it('should render and match the snapshot', () => { renderer.render(<App />); const renderedOutput = renderer.getRenderOutput(); expect(renderedOutput).toMatchSnapshot(); }); });