Created
March 28, 2020 21:45
-
-
Save paigen11/ddf7551e83b9fbddee0152729b782b1a to your computer and use it in GitHub Desktop.
Example of how to check classes in a component while using React Testing Library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
expect(document.querySelector('.hidden')).toBeInTheDocument(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment