:chipmunk: Simple and complete Svelte DOM testing utilities that encourage good testing practices
The svelte-testing-library is a lightweight solution for testing Svelte components. It provides utility functions on top of svelte and dom-testing-library to encourage better testing practices. By writing tests that resemble the way the software is used, users can have more confidence in their testing. The library is distributed via npm and has peerDependencies for svelte >= 3. It also suggests installing @testing-library/jest-dom for custom jest matchers. The documentation for the library can be found on the Testing Library website, and contributions are welcome.
To install the svelte-testing-library, follow these steps:
npm install --save-dev svelte-testing-library
npm install --save-dev @testing-library/jest-dom
The svelte-testing-library is a lightweight solution for testing Svelte components. It provides utility functions on top of svelte and dom-testing-library to encourage better testing practices. The library can be easily installed via npm, and it also suggests installing @testing-library/jest-dom for custom jest matchers. Documentation for the library is available on the Testing Library website, and contributions from various contributors are welcome.