Generate class and css without escaping characters #3087
Closed
cnx-ednilsonalbuquerque
started this conversation in
General
Replies: 1 comment
-
After some research, I found a way using the hooks: hooks: {
"tokens:created": ({ configure }) => {
configure({
formatTokenName: (path) => {
return path.join("-").replace(/\./g, "-");
},
});
},
}, But the real issue was with jest-dom. I switched to happy-dom, and it worked well without needing to format the tokens. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to change the way classes are generated? For example:
From
To
The reason I'm asking is that the escapes in the generated CSS interfere when applying styles using jest-dom, as the CSS ends up like this:
This makes it difficult to work with styles in testing environments.
Beta Was this translation helpful? Give feedback.
All reactions