Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Vitest, Jest, etc style tests #290

Open
oliviertassinari opened this issue Oct 27, 2024 · 0 comments
Open

Support Vitest, Jest, etc style tests #290

oliviertassinari opened this issue Oct 27, 2024 · 0 comments
Assignees
Labels
new feature New feature or request status: waiting for maintainer These issues haven't been looked at yet by a maintainer test

Comments

@oliviertassinari
Copy link
Member

oliviertassinari commented Oct 27, 2024

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:

From 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: -

@oliviertassinari oliviertassinari added new feature New feature or request test status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request status: waiting for maintainer These issues haven't been looked at yet by a maintainer test
Projects
None yet
Development

No branches or pull requests

2 participants