Replies: 1 comment 2 replies
-
You can use this: https://github.com/styled-components/jest-styled-components We don't support import serializer from 'enzyme-to-json/serializer'
import { styleSheetSerializer } from "jest-styled-components/serializer"
expect.addsnapshotSerializer(serializer)
expect.addsnapshotSerializer(styleSheetSerializer) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I have a question regarding the snapshot testing. Recently I've used
React
+styled-components
and snapshots were looking like:It was very useful as any style change was failing the test with an exact highlight where the change was made.
So is it possible to add styles in a similar way to snapshots out of the box, but for Vue.js project? 🤔
Beta Was this translation helpful? Give feedback.
All reactions