Created
December 30, 2018 20:27
-
-
Save webschik/46d7c6773b3443c160d7bf008bbbccfe to your computer and use it in GitHub Desktop.
WebStorm template for Jest component test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {shallow} from 'enzyme'; | |
| import React from 'react'; | |
| describe('Components', () => { | |
| describe(${COMPONENT_NAME}, () => { | |
| it('should render itself [smoke test]', () => { | |
| const props = {}; | |
| const wrapper = shallow(<${COMPONENT_NAME} {...props} />); | |
| expect(wrapper).toMatchSnapshot(); | |
| }); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment