jest-styled-components
jest-styled-components copied to clipboard
🔧 💅 Jest utilities for Styled Components
This fixes #355 and is just #356 rebased against current main. It was a pretty straightforward rebase, just required updating the class names manually.
Hi all, I know that this issue has been posted before and the solution was to update the library but I even with the newer version I see that error...
Hello, we were having a lot of hate for our web snapshots before finding your module. One of our dev just opened a proposal to solve this and I have...
It seems like the spaces are not ignored in colour which is making this test fail. It seems similar to Issue https://github.com/styled-components/jest-styled-components/issues/89 I have tried below ``` it("should pass but...
Hi, I have tried upgrading Jest from 27 to 28 and it seems that jest-styled-components doesn't do anything after the upgrade. I have code similar to your examples ``` import...
I've just updated styled components to v5 and jest-styled-components to v7 and now any test that calls on `toHaveStyleRule` fails with the error `No style rules found on passed Component`....
There is an issue with diff output from jest when changes are found in snapshots. Specifically, it will show extraneous diffs in lines that have no changes: ```diff .c0 >...
Hi, thanks for a great library :) I've updated to Styled Components v5, and while everything seems to be fine, the snapshots have broken. I have also upgraded to beta...
"jest": "24.9.0" "jest-styled-components": "^7.0.2" "styled-components": "^5.0.0" When using the package, the tests run fine, however, when building the project (using Razzle as SSR) I get the error `Module not found:...
### Before (7.0.7) Snapshot testing renders properly the child component styled component generated `className` ```