Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/vue-testing-library/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,15 @@ title: Setup
---

`Vue Testing Library` does not require any configuration to be used.

### Cleanup

#### Jest

[`cleanup`](./api#cleanup) will be called after each test automatically for
Jest, so normally you don't need to change anything.

#### Vitest

Add `globals: true` to your `test` section of your vite config file to ensure we
can access `afterEach` to do the cleanup.