1.0.5 • Published 6 years ago

@mt-testutils/expect-snapshot v1.0.5

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

expect-snapshot

This is a convencience function for rendering a React component and asserting that it matches a Jest snapshot.

Installation

npm install --save-dev @mt-testutils/expect-snapshot

Usage

import MyReactComponent from './MyReactComponent';
import expectSnapshot from '@mt-testutils/expect-snapshot';

describe('My react component', () => 
    it('renders correctly', () => expectSnapshot(<MyComponent />)
);

Change Log

Contribution Guidelines

License

MIT licensed

Copyright © 2018 mobile.de GmbH