What is DOM Testing Library and its ecosystem
mainThe core of the ecosystem is DOM Testing Library, a lightweight solution for testing web pages by querying and interacting with DOM nodes. It works in environments that provide DOM APIs, such as JSDOM (often used with Jest) or in a real browser.
DOM Testing Library is wrapped to provide ergonomic APIs for various frameworks and platforms:
- React:
react-testing-library - Angular:
angular-testing-library - Vue:
vue-testing-library - React Native:
react-native-testing-library - Cypress: A plugin to use testing-library queries for end-to-end tests.