File tree 2 files changed +4
-2
lines changed
docs/svelte-testing-library
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ const {results} = render(YourComponent, {myProp: 'value'})
70
70
71
71
## ` cleanup `
72
72
73
- > You don't need to import or use this, it's done automagically for you with ` globals: true ` in your test config!
73
+ > You don't need to import or use this, it's done automagically for you with
74
+ > ` globals: true ` in your test config!
74
75
75
76
Unmounts the component from the container and destroys the container.
76
77
Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ npm install --save-dev @vitest/ui
46
46
npm install --save-dev @sveltejs/vite-plugin-svelte vite
47
47
```
48
48
49
- 3 . Add a ` vitest.config.ts ` configuration file to the root of your project. Add ` globals: true ` so ` cleanup() ` runs after each test.
49
+ 3 . Add a ` vitest.config.ts ` configuration file to the root of your project. Add
50
+ ` globals: true ` so ` cleanup() ` runs after each test.
50
51
51
52
``` js
52
53
import {defineConfig } from ' vitest/config'
You can’t perform that action at this time.
0 commit comments