Update documentation/docs/05-misc/02-testing.md

Co-authored-by: Rich Harris <rich.harris@vercel.com>
pull/12600/head
Simon H 2 years ago committed by GitHub
parent 2575516573
commit 3ce03821e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -6,7 +6,7 @@ Testing helps you write and maintain your code and guard against regressions. Te
## Unit/Integration-testing using Vitest
Unit tests allow you to test small isolated parts of your code. Integration tests allow you to test parts of your application to see if they work together. We recommend using [Vitest](https://vitest.dev/) for these kinds of tests (this assumes you use Vite for bundling your application).
Unit tests allow you to test small isolated parts of your code. Integration tests allow you to test parts of your application to see if they work together. If you're using Vite (including via SvelteKit), we recommend using [Vitest](https://vitest.dev/).
To get started, install Vitest and JSDOM (a library that shims DOM APIs):

Loading…
Cancel
Save