Created
February 17, 2019 18:40
-
-
Save viclotana/e4801eff4dff4dd777999578640a5fa7 to your computer and use it in GitHub Desktop.
This file contains 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 React from 'react' | |
import styled from 'styled-components' | |
import renderer from 'react-test-renderer' | |
import 'jest-styled-components' | |
const Button = styled.button` | |
color: red; | |
` | |
test('it works', () => { | |
const tree = renderer.create(<Button />).toJSON() | |
expect(tree).toMatchSnapshot() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment