Skip to content Skip to sidebar Skip to footer

How Can Enzyme Check For Component Visibility?

I've attached a cut down version of an issue I am having. I have a simple Checkbox which I hide using opacity : 0 depending on what is passed into the component containing the Chec

Solution 1:

You can tryout jest-dom from testing-library, but if you want to see how they implement what you want, check out their code: https://github.com/testing-library/jest-dom/blob/master/src/to-be-visible.js


Post a Comment for "How Can Enzyme Check For Component Visibility?"