File size: 379 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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();
});
});
|