Anything you can render to the DOM, you can test with dom-testing-library. This repo is a bunch of simple examples of using dom-testing-library to test a Counter component in various frameworks. If your framework of choice is not listed here, please add it!…
Source: https://github.com/kentcdodds/dom-testing-library-with-anything