We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following test fails:
import React from 'react' import styled from 'styled-components' import 'jest-styled-components' import renderer from 'react-test-renderer' describe(`colors`, () => { const Example = styled.div` color: red; ` it(`returns the correct property and value`, () => { const tree = renderer.create(<Example />).toJSON() // eslint-disable-next-line expect(tree).toHaveStyleRule(`color`, `red`) }) })
With the message:
No style rules found on passed Component
react
16.12.0
react-test-renderer
styled-components
5.0.0
jest-styled-components
7.0.0
The text was updated successfully, but these errors were encountered:
Duplicate of #294
Sorry, something went wrong.
No branches or pull requests
The following test fails:
With the message:
react
:16.12.0
react-test-renderer
:16.12.0
styled-components
:5.0.0
jest-styled-components
:7.0.0
The text was updated successfully, but these errors were encountered: