How to test a className with Jest and React Testing Library
When testing JavaScript applications, one of the most common checks I see is if an element has a specific class or an element with some class has some text. Think of an Alert like this: Checks like these with Enzyme were pretty straightforward to accomplish: But what if you’re using React Testing Library? One of…