Support Vitest, Jest, etc style tests #290
Labels
new feature
New feature or request
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
test
Summary
When testing components and their a11y compliance, it's frequently to rely on
getComputedStyle(element)
to check whether the element is in the a11y tree or not (jsdom has some support for this too, e.g. jsdom/jsdom#2866). Examples of reliance on this:byRole
: https://testing-library.com/docs/queries/byrole/#hiddenFrom there, I believe it's not really possible to use Pigment CSS in production without test engine coverage, hence I'm opening this issue.
Potentially, it's where #59 could maybe step in as a solution.
Examples
Motivation
This is part of the story of making Pigment CSS the default engine in Material UI. This seems to be a required step.
This was raised during a discussion at React Advanced 2024.
Search keywords: -
The text was updated successfully, but these errors were encountered: