Menu
Libraries |
Category

svelte-testing-library

Simple and complete Svelte testing utilities that encourage good testing practices.

Purpose

  • Provides lightweight testing utilities specifically for Svelte components
  • Encourages testing practices that resemble how software is actually used
  • Built on top of svelte and @testing-library/dom

Key Features

  • Supports Svelte versions 3, 4, and 5
  • Recommended to use with [Vitest](https://vitest.dev/fa-solid fa-up-right-from-square) test runner
  • Includes auto-cleanup functionality (can be disabled)
  • Provides core testing functions like render, cleanup, and setup

Documentation

Full documentation available at: [Testing Library Docs](https://testing-library.com/docs/svelte-testing-library/introfa-solid fa-up-right-from-square)

Community Support

testingsvelte

Comments