From a40ae7456f12f117cdab0edfbad937a8ff3fd56c Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 25 Jul 2024 15:46:30 -0400 Subject: [PATCH 1/3] Update documentation/docs/05-misc/02-testing.md --- documentation/docs/05-misc/02-testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/05-misc/02-testing.md b/documentation/docs/05-misc/02-testing.md index b521c9915e..b0b2c884a6 100644 --- a/documentation/docs/05-misc/02-testing.md +++ b/documentation/docs/05-misc/02-testing.md @@ -4,7 +4,7 @@ title: Testing Testing helps you write and maintain your code and guard against regressions. Testing frameworks help you with that, allowing you to describe assertions or expectations about how your code should behave. Svelte is unopinionated about which testing framework you use, so you can write unit tests, integration tests, and end-to-end tests using solutions like Vitest, Jasmine, Cypress and Playwright. -## Unit/Integration tests using Vitest +## Unit and 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. If you're using Vite (including via SvelteKit), we recommend using [Vitest](https://vitest.dev/). From f913745b2f443ac5d874e59c006ebbe678c711be Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 25 Jul 2024 15:47:35 -0400 Subject: [PATCH 2/3] Update documentation/docs/05-misc/02-testing.md Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> --- documentation/docs/05-misc/02-testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/05-misc/02-testing.md b/documentation/docs/05-misc/02-testing.md index b0b2c884a6..8247ad4804 100644 --- a/documentation/docs/05-misc/02-testing.md +++ b/documentation/docs/05-misc/02-testing.md @@ -8,7 +8,7 @@ Testing helps you write and maintain your code and guard against regressions. Te 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): +To get started, install Vitest and jsdom (a library that shims DOM APIs): ```bash npm install -D vitest jsdom From fd68c0c6bf5aa6d84455fb66e7b8c659808b1485 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 25 Jul 2024 15:48:01 -0400 Subject: [PATCH 3/3] Update documentation/docs/05-misc/02-testing.md --- documentation/docs/05-misc/02-testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/05-misc/02-testing.md b/documentation/docs/05-misc/02-testing.md index 8247ad4804..50d1642208 100644 --- a/documentation/docs/05-misc/02-testing.md +++ b/documentation/docs/05-misc/02-testing.md @@ -2,7 +2,7 @@ title: Testing --- -Testing helps you write and maintain your code and guard against regressions. Testing frameworks help you with that, allowing you to describe assertions or expectations about how your code should behave. Svelte is unopinionated about which testing framework you use, so you can write unit tests, integration tests, and end-to-end tests using solutions like Vitest, Jasmine, Cypress and Playwright. +Testing helps you write and maintain your code and guard against regressions. Testing frameworks help you with that, allowing you to describe assertions or expectations about how your code should behave. Svelte is unopinionated about which testing framework you use — you can write unit tests, integration tests, and end-to-end tests using solutions like Vitest, Jasmine, Cypress and Playwright. ## Unit and integration testing using Vitest