Ir al contenido principal
Testing Library logo

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
Precios
No
Self-Hostable

Características

  • 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

Ventajas

  • + Encourages best practices
  • + Accessibility-focused queries
  • + Works with any framework
  • + Massive adoption
  • + Great documentation

Desventajas

  • Learning curve for query selection
  • Async testing can be tricky
  • May require jest-dom for assertions
  • Less suited for implementation testing