Skip to content

Commit

Permalink
docs: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Feb 10, 2025
1 parent 055f9fc commit b175ad0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced/api/plugin.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Advanced API
title: Plugin API
outline: deep
---

Expand Down
15 changes: 15 additions & 0 deletions docs/guide/workspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,21 @@ bun test --project e2e --project unit
```
:::

Since Vitest 3.1, you can define a project that will always run even if you filter it out with a `--project` flag. Specify `force: true` flag when defining the project to always include it in your test run (note that this is only available in inline configs):

```ts
export default defineWorkspace([
{
// this project will always run even if it was filtered out
force: true,
extends: './vitest.config.ts',
test: {
name: 'unit',
},
},
])
```

## Configuration

None of the configuration options are inherited from the root-level config file, even if the workspace is defined inside that config and not in a separate `vitest.workspace` file. You can create a shared config file and merge it with the project config yourself:
Expand Down

0 comments on commit b175ad0

Please sign in to comment.