-
Notifications
You must be signed in to change notification settings - Fork 47k
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
Access CSS class name after renderIntoDocument() #3666
Comments
|
What @yaycmyk said should work. |
ah, works, thanks - wish this example was documented somewhere along Jest / TestUtils ... |
This was referenced Aug 18, 2021
This was referenced Sep 12, 2021
This was referenced May 13, 2022
This was referenced Nov 27, 2023
This was referenced Mar 22, 2024
This was referenced May 13, 2024
This was referenced May 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In my jest tests I'd like to verify the class names of the rendered elements. How can I do this best?
When I do
TestUtils.renderIntoDocument(...)
, I get the react element in the dom. And then what? How can I access the CSS class from there?The text was updated successfully, but these errors were encountered: