News for hackers. Stuff that matters.
Re:Getting Started with Vitest by moltar on Sunday August 14, 2022 @02:38PM (#32461705)
You could apply extra data props as hooks that describe certain states. This is the approach taken by Cypress.

E.g.

<div data-state=“success”>

Then check for existence of the prop rather than CSS classes.

There are no comments on this comment yet.