Testing Library
Simple and complete testing utilities
Testing Library is a family of testing utilities that encourage good testing practices by testing components the way users interact with them. It includes React Testing Library, Vue Testing Library, and DOM Testing Library as the core.
19.0k
GitHub Stars
free
Preise
No
Self-Hostable
Funktionen
- ✓ DOM Testing Library (core)
- ✓ React Testing Library
- ✓ Vue Testing Library
- ✓ Angular Testing Library
- ✓ Svelte Testing Library
- ✓ User-centric queries
- ✓ Accessibility-first approach
- ✓ Framework agnostic core
- ✓ Jest-dom matchers
- ✓ User-event simulation
Vorteile
- + Encourages best practices
- + Accessibility-focused queries
- + Works with any framework
- + Massive adoption
- + Great documentation
Nachteile
- − Learning curve for query selection
- − Async testing can be tricky
- − May require jest-dom for assertions
- − Less suited for implementation testing