This is a convencience function for rendering a React component and asserting that it matches a Jest snapshot.
npm install --save-dev @mt-testutils/expect-snapshot
import MyReactComponent from './MyReactComponent';
import expectSnapshot from '@mt-testutils/expect-snapshot';
describe('My react component', () =>
it('renders correctly', () => expectSnapshot(<MyComponent />)
);
- See CHANGELOG.md
- See CONTRIBUTING.md
Copyright © 2018 mobile.de GmbH