Open daangnDylan opened 3 years ago
Just a heads up that there's a discussion on this topic from a bit earlier as well
@daangnDylan I don't know your use case to the fullest, though I'd highly suggest not testing the implementation details.
I'd advise trying toBeVisible
?
.not.toBeVisible()
It should work I hope: https://github.com/testing-library/jest-dom#tobevisible
That way you are testing it from the user's perspective :clap: :smile: :blue_heart: :sunglasses: :rocket:
@tigerabrodi I know what you mean, but the problem is just PoC of jsdom error. Otherwise, I appreciate your advice. thanks
I have the same error, create a issue about this too...
i create the same component with styled component and make the same test and passed.
when you see the computed styles the styled components appear the correct styles.
I have the same error, and i need to test the css, it seems that the stitches team is not paying attention to these errors
Bug report
Describe the bug
It seems that stitches can not inject styles into JSDOM.
To Reproduce
But if add inline style, it works well.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Package version