@testing-library/svelte@5.4.2
// Simple and complete Svelte testing utilities that encourage good testing practices.
$ npm install @testing-library/svelte
downloads/wk
765,400
license
MIT
version
5.4.2
published
Jun 23, 2026
What is @testing-library/svelte?
@testing-library/svelte provides utilities for testing Svelte components by rendering them in a DOM environment and querying them the way users interact with them. Developers use it to write unit, integration, and end-to-end tests that verify component behavior without relying on implementation details. It works with jsdom to simulate a browser environment and helps catch bugs in UI logic before code reaches production.
Links
Keywords
Dependencies (2)
Maintainers
testing-library-bot, kentcdodds, timdeschryver, patrickhulce, dfcook, gpx, mpeyper, mihar-22, pago, cmckinstry, thymikee, brrianalexis, jdecroock, mdjastrzebski, eps1lon, phryneas, matanbobi