You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/index.md
+1-14Lines changed: 1 addition & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,26 +122,13 @@ Even if you do not use Vite yourself, Vitest relies heavily on it for its transf
122
122
123
123
If you are already using Vite, add `test` property in your Vite config. You'll also need to add a reference to Vitest types using a [triple slash directive](https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html#-reference-types-) at the top of your config file.
124
124
125
-
```ts [vite.config.ts]
126
-
/// <referencetypes="vitest" />
127
-
import { defineConfig } from'vite'
128
-
129
-
exportdefaultdefineConfig({
130
-
test: {
131
-
// ...
132
-
},
133
-
})
134
-
```
135
-
136
-
The `<reference types="vitest" />` will stop working in the next major update, but you can start migrating to `vitest/config` in Vitest 2.1:
0 commit comments