···7575:::
76767777::: tip
7878-All configuration options that are not supported inside a [workspace](/guide/workspace) project config have <NonProjectOption /> sign next them.
7878+All configuration options that are not supported inside a [workspace](/guide/workspace) project config have <NonProjectOption /> sign next to them.
7979:::
80808181### include
···105105- **See also:** [Dep Optimization Options](https://vitejs.dev/config/dep-optimization-options.html)
106106107107::: warning
108108-This feature is temporary disabled since Vitest 0.30.0.
108108+This feature is temporarily disabled since Vitest 0.30.0.
109109:::
110110111111Enable dependency optimization. If you have a lot of tests, this might improve their performance.
+1-1
docs/guide/index.md
···63636464## Workspaces Support
65656666-Run different project configurations inside the same project with [Vitest Workspaces](/guide/workspace). You can define a list of files and folders that define you workspace in `vitest.workspace` file. The file supports `js`/`ts`/`json` extensions. This feature works great with monorepo setups.
6666+Run different project configurations inside the same project with [Vitest Workspaces](/guide/workspace). You can define a list of files and folders that define your workspace in `vitest.workspace` file. The file supports `js`/`ts`/`json` extensions. This feature works great with monorepo setups.
67676868```ts
6969import { defineWorkspace } from 'vitest/config'
+4-4
docs/guide/workspace.md
···4455## Defining a workspace
6677-A workspace should have a `vitest.workspace` or `vitest.projects` file in its root (in the same folder with your config file, if you have one). Vitest supports `ts`/`js`/`json` extensions for this file.
77+A workspace should have a `vitest.workspace` or `vitest.projects` file in its root (in the same folder as your config file if you have one). Vitest supports `ts`/`js`/`json` extensions for this file.
8899Workspace configuration file should have a default export with a list of files or glob patterns referencing your projects. For example, if you have a folder with your projects named `packages`, you can define a workspace with this config file:
1010···6969:::
70707171::: warning
7272-All projects should have unique names. Otherwise Vitest will throw an error. If you do not provide a name inside inline config, Vitest will assign a number. If you don't provide a name inside a project config defined with glob syntax, Vitest will use the directory name by default.
7272+All projects should have unique names. Otherwise, Vitest will throw an error. If you do not provide a name inside the inline config, Vitest will assign a number. If you don't provide a name inside a project config defined with glob syntax, Vitest will use the directory name by default.
7373:::
74747575If you don't rely on inline configs, you can just create a small json file in your root directory:
···119119```
120120:::
121121122122-Also some of the configuration options are not allowed in a project config. Most notably:
122122+Also, some of the configuration options are not allowed in a project config. Most notably:
123123124124- `coverage`: coverage is done for the whole workspace
125125- `reporters`: only root-level reporters can be supported
···132132133133## Coverage
134134135135-Coverage for workspace projects works out of the box. But if you have [`all`](/config/#coverage-all) option enabled and use non-conventional extensions in some of you projects, you will need to have a plugin that handles this extension in your root configuration file.
135135+Coverage for workspace projects works out of the box. But if you have [`all`](/config/#coverage-all) option enabled and use non-conventional extensions in some of your projects, you will need to have a plugin that handles this extension in your root configuration file.
136136137137For example, if you have a package that uses Vue files and it has its own config file, but some of the files are not imported in your tests, coverage will fail trying to analyze the usage of unused files, because it relies on the root configuration rather than project configuration.