We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
configure eslint-plugin-testing-library and fix issues
eslint-plugin-testing-library
See mui/toolpad#3648 as an implementation example.
Could also be helpful in:
screen
-import { render } from '@testing-library/react'; +import { render, screen } from '@testing-library/react'; test('renders content correctly', async () => { - const { getByText } = render(<AppProvider>Hello world</AppProvider>); + render(<AppProvider>Hello world</AppProvider>); - expect(getByText('Hello world')).toBeTruthy(); + expect(screen.getByText('Hello world')).toBeTruthy(); }); });
For example mui/material-ui#41061 (comment)
user
@mui/material@6
@testing-library/user-event
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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: