[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

docs: use `extends` instead of `configFile` in `injectTestProjects` (#7860)

authored by

Romain Hamel and committed by
GitHub
(May 5, 2025, 6:38 PM +0200) 5f504958 bc78cc8c

+3 -3
+3 -3
docs/advanced/api/plugin.md
··· 93 93 ```ts 94 94 // inject a single project with a custom alias 95 95 const newProjects = await injectTestProjects({ 96 - // you can inherit the current project config by referencing `configFile` 96 + // you can inherit the current project config by referencing `extends` 97 97 // note that you cannot have a project with the name that already exists, 98 98 // so it's a good practice to define a custom name 99 - configFile: project.vite.config.configFile, 99 + extends: project.vite.config.configFile, 100 100 test: { 101 101 name: 'my-custom-alias', 102 102 alias: { ··· 117 117 ::: 118 118 119 119 ::: tip Referencing the Current Config 120 - If you want to keep the user configuration, you can specify the `configFile` property. All other properties will be merged with the user defined config. 120 + If you want to keep the user configuration, you can specify the `extends` property. All other properties will be merged with the user defined config. 121 121 122 122 The project's `configFile` can be accessed in Vite's config: `project.vite.config.configFile`. 123 123