Repository navigation
Griffel Jest Serializer that keeps original classnames #337
Answered
by
layershifter
Therese Seares (rese)
asked this question in
Q&A
|
@griffel/jest-serializer removes the generated class names so that tests can pass reliably even if there are CSS changes. I'm finding myself in a situation where although there are going to be visual regression tests protecting us against unintended changes, our team would still find it useful to have the original class names in our snapshot (see snippet below). Would this be a desired change or would it be an anti-pattern? If the latter, why? Would it be difficult to implement, and are there any pointers if we wanted to contribute that? |
Answered by
layershifter
Feb 20, 2023
Replies: 1 comment
|
Therese Seares (@rese) I believe that the same is discussed there #343. Let's continue there, if you don't mind 😉 |
0 replies
Answer selected by
rese
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Therese Seares (@rese) I believe that the same is discussed there #343. Let's continue there, if you don't mind 😉