Testing-Library

Testing React using a lightweight virtual DOM.

Testing Library is a lightweight and simple testing library for testing frontend code, and libraries like React and Vue. It gives us a couple key functions for adding and removing our components from a virtual DOM, and checking the contents of the items we render. The core library is built for Vanilla JS (without a framework) but there are addon utility functions for testing React and Vue. The documents for the library can be found here.