-
Notifications
You must be signed in to change notification settings - Fork 16
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
[code-infra] Add react-testing-library eslint plugin #173
Comments
Now that we're experimenting with |
Are they mounting multiple components on the same jsdom instance in the same JavaScript context? I would expect that Vitest uses multiple node processes, and hence it doesn't matter. Or can we assign the right jsdom instance to the screen API with a mutation? |
Vitest uses multiple processes, that works, but seems to be about 3x slower than mocha (will have to investigate further). I tried disabling their isolation but it acts too weird, even when disabling the per-file parallelism. Probably a dead end for now, yes... |
configure
eslint-plugin-testing-library
and fix issuesSee mui/toolpad#3648 as an implementation example.
Could also be helpful in:
screen
at the import level, not the mounting point level:For example mui/material-ui#41061 (comment)
user
at the import level, not the mounting point level: [core] Support@mui/material@6
peer dependency mui-x#14142 (comment). Actually maybe not: [code-infra] Optimize@testing-library/user-event
material-ui#43804 (comment).The text was updated successfully, but these errors were encountered: