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/config/index.md
+9
Original file line number
Diff line number
Diff line change
@@ -2028,3 +2028,12 @@ Relevant only when using with `shouldAdvanceTime: true`. increment mocked time b
2028
2028
-**Default:**`false`
2029
2029
2030
2030
Tells fake timers to clear "native" (i.e. not fake) timers by delegating to their respective handlers. These are not cleared by default, leading to potentially unexpected behavior if timers existed prior to starting fake timers session.
2031
+
2032
+
### workspace
2033
+
2034
+
-**Type:**`string`
2035
+
-**CLI:**`--workspace=./file.js`
2036
+
-**Default:**`vitest.{workspace,projects}.{js,ts,json}` close to the config file or root
2037
+
-**Version:** Since Vitest 1.1.0
2038
+
2039
+
Path to a [workspace](/guide/workspace) config file relative to [root](#root).
Copy file name to clipboardexpand all lines: docs/guide/cli.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -78,8 +78,8 @@ Run only [benchmark](https://vitest.dev/guide/features.html#benchmarking-experim
78
78
|`--outputFile <filename/-s>`| Write test results to a file when the `--reporter=json` or `--reporter=junit` option is also specified <br /> Via [cac's dot notation] you can specify individual outputs for multiple reporters |
79
79
|`--coverage`| Enable coverage report |
80
80
|`--run`| Do not watch |
81
-
|`--mode`| Override Vite mode (default: `test`) |
82
81
|`--mode <name>`| Override Vite mode (default: `test`) |
82
+
|`--workspace <path>`| Path to a workspace configuration file |
83
83
|`--globals`| Inject APIs globally |
84
84
|`--dom`| Mock browser API with happy-dom |
85
85
|`--browser [options]`| Run tests in [the browser](/guide/browser) (default: `false`) |
0 commit comments