Skip to content

Commit 88e62c7

Browse files
authored
docs: remove outdated configuration (#8642)
1 parent b2854e1 commit 88e62c7

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

docs/guide/index.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -122,26 +122,13 @@ Even if you do not use Vite yourself, Vitest relies heavily on it for its transf
122122

123123
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.
124124

125-
```ts [vite.config.ts]
126-
/// <reference types="vitest" />
127-
import { defineConfig } from 'vite'
128-
129-
export default defineConfig({
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:
137-
138125
```ts [vite.config.ts]
139126
/// <reference types="vitest/config" />
140127
import { defineConfig } from 'vite'
141128

142129
export default defineConfig({
143130
test: {
144-
// ... Specify options here.
131+
// ...
145132
},
146133
})
147134
```

0 commit comments

Comments
 (0)