Replies: 3 comments 1 reply
-
I don't know why you'd prompt an LLM with StyleX debug classnames, but they've been removed in the latest release anyway |
Beta Was this translation helpful? Give feedback.
-
@BMCwebdev I'm curious what you are testing. It's also not obvious to me what your end goal is but I'd be curious to learn more. Are you simply trying to ensure that class name generation, etc. is consistent between builds or something? |
Beta Was this translation helpful? Give feedback.
-
I'm using the debug classnames because they are a consistent pattern that I can rely on for unit testing only. They are not in production. Instead of testing for specific styles or snapshots, I'm content to know that when a certain behavior or logic is triggered that the appropriate classname is applied to the element. For example. Say I have a button component.
I would want to make sure in the unit test, after triggering a reason for the button to be disabled, that the classname of |
Beta Was this translation helpful? Give feedback.
-
So like everyone else I've been using AI tools more and more this past year while working. One help has been getting the first rough draft of a unit test started using AI. To that end I have saved in either memory, or instruction file, some instructions on how to write unit test for components using StyleX. I'll share a bit below. I am wondering if anyone in the community had more to share or if there was a desire to gather these someplace.
Beta Was this translation helpful? Give feedback.
All reactions