Skip to content

Commit 9ccc340

Browse files
committed
vitest setup
1 parent 55b0bda commit 9ccc340

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/vue-testing-library/setup.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,15 @@ title: Setup
44
---
55

66
`Vue Testing Library` does not require any configuration to be used.
7+
8+
### Cleanup
9+
10+
#### Jest
11+
12+
[`cleanup`](./api#cleanup) will be called after each test automatically for
13+
Jest, so normally you don't need to change anything.
14+
15+
#### Vitest
16+
17+
Add `globals: true` to your `test` section of your vite config file to ensure we
18+
can access `afterEach` to do the cleanup.

0 commit comments

Comments
 (0)