-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
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
Is there any ways to get style for pseudo-class? #35
Comments
and thank you for great library! |
I'm afraid I don't think that's currently supported. If we could make it work with jest-dom that would be sweet. Then you could use this: testing-library/jest-dom#6 |
Either way, I think this would be great: expect(component).toHaveStyleRule({
'::after': {
backgroundColor: 'white',
},
}) I'm not sure how to do that though and I'm afraid I don't have the time to work on it personally. |
That's frustrating... I try to find a way, and if I succeed, I will send a PR. |
Hello! @kentcdodds Do you know if |
Im having this problem, currently unable to detect styles applied when
|
jest-glamor-react
version: v4.2.1node
version: v8.9.4npm
(oryarn
) version: v5.6.0Relevant code or config
What you did:
Try to test pseudo-class style
What happened:
No way to test it
Problem description:
Suggested solution:
Add some matchers? or add functions to the matcher?
The text was updated successfully, but these errors were encountered: