@vitest-agent/mcp 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/README.md +1 -2
  2. package/index.d.ts +2 -2
  3. package/index.js +1 -1
  4. package/package.json +1 -1
  5. package/server.js +2 -4
  6. package/patterns/_meta.json +0 -67
  7. package/patterns/authoring-a-custom-vitest-agent-reporter.md +0 -82
  8. package/patterns/known-issues-and-caveats.md +0 -52
  9. package/patterns/operating-vitest-agent-as-an-agent.md +0 -62
  10. package/patterns/running-tests-via-mcp.md +0 -103
  11. package/patterns/silencing-leaking-output-in-tests.md +0 -91
  12. package/patterns/testing-effect-schema-definitions.md +0 -71
  13. package/patterns/testing-effect-services-with-mock-layers.md +0 -63
  14. package/resources/index.js +0 -166
  15. package/resources/indexes.js +0 -77
  16. package/resources/manifest-schema.js +0 -46
  17. package/resources/paths.js +0 -20
  18. package/resources/patterns.js +0 -22
  19. package/resources/upstream-docs.js +0 -22
  20. package/vendor/vitest-docs/ATTRIBUTION.md +0 -5
  21. package/vendor/vitest-docs/api/advanced/artifacts.md +0 -189
  22. package/vendor/vitest-docs/api/advanced/metadata.md +0 -68
  23. package/vendor/vitest-docs/api/advanced/plugin.md +0 -168
  24. package/vendor/vitest-docs/api/advanced/reporters.md +0 -342
  25. package/vendor/vitest-docs/api/advanced/runner.md +0 -334
  26. package/vendor/vitest-docs/api/advanced/test-case.md +0 -302
  27. package/vendor/vitest-docs/api/advanced/test-collection.md +0 -89
  28. package/vendor/vitest-docs/api/advanced/test-module.md +0 -140
  29. package/vendor/vitest-docs/api/advanced/test-project.md +0 -321
  30. package/vendor/vitest-docs/api/advanced/test-specification.md +0 -96
  31. package/vendor/vitest-docs/api/advanced/test-suite.md +0 -230
  32. package/vendor/vitest-docs/api/advanced/vitest.md +0 -684
  33. package/vendor/vitest-docs/api/assert-type.md +0 -22
  34. package/vendor/vitest-docs/api/assert.md +0 -1960
  35. package/vendor/vitest-docs/api/browser/assertions.md +0 -1277
  36. package/vendor/vitest-docs/api/browser/commands.md +0 -154
  37. package/vendor/vitest-docs/api/browser/context.md +0 -338
  38. package/vendor/vitest-docs/api/browser/interactivity.md +0 -681
  39. package/vendor/vitest-docs/api/browser/locators.md +0 -1171
  40. package/vendor/vitest-docs/api/browser/react.md +0 -346
  41. package/vendor/vitest-docs/api/browser/svelte.md +0 -292
  42. package/vendor/vitest-docs/api/browser/vue.md +0 -222
  43. package/vendor/vitest-docs/api/describe.md +0 -374
  44. package/vendor/vitest-docs/api/expect-typeof.md +0 -571
  45. package/vendor/vitest-docs/api/expect.md +0 -2304
  46. package/vendor/vitest-docs/api/hooks.md +0 -463
  47. package/vendor/vitest-docs/api/mock.md +0 -701
  48. package/vendor/vitest-docs/api/test.md +0 -926
  49. package/vendor/vitest-docs/api/vi.md +0 -1372
  50. package/vendor/vitest-docs/config/alias.md +0 -13
  51. package/vendor/vitest-docs/config/allowonly.md +0 -32
  52. package/vendor/vitest-docs/config/api.md +0 -27
  53. package/vendor/vitest-docs/config/attachmentsdir.md +0 -6
  54. package/vendor/vitest-docs/config/bail.md +0 -9
  55. package/vendor/vitest-docs/config/benchmark.md +0 -65
  56. package/vendor/vitest-docs/config/browser/api.md +0 -23
  57. package/vendor/vitest-docs/config/browser/commands.md +0 -6
  58. package/vendor/vitest-docs/config/browser/connecttimeout.md +0 -10
  59. package/vendor/vitest-docs/config/browser/detailspanelposition.md +0 -38
  60. package/vendor/vitest-docs/config/browser/enabled.md +0 -40
  61. package/vendor/vitest-docs/config/browser/expect.md +0 -250
  62. package/vendor/vitest-docs/config/browser/headless.md +0 -7
  63. package/vendor/vitest-docs/config/browser/instances.md +0 -47
  64. package/vendor/vitest-docs/config/browser/isolate.md +0 -11
  65. package/vendor/vitest-docs/config/browser/locators.md +0 -24
  66. package/vendor/vitest-docs/config/browser/orchestratorscripts.md +0 -39
  67. package/vendor/vitest-docs/config/browser/playwright.md +0 -214
  68. package/vendor/vitest-docs/config/browser/preview.md +0 -32
  69. package/vendor/vitest-docs/config/browser/provider.md +0 -79
  70. package/vendor/vitest-docs/config/browser/screenshotdirectory.md +0 -6
  71. package/vendor/vitest-docs/config/browser/screenshotfailures.md +0 -6
  72. package/vendor/vitest-docs/config/browser/testerhtmlpath.md +0 -5
  73. package/vendor/vitest-docs/config/browser/trace.md +0 -43
  74. package/vendor/vitest-docs/config/browser/trackunhandlederrors.md +0 -10
  75. package/vendor/vitest-docs/config/browser/ui.md +0 -7
  76. package/vendor/vitest-docs/config/browser/viewport.md +0 -6
  77. package/vendor/vitest-docs/config/browser/webdriverio.md +0 -64
  78. package/vendor/vitest-docs/config/cache.md +0 -26
  79. package/vendor/vitest-docs/config/chaiconfig.md +0 -29
  80. package/vendor/vitest-docs/config/clearmocks.md +0 -22
  81. package/vendor/vitest-docs/config/coverage.md +0 -455
  82. package/vendor/vitest-docs/config/css.md +0 -47
  83. package/vendor/vitest-docs/config/dangerouslyignoreunhandlederrors.md +0 -23
  84. package/vendor/vitest-docs/config/deps.md +0 -127
  85. package/vendor/vitest-docs/config/detectasyncleaks.md +0 -39
  86. package/vendor/vitest-docs/config/diff.md +0 -96
  87. package/vendor/vitest-docs/config/dir.md +0 -7
  88. package/vendor/vitest-docs/config/disableconsoleintercept.md +0 -15
  89. package/vendor/vitest-docs/config/env.md +0 -5
  90. package/vendor/vitest-docs/config/environment.md +0 -96
  91. package/vendor/vitest-docs/config/environmentoptions.md +0 -30
  92. package/vendor/vitest-docs/config/exclude.md +0 -49
  93. package/vendor/vitest-docs/config/execargv.md +0 -10
  94. package/vendor/vitest-docs/config/expandsnapshotdiff.md +0 -7
  95. package/vendor/vitest-docs/config/expect.md +0 -38
  96. package/vendor/vitest-docs/config/experimental.md +0 -510
  97. package/vendor/vitest-docs/config/faketimers.md +0 -51
  98. package/vendor/vitest-docs/config/fileparallelism.md +0 -11
  99. package/vendor/vitest-docs/config/forcereruntriggers.md +0 -19
  100. package/vendor/vitest-docs/config/globals.md +0 -42
  101. package/vendor/vitest-docs/config/globalsetup.md +0 -72
  102. package/vendor/vitest-docs/config/hideskippedtests.md +0 -7
  103. package/vendor/vitest-docs/config/hooktimeout.md +0 -7
  104. package/vendor/vitest-docs/config/include-source.md +0 -115
  105. package/vendor/vitest-docs/config/include.md +0 -71
  106. package/vendor/vitest-docs/config/includetasklocation.md +0 -17
  107. package/vendor/vitest-docs/config/index.md +0 -85
  108. package/vendor/vitest-docs/config/isolate.md +0 -13
  109. package/vendor/vitest-docs/config/logheapusage.md +0 -7
  110. package/vendor/vitest-docs/config/maxconcurrency.md +0 -9
  111. package/vendor/vitest-docs/config/maxworkers.md +0 -49
  112. package/vendor/vitest-docs/config/mockreset.md +0 -22
  113. package/vendor/vitest-docs/config/mode.md +0 -7
  114. package/vendor/vitest-docs/config/name.md +0 -111
  115. package/vendor/vitest-docs/config/onconsolelog.md +0 -25
  116. package/vendor/vitest-docs/config/onstacktrace.md +0 -32
  117. package/vendor/vitest-docs/config/onunhandlederror.md +0 -35
  118. package/vendor/vitest-docs/config/open.md +0 -7
  119. package/vendor/vitest-docs/config/outputfile.md +0 -7
  120. package/vendor/vitest-docs/config/passwithnotests.md +0 -7
  121. package/vendor/vitest-docs/config/pool.md +0 -45
  122. package/vendor/vitest-docs/config/printconsoletrace.md +0 -6
  123. package/vendor/vitest-docs/config/projects.md +0 -6
  124. package/vendor/vitest-docs/config/provide.md +0 -45
  125. package/vendor/vitest-docs/config/reporters.md +0 -69
  126. package/vendor/vitest-docs/config/resolvesnapshotpath.md +0 -36
  127. package/vendor/vitest-docs/config/restoremocks.md +0 -22
  128. package/vendor/vitest-docs/config/retry.md +0 -140
  129. package/vendor/vitest-docs/config/root.md +0 -6
  130. package/vendor/vitest-docs/config/runner.md +0 -6
  131. package/vendor/vitest-docs/config/sequence.md +0 -158
  132. package/vendor/vitest-docs/config/server.md +0 -68
  133. package/vendor/vitest-docs/config/setupfiles.md +0 -40
  134. package/vendor/vitest-docs/config/silent.md +0 -9
  135. package/vendor/vitest-docs/config/slowtestthreshold.md +0 -7
  136. package/vendor/vitest-docs/config/snapshotenvironment.md +0 -27
  137. package/vendor/vitest-docs/config/snapshotformat.md +0 -28
  138. package/vendor/vitest-docs/config/snapshotserializers.md +0 -6
  139. package/vendor/vitest-docs/config/stricttags.md +0 -30
  140. package/vendor/vitest-docs/config/tags.md +0 -141
  141. package/vendor/vitest-docs/config/teardowntimeout.md +0 -7
  142. package/vendor/vitest-docs/config/testnamepattern.md +0 -21
  143. package/vendor/vitest-docs/config/testtimeout.md +0 -7
  144. package/vendor/vitest-docs/config/typecheck.md +0 -77
  145. package/vendor/vitest-docs/config/ui.md +0 -15
  146. package/vendor/vitest-docs/config/unstubenvs.md +0 -20
  147. package/vendor/vitest-docs/config/unstubglobals.md +0 -20
  148. package/vendor/vitest-docs/config/update.md +0 -16
  149. package/vendor/vitest-docs/config/vmmemorylimit.md +0 -30
  150. package/vendor/vitest-docs/config/watch.md +0 -11
  151. package/vendor/vitest-docs/config/watchtriggerpatterns.md +0 -29
  152. package/vendor/vitest-docs/guide/advanced/index.md +0 -147
  153. package/vendor/vitest-docs/guide/advanced/pool.md +0 -148
  154. package/vendor/vitest-docs/guide/advanced/reporters.md +0 -93
  155. package/vendor/vitest-docs/guide/advanced/tests.md +0 -125
  156. package/vendor/vitest-docs/guide/browser/aria-snapshots.md +0 -470
  157. package/vendor/vitest-docs/guide/browser/component-testing.md +0 -571
  158. package/vendor/vitest-docs/guide/browser/index.md +0 -630
  159. package/vendor/vitest-docs/guide/browser/multiple-setups.md +0 -121
  160. package/vendor/vitest-docs/guide/browser/trace-view.md +0 -126
  161. package/vendor/vitest-docs/guide/browser/visual-regression-testing.md +0 -734
  162. package/vendor/vitest-docs/guide/cli-generated.md +0 -972
  163. package/vendor/vitest-docs/guide/cli.md +0 -234
  164. package/vendor/vitest-docs/guide/common-errors.md +0 -163
  165. package/vendor/vitest-docs/guide/coverage.md +0 -515
  166. package/vendor/vitest-docs/guide/debugging.md +0 -127
  167. package/vendor/vitest-docs/guide/environment.md +0 -101
  168. package/vendor/vitest-docs/guide/extending-matchers.md +0 -160
  169. package/vendor/vitest-docs/guide/features.md +0 -310
  170. package/vendor/vitest-docs/guide/filtering.md +0 -175
  171. package/vendor/vitest-docs/guide/ide.md +0 -43
  172. package/vendor/vitest-docs/guide/improving-performance.md +0 -245
  173. package/vendor/vitest-docs/guide/in-source.md +0 -159
  174. package/vendor/vitest-docs/guide/index.md +0 -128
  175. package/vendor/vitest-docs/guide/learn/async.md +0 -147
  176. package/vendor/vitest-docs/guide/learn/debugging-tests.md +0 -210
  177. package/vendor/vitest-docs/guide/learn/matchers.md +0 -277
  178. package/vendor/vitest-docs/guide/learn/mock-functions.md +0 -277
  179. package/vendor/vitest-docs/guide/learn/setup-teardown.md +0 -240
  180. package/vendor/vitest-docs/guide/learn/snapshots.md +0 -166
  181. package/vendor/vitest-docs/guide/learn/testing-in-practice.md +0 -430
  182. package/vendor/vitest-docs/guide/learn/writing-tests-with-ai.md +0 -127
  183. package/vendor/vitest-docs/guide/learn/writing-tests.md +0 -231
  184. package/vendor/vitest-docs/guide/lifecycle.md +0 -379
  185. package/vendor/vitest-docs/guide/migration.md +0 -863
  186. package/vendor/vitest-docs/guide/mocking/classes.md +0 -158
  187. package/vendor/vitest-docs/guide/mocking/dates.md +0 -52
  188. package/vendor/vitest-docs/guide/mocking/file-system.md +0 -74
  189. package/vendor/vitest-docs/guide/mocking/functions.md +0 -61
  190. package/vendor/vitest-docs/guide/mocking/globals.md +0 -20
  191. package/vendor/vitest-docs/guide/mocking/modules.md +0 -414
  192. package/vendor/vitest-docs/guide/mocking/requests.md +0 -114
  193. package/vendor/vitest-docs/guide/mocking/timers.md +0 -48
  194. package/vendor/vitest-docs/guide/mocking.md +0 -239
  195. package/vendor/vitest-docs/guide/open-telemetry.md +0 -156
  196. package/vendor/vitest-docs/guide/parallelism.md +0 -82
  197. package/vendor/vitest-docs/guide/profiling-test-performance.md +0 -243
  198. package/vendor/vitest-docs/guide/projects.md +0 -291
  199. package/vendor/vitest-docs/guide/recipes.md +0 -59
  200. package/vendor/vitest-docs/guide/reporters.md +0 -723
  201. package/vendor/vitest-docs/guide/snapshot.md +0 -620
  202. package/vendor/vitest-docs/guide/test-annotations.md +0 -103
  203. package/vendor/vitest-docs/guide/test-context.md +0 -902
  204. package/vendor/vitest-docs/guide/test-tags.md +0 -314
  205. package/vendor/vitest-docs/guide/testing-types.md +0 -149
  206. package/vendor/vitest-docs/guide/ui.md +0 -160
  207. package/vendor/vitest-docs/guide/using-plugins.md +0 -5
  208. package/vendor/vitest-docs/manifest.json +0 -1691
@@ -1,972 +0,0 @@
1
- ### root
2
-
3
- - **CLI:** `-r, --root <path>`
4
- - **Config:** [root](/config/root)
5
-
6
- Root path
7
-
8
- ### config
9
-
10
- - **CLI:** `-c, --config <path>`
11
-
12
- Path to config file
13
-
14
- ### update
15
-
16
- - **CLI:** `-u, --update [type]`
17
- - **Config:** [update](/config/update)
18
-
19
- Update snapshot (accepts boolean, "new", "all" or "none")
20
-
21
- ### watch
22
-
23
- - **CLI:** `-w, --watch`
24
- - **Config:** [watch](/config/watch)
25
-
26
- Enable watch mode
27
-
28
- ### testNamePattern
29
-
30
- - **CLI:** `-t, --testNamePattern <pattern>`
31
- - **Config:** [testNamePattern](/config/testnamepattern)
32
-
33
- Run tests with full names matching the specified regexp pattern
34
-
35
- ### dir
36
-
37
- - **CLI:** `--dir <path>`
38
- - **Config:** [dir](/config/dir)
39
-
40
- Base directory to scan for the test files
41
-
42
- ### ui
43
-
44
- - **CLI:** `--ui`
45
-
46
- Enable UI
47
-
48
- ### open
49
-
50
- - **CLI:** `--open`
51
- - **Config:** [open](/config/open)
52
-
53
- Open UI automatically (default: `!process.env.CI`)
54
-
55
- ### api.port
56
-
57
- - **CLI:** `--api.port [port]`
58
-
59
- Specify server port. Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on. If true will be set to `51204`
60
-
61
- ### api.host
62
-
63
- - **CLI:** `--api.host [host]`
64
-
65
- Specify which IP addresses the server should listen on. Set this to `0.0.0.0` or `true` to listen on all addresses, including LAN and public addresses
66
-
67
- ### api.strictPort
68
-
69
- - **CLI:** `--api.strictPort`
70
-
71
- Set to true to exit if port is already in use, instead of automatically trying the next available port
72
-
73
- ### api.allowExec
74
-
75
- - **CLI:** `--api.allowExec`
76
- - **Config:** [api.allowExec](/config/api#api-allowexec)
77
-
78
- Allow API to execute code. (Be careful when enabling this option in untrusted environments)
79
-
80
- ### api.allowWrite
81
-
82
- - **CLI:** `--api.allowWrite`
83
- - **Config:** [api.allowWrite](/config/api#api-allowwrite)
84
-
85
- Allow API to edit files. (Be careful when enabling this option in untrusted environments)
86
-
87
- ### silent
88
-
89
- - **CLI:** `--silent [value]`
90
- - **Config:** [silent](/config/silent)
91
-
92
- Silent console output from tests. Use `'passed-only'` to see logs from failing tests only.
93
-
94
- ### hideSkippedTests
95
-
96
- - **CLI:** `--hideSkippedTests`
97
-
98
- Hide logs for skipped tests
99
-
100
- ### reporters
101
-
102
- - **CLI:** `--reporter <name>`
103
- - **Config:** [reporters](/config/reporters)
104
-
105
- Specify reporters (default, agent, minimal, blob, verbose, dot, json, tap, tap-flat, junit, tree, hanging-process, github-actions)
106
-
107
- ### outputFile
108
-
109
- - **CLI:** `--outputFile <filename/-s>`
110
- - **Config:** [outputFile](/config/outputfile)
111
-
112
- Write test results to a file when supporter reporter is also specified, use cac's dot notation for individual outputs of multiple reporters (example: `--outputFile.tap=./tap.txt`)
113
-
114
- ### coverage.provider
115
-
116
- - **CLI:** `--coverage.provider <name>`
117
- - **Config:** [coverage.provider](/config/coverage#coverage-provider)
118
-
119
- Select the tool for coverage collection, available values are: "v8", "istanbul" and "custom"
120
-
121
- ### coverage.enabled
122
-
123
- - **CLI:** `--coverage.enabled`
124
- - **Config:** [coverage.enabled](/config/coverage#coverage-enabled)
125
-
126
- Enables coverage collection. Can be overridden using the `--coverage` CLI option (default: `false`)
127
-
128
- ### coverage.include
129
-
130
- - **CLI:** `--coverage.include <pattern>`
131
- - **Config:** [coverage.include](/config/coverage#coverage-include)
132
-
133
- Files included in coverage as glob patterns. May be specified more than once when using multiple patterns. By default only files covered by tests are included.
134
-
135
- ### coverage.exclude
136
-
137
- - **CLI:** `--coverage.exclude <pattern>`
138
- - **Config:** [coverage.exclude](/config/coverage#coverage-exclude)
139
-
140
- Files to be excluded in coverage. May be specified more than once when using multiple extensions.
141
-
142
- ### coverage.clean
143
-
144
- - **CLI:** `--coverage.clean`
145
- - **Config:** [coverage.clean](/config/coverage#coverage-clean)
146
-
147
- Clean coverage results before running tests (default: true)
148
-
149
- ### coverage.cleanOnRerun
150
-
151
- - **CLI:** `--coverage.cleanOnRerun`
152
- - **Config:** [coverage.cleanOnRerun](/config/coverage#coverage-cleanonrerun)
153
-
154
- Clean coverage report on watch rerun (default: true)
155
-
156
- ### coverage.reportsDirectory
157
-
158
- - **CLI:** `--coverage.reportsDirectory <path>`
159
- - **Config:** [coverage.reportsDirectory](/config/coverage#coverage-reportsdirectory)
160
-
161
- Directory to write coverage report to (default: ./coverage)
162
-
163
- ### coverage.reporter
164
-
165
- - **CLI:** `--coverage.reporter <name>`
166
- - **Config:** [coverage.reporter](/config/coverage#coverage-reporter)
167
-
168
- Coverage reporters to use. Visit [`coverage.reporter`](/config/coverage#coverage-reporter) for more information (default: `["text", "html", "clover", "json"]`)
169
-
170
- ### coverage.reportOnFailure
171
-
172
- - **CLI:** `--coverage.reportOnFailure`
173
- - **Config:** [coverage.reportOnFailure](/config/coverage#coverage-reportonfailure)
174
-
175
- Generate coverage report even when tests fail (default: `false`)
176
-
177
- ### coverage.allowExternal
178
-
179
- - **CLI:** `--coverage.allowExternal`
180
- - **Config:** [coverage.allowExternal](/config/coverage#coverage-allowexternal)
181
-
182
- Collect coverage of files outside the project root (default: `false`)
183
-
184
- ### coverage.skipFull
185
-
186
- - **CLI:** `--coverage.skipFull`
187
- - **Config:** [coverage.skipFull](/config/coverage#coverage-skipfull)
188
-
189
- Do not show files with 100% statement, branch, and function coverage (default: `false`)
190
-
191
- ### coverage.thresholds.100
192
-
193
- - **CLI:** `--coverage.thresholds.100`
194
- - **Config:** [coverage.thresholds.100](/config/coverage#coverage-thresholds-100)
195
-
196
- Shortcut to set all coverage thresholds to 100 (default: `false`)
197
-
198
- ### coverage.thresholds.perFile
199
-
200
- - **CLI:** `--coverage.thresholds.perFile`
201
- - **Config:** [coverage.thresholds.perFile](/config/coverage#coverage-thresholds-perfile)
202
-
203
- Check thresholds per file. See `--coverage.thresholds.lines`, `--coverage.thresholds.functions`, `--coverage.thresholds.branches` and `--coverage.thresholds.statements` for the actual thresholds (default: `false`)
204
-
205
- ### coverage.thresholds.autoUpdate
206
-
207
- - **CLI:** `--coverage.thresholds.autoUpdate <boolean|function>`
208
- - **Config:** [coverage.thresholds.autoUpdate](/config/coverage#coverage-thresholds-autoupdate)
209
-
210
- Update threshold values: "lines", "functions", "branches" and "statements" to configuration file when current coverage is above the configured thresholds (default: `false`)
211
-
212
- ### coverage.thresholds.lines
213
-
214
- - **CLI:** `--coverage.thresholds.lines <number>`
215
-
216
- Threshold for lines. Visit [istanbuljs](https://github.com/istanbuljs/nyc#coverage-thresholds) for more information. This option is not available for custom providers
217
-
218
- ### coverage.thresholds.functions
219
-
220
- - **CLI:** `--coverage.thresholds.functions <number>`
221
-
222
- Threshold for functions. Visit [istanbuljs](https://github.com/istanbuljs/nyc#coverage-thresholds) for more information. This option is not available for custom providers
223
-
224
- ### coverage.thresholds.branches
225
-
226
- - **CLI:** `--coverage.thresholds.branches <number>`
227
-
228
- Threshold for branches. Visit [istanbuljs](https://github.com/istanbuljs/nyc#coverage-thresholds) for more information. This option is not available for custom providers
229
-
230
- ### coverage.thresholds.statements
231
-
232
- - **CLI:** `--coverage.thresholds.statements <number>`
233
-
234
- Threshold for statements. Visit [istanbuljs](https://github.com/istanbuljs/nyc#coverage-thresholds) for more information. This option is not available for custom providers
235
-
236
- ### coverage.ignoreClassMethods
237
-
238
- - **CLI:** `--coverage.ignoreClassMethods <name>`
239
- - **Config:** [coverage.ignoreClassMethods](/config/coverage#coverage-ignoreclassmethods)
240
-
241
- Array of class method names to ignore for coverage. Visit [istanbuljs](https://github.com/istanbuljs/nyc#ignoring-methods) for more information. This option is only available for the istanbul providers (default: `[]`)
242
-
243
- ### coverage.processingConcurrency
244
-
245
- - **CLI:** `--coverage.processingConcurrency <number>`
246
- - **Config:** [coverage.processingConcurrency](/config/coverage#coverage-processingconcurrency)
247
-
248
- Concurrency limit used when processing the coverage results. (default min between 20 and the number of CPUs)
249
-
250
- ### coverage.customProviderModule
251
-
252
- - **CLI:** `--coverage.customProviderModule <path>`
253
- - **Config:** [coverage.customProviderModule](/config/coverage#coverage-customprovidermodule)
254
-
255
- Specifies the module name or path for the custom coverage provider module. Visit [Custom Coverage Provider](/guide/coverage#custom-coverage-provider) for more information. This option is only available for custom providers
256
-
257
- ### coverage.watermarks.statements
258
-
259
- - **CLI:** `--coverage.watermarks.statements <watermarks>`
260
-
261
- High and low watermarks for statements in the format of `<high>,<low>`
262
-
263
- ### coverage.watermarks.lines
264
-
265
- - **CLI:** `--coverage.watermarks.lines <watermarks>`
266
-
267
- High and low watermarks for lines in the format of `<high>,<low>`
268
-
269
- ### coverage.watermarks.branches
270
-
271
- - **CLI:** `--coverage.watermarks.branches <watermarks>`
272
-
273
- High and low watermarks for branches in the format of `<high>,<low>`
274
-
275
- ### coverage.watermarks.functions
276
-
277
- - **CLI:** `--coverage.watermarks.functions <watermarks>`
278
-
279
- High and low watermarks for functions in the format of `<high>,<low>`
280
-
281
- ### coverage.changed
282
-
283
- - **CLI:** `--coverage.changed <commit/branch>`
284
- - **Config:** [coverage.changed](/config/coverage#coverage-changed)
285
-
286
- Collect coverage only for files changed since a specified commit or branch (e.g., `origin/main` or `HEAD~1`). Inherits value from `--changed` by default.
287
-
288
- ### coverage.excludeAfterRemap
289
-
290
- - **CLI:** `--coverage.excludeAfterRemap`
291
- - **Config:** [coverage.excludeAfterRemap](/config/coverage#coverage-excludeafterremap)
292
-
293
- Apply exclusions again after coverage has been remapped to original sources. (default: false)
294
-
295
- ### coverage.htmlDir
296
-
297
- - **CLI:** `--coverage.htmlDir <path>`
298
- - **Config:** [coverage.htmlDir](/config/coverage#coverage-htmldir)
299
-
300
- Directory of HTML coverage output to be served in UI mode and HTML reporter.
301
-
302
- ### mode
303
-
304
- - **CLI:** `--mode <name>`
305
- - **Config:** [mode](/config/mode)
306
-
307
- Override Vite mode (default: `test` or `benchmark`)
308
-
309
- ### isolate
310
-
311
- - **CLI:** `--isolate`
312
- - **Config:** [isolate](/config/isolate)
313
-
314
- Run every test file in isolation. To disable isolation, use `--no-isolate` (default: `true`)
315
-
316
- ### globals
317
-
318
- - **CLI:** `--globals`
319
- - **Config:** [globals](/config/globals)
320
-
321
- Inject apis globally
322
-
323
- ### dom
324
-
325
- - **CLI:** `--dom`
326
-
327
- Mock browser API with happy-dom
328
-
329
- ### browser.enabled
330
-
331
- - **CLI:** `--browser.enabled`
332
- - **Config:** [browser.enabled](/config/browser/enabled)
333
-
334
- Run tests in the browser. Equivalent to `--browser.enabled` (default: `false`)
335
-
336
- ### browser.name
337
-
338
- - **CLI:** `--browser.name <name>`
339
-
340
- Run all tests in a specific browser. Some browsers are only available for specific providers (see `--browser.provider`).
341
-
342
- ### browser.headless
343
-
344
- - **CLI:** `--browser.headless`
345
- - **Config:** [browser.headless](/config/browser/headless)
346
-
347
- Run the browser in headless mode (i.e. without opening the GUI (Graphical User Interface)). If you are running Vitest in CI, it will be enabled by default (default: `process.env.CI`)
348
-
349
- ### browser.api.port
350
-
351
- - **CLI:** `--browser.api.port [port]`
352
- - **Config:** [browser.api.port](/config/browser/api#api-port)
353
-
354
- Specify server port. Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on. If true will be set to `63315`
355
-
356
- ### browser.api.host
357
-
358
- - **CLI:** `--browser.api.host [host]`
359
- - **Config:** [browser.api.host](/config/browser/api#api-host)
360
-
361
- Specify which IP addresses the server should listen on. Set this to `0.0.0.0` or `true` to listen on all addresses, including LAN and public addresses
362
-
363
- ### browser.api.strictPort
364
-
365
- - **CLI:** `--browser.api.strictPort`
366
- - **Config:** [browser.api.strictPort](/config/browser/api#api-strictport)
367
-
368
- Set to true to exit if port is already in use, instead of automatically trying the next available port
369
-
370
- ### browser.api.allowExec
371
-
372
- - **CLI:** `--browser.api.allowExec`
373
- - **Config:** [browser.api.allowExec](/config/browser/api#api-allowexec)
374
-
375
- Allow API to execute code. (Be careful when enabling this option in untrusted environments)
376
-
377
- ### browser.api.allowWrite
378
-
379
- - **CLI:** `--browser.api.allowWrite`
380
- - **Config:** [browser.api.allowWrite](/config/browser/api#api-allowwrite)
381
-
382
- Allow API to edit files. (Be careful when enabling this option in untrusted environments)
383
-
384
- ### browser.isolate
385
-
386
- - **CLI:** `--browser.isolate`
387
- - **Config:** [browser.isolate](/config/browser/isolate)
388
-
389
- Run every browser test file in isolation. To disable isolation, use `--browser.isolate=false` (default: `true`)
390
-
391
- ### browser.ui
392
-
393
- - **CLI:** `--browser.ui`
394
- - **Config:** [browser.ui](/config/browser/ui)
395
-
396
- Show Vitest UI when running tests (default: `!process.env.CI`)
397
-
398
- ### browser.detailsPanelPosition
399
-
400
- - **CLI:** `--browser.detailsPanelPosition <position>`
401
- - **Config:** [browser.detailsPanelPosition](/config/browser/detailspanelposition)
402
-
403
- Default position for the details panel in browser mode. Either `right` (horizontal split) or `bottom` (vertical split) (default: `right`)
404
-
405
- ### browser.fileParallelism
406
-
407
- - **CLI:** `--browser.fileParallelism`
408
-
409
- Should browser test files run in parallel. Use `--browser.fileParallelism=false` to disable (default: `true`)
410
-
411
- ### browser.connectTimeout
412
-
413
- - **CLI:** `--browser.connectTimeout <timeout>`
414
- - **Config:** [browser.connectTimeout](/config/browser/connecttimeout)
415
-
416
- If connection to the browser takes longer, the test suite will fail (default: `60_000`)
417
-
418
- ### browser.trackUnhandledErrors
419
-
420
- - **CLI:** `--browser.trackUnhandledErrors`
421
- - **Config:** [browser.trackUnhandledErrors](/config/browser/trackunhandlederrors)
422
-
423
- Control if Vitest catches uncaught exceptions so they can be reported (default: `true`)
424
-
425
- ### browser.trace
426
-
427
- - **CLI:** `--browser.trace <mode>`
428
- - **Config:** [browser.trace](/config/browser/trace)
429
-
430
- Enable trace view mode. Supported: "on", "off", "on-first-retry", "on-all-retries", "retain-on-failure".
431
-
432
- ### browser.locators.exact
433
-
434
- - **CLI:** `--browser.locators.exact`
435
- - **Config:** [browser.locators.exact](/config/browser/locators#locators-exact)
436
-
437
- Should locators match the text exactly by default (default: `false`)
438
-
439
- ### pool
440
-
441
- - **CLI:** `--pool <pool>`
442
- - **Config:** [pool](/config/pool)
443
-
444
- Specify pool, if not running in the browser (default: `forks`)
445
-
446
- ### execArgv
447
-
448
- - **CLI:** `--execArgv <option>`
449
- - **Config:** [execArgv](/config/execargv)
450
-
451
- Pass additional arguments to `node` process when spawning `worker_threads` or `child_process`.
452
-
453
- ### vmMemoryLimit
454
-
455
- - **CLI:** `--vmMemoryLimit <limit>`
456
- - **Config:** [vmMemoryLimit](/config/vmmemorylimit)
457
-
458
- Memory limit for VM pools. If you see memory leaks, try to tinker this value.
459
-
460
- ### fileParallelism
461
-
462
- - **CLI:** `--fileParallelism`
463
- - **Config:** [fileParallelism](/config/fileparallelism)
464
-
465
- Should all test files run in parallel. Use `--no-file-parallelism` to disable (default: `true`)
466
-
467
- ### maxWorkers
468
-
469
- - **CLI:** `--maxWorkers <workers>`
470
- - **Config:** [maxWorkers](/config/maxworkers)
471
-
472
- Maximum number or percentage of workers to run tests in
473
-
474
- ### environment
475
-
476
- - **CLI:** `--environment <name>`
477
- - **Config:** [environment](/config/environment)
478
-
479
- Specify runner environment, if not running in the browser (default: `node`)
480
-
481
- ### passWithNoTests
482
-
483
- - **CLI:** `--passWithNoTests`
484
- - **Config:** [passWithNoTests](/config/passwithnotests)
485
-
486
- Pass when no tests are found
487
-
488
- ### logHeapUsage
489
-
490
- - **CLI:** `--logHeapUsage`
491
- - **Config:** [logHeapUsage](/config/logheapusage)
492
-
493
- Show the size of heap for each test when running in node
494
-
495
- ### detectAsyncLeaks
496
-
497
- - **CLI:** `--detectAsyncLeaks`
498
- - **Config:** [detectAsyncLeaks](/config/detectasyncleaks)
499
-
500
- Detect asynchronous resources leaking from the test file (default: `false`)
501
-
502
- ### allowOnly
503
-
504
- - **CLI:** `--allowOnly`
505
- - **Config:** [allowOnly](/config/allowonly)
506
-
507
- Allow tests and suites that are marked as only (default: `!process.env.CI`)
508
-
509
- ### dangerouslyIgnoreUnhandledErrors
510
-
511
- - **CLI:** `--dangerouslyIgnoreUnhandledErrors`
512
- - **Config:** [dangerouslyIgnoreUnhandledErrors](/config/dangerouslyignoreunhandlederrors)
513
-
514
- Ignore any unhandled errors that occur
515
-
516
- ### sequence.shuffle.files
517
-
518
- - **CLI:** `--sequence.shuffle.files`
519
- - **Config:** [sequence.shuffle.files](/config/sequence#sequence-shuffle-files)
520
-
521
- Run files in a random order. Long running tests will not start earlier if you enable this option. (default: `false`)
522
-
523
- ### sequence.shuffle.tests
524
-
525
- - **CLI:** `--sequence.shuffle.tests`
526
- - **Config:** [sequence.shuffle.tests](/config/sequence#sequence-shuffle-tests)
527
-
528
- Run tests in a random order (default: `false`)
529
-
530
- ### sequence.concurrent
531
-
532
- - **CLI:** `--sequence.concurrent`
533
- - **Config:** [sequence.concurrent](/config/sequence#sequence-concurrent)
534
-
535
- Make tests run in parallel (default: `false`)
536
-
537
- ### sequence.seed
538
-
539
- - **CLI:** `--sequence.seed <seed>`
540
- - **Config:** [sequence.seed](/config/sequence#sequence-seed)
541
-
542
- Set the randomization seed. This option will have no effect if `--sequence.shuffle` is falsy. Visit ["Random Seed" page](https://en.wikipedia.org/wiki/Random_seed) for more information
543
-
544
- ### sequence.hooks
545
-
546
- - **CLI:** `--sequence.hooks <order>`
547
- - **Config:** [sequence.hooks](/config/sequence#sequence-hooks)
548
-
549
- Changes the order in which hooks are executed. Accepted values are: "stack", "list" and "parallel". Visit [`sequence.hooks`](/config/sequence#sequence-hooks) for more information (default: `"parallel"`)
550
-
551
- ### sequence.setupFiles
552
-
553
- - **CLI:** `--sequence.setupFiles <order>`
554
- - **Config:** [sequence.setupFiles](/config/sequence#sequence-setupfiles)
555
-
556
- Changes the order in which setup files are executed. Accepted values are: "list" and "parallel". If set to "list", will run setup files in the order they are defined. If set to "parallel", will run setup files in parallel (default: `"parallel"`)
557
-
558
- ### inspect
559
-
560
- - **CLI:** `--inspect [[host:]port]`
561
-
562
- Enable Node.js inspector (default: `127.0.0.1:9229`)
563
-
564
- ### inspectBrk
565
-
566
- - **CLI:** `--inspectBrk [[host:]port]`
567
-
568
- Enable Node.js inspector and break before the test starts
569
-
570
- ### testTimeout
571
-
572
- - **CLI:** `--testTimeout <timeout>`
573
- - **Config:** [testTimeout](/config/testtimeout)
574
-
575
- Default timeout of a test in milliseconds (default: `5000`). Use `0` to disable timeout completely.
576
-
577
- ### hookTimeout
578
-
579
- - **CLI:** `--hookTimeout <timeout>`
580
- - **Config:** [hookTimeout](/config/hooktimeout)
581
-
582
- Default hook timeout in milliseconds (default: `10000`). Use `0` to disable timeout completely.
583
-
584
- ### bail
585
-
586
- - **CLI:** `--bail <number>`
587
- - **Config:** [bail](/config/bail)
588
-
589
- Stop test execution when given number of tests have failed (default: `0`)
590
-
591
- ### retry.count
592
-
593
- - **CLI:** `--retry.count <times>`
594
- - **Config:** [retry.count](/config/retry#retry-count)
595
-
596
- Number of times to retry a test if it fails (default: `0`)
597
-
598
- ### retry.delay
599
-
600
- - **CLI:** `--retry.delay <ms>`
601
- - **Config:** [retry.delay](/config/retry#retry-delay)
602
-
603
- Delay in milliseconds between retry attempts (default: `0`)
604
-
605
- ### retry.condition
606
-
607
- - **CLI:** `--retry.condition <pattern>`
608
- - **Config:** [retry.condition](/config/retry#retry-condition)
609
-
610
- Regex pattern to match error messages that should trigger a retry. Only errors matching this pattern will cause a retry (default: retry on all errors)
611
-
612
- ### diff.aAnnotation
613
-
614
- - **CLI:** `--diff.aAnnotation <annotation>`
615
- - **Config:** [diff.aAnnotation](/config/diff#diff-aannotation)
616
-
617
- Annotation for expected lines (default: `Expected`)
618
-
619
- ### diff.aIndicator
620
-
621
- - **CLI:** `--diff.aIndicator <indicator>`
622
- - **Config:** [diff.aIndicator](/config/diff#diff-aindicator)
623
-
624
- Indicator for expected lines (default: `-`)
625
-
626
- ### diff.bAnnotation
627
-
628
- - **CLI:** `--diff.bAnnotation <annotation>`
629
- - **Config:** [diff.bAnnotation](/config/diff#diff-bannotation)
630
-
631
- Annotation for received lines (default: `Received`)
632
-
633
- ### diff.bIndicator
634
-
635
- - **CLI:** `--diff.bIndicator <indicator>`
636
- - **Config:** [diff.bIndicator](/config/diff#diff-bindicator)
637
-
638
- Indicator for received lines (default: `+`)
639
-
640
- ### diff.commonIndicator
641
-
642
- - **CLI:** `--diff.commonIndicator <indicator>`
643
- - **Config:** [diff.commonIndicator](/config/diff#diff-commonindicator)
644
-
645
- Indicator for common lines (default: ` `)
646
-
647
- ### diff.contextLines
648
-
649
- - **CLI:** `--diff.contextLines <lines>`
650
- - **Config:** [diff.contextLines](/config/diff#diff-contextlines)
651
-
652
- Number of lines of context to show around each change (default: `5`)
653
-
654
- ### diff.emptyFirstOrLastLinePlaceholder
655
-
656
- - **CLI:** `--diff.emptyFirstOrLastLinePlaceholder <placeholder>`
657
- - **Config:** [diff.emptyFirstOrLastLinePlaceholder](/config/diff#diff-emptyfirstorlastlineplaceholder)
658
-
659
- Placeholder for an empty first or last line (default: `""`)
660
-
661
- ### diff.expand
662
-
663
- - **CLI:** `--diff.expand`
664
- - **Config:** [diff.expand](/config/diff#diff-expand)
665
-
666
- Expand all common lines (default: `true`)
667
-
668
- ### diff.includeChangeCounts
669
-
670
- - **CLI:** `--diff.includeChangeCounts`
671
- - **Config:** [diff.includeChangeCounts](/config/diff#diff-includechangecounts)
672
-
673
- Include comparison counts in diff output (default: `false`)
674
-
675
- ### diff.omitAnnotationLines
676
-
677
- - **CLI:** `--diff.omitAnnotationLines`
678
- - **Config:** [diff.omitAnnotationLines](/config/diff#diff-omitannotationlines)
679
-
680
- Omit annotation lines from the output (default: `false`)
681
-
682
- ### diff.printBasicPrototype
683
-
684
- - **CLI:** `--diff.printBasicPrototype`
685
- - **Config:** [diff.printBasicPrototype](/config/diff#diff-printbasicprototype)
686
-
687
- Print basic prototype Object and Array (default: `true`)
688
-
689
- ### diff.maxDepth
690
-
691
- - **CLI:** `--diff.maxDepth <maxDepth>`
692
- - **Config:** [diff.maxDepth](/config/diff#diff-maxdepth)
693
-
694
- Limit the depth to recurse when printing nested objects (default: `20`)
695
-
696
- ### diff.truncateThreshold
697
-
698
- - **CLI:** `--diff.truncateThreshold <threshold>`
699
- - **Config:** [diff.truncateThreshold](/config/diff#diff-truncatethreshold)
700
-
701
- Number of lines to show before and after each change (default: `0`)
702
-
703
- ### diff.truncateAnnotation
704
-
705
- - **CLI:** `--diff.truncateAnnotation <annotation>`
706
- - **Config:** [diff.truncateAnnotation](/config/diff#diff-truncateannotation)
707
-
708
- Annotation for truncated lines (default: `... Diff result is truncated`)
709
-
710
- ### exclude
711
-
712
- - **CLI:** `--exclude <glob>`
713
- - **Config:** [exclude](/config/exclude)
714
-
715
- Additional file globs to be excluded from test
716
-
717
- ### expandSnapshotDiff
718
-
719
- - **CLI:** `--expandSnapshotDiff`
720
- - **Config:** [expandSnapshotDiff](/config/expandsnapshotdiff)
721
-
722
- Show full diff when snapshot fails
723
-
724
- ### disableConsoleIntercept
725
-
726
- - **CLI:** `--disableConsoleIntercept`
727
- - **Config:** [disableConsoleIntercept](/config/disableconsoleintercept)
728
-
729
- Disable automatic interception of console logging (default: `false`)
730
-
731
- ### typecheck.enabled
732
-
733
- - **CLI:** `--typecheck.enabled`
734
- - **Config:** [typecheck.enabled](/config/typecheck#typecheck-enabled)
735
-
736
- Enable typechecking alongside tests (default: `false`)
737
-
738
- ### typecheck.only
739
-
740
- - **CLI:** `--typecheck.only`
741
- - **Config:** [typecheck.only](/config/typecheck#typecheck-only)
742
-
743
- Run only typecheck tests. This automatically enables typecheck (default: `false`)
744
-
745
- ### typecheck.checker
746
-
747
- - **CLI:** `--typecheck.checker <name>`
748
- - **Config:** [typecheck.checker](/config/typecheck#typecheck-checker)
749
-
750
- Specify the typechecker to use. Available values are: "tsc" and "vue-tsc" and a path to an executable (default: `"tsc"`)
751
-
752
- ### typecheck.allowJs
753
-
754
- - **CLI:** `--typecheck.allowJs`
755
- - **Config:** [typecheck.allowJs](/config/typecheck#typecheck-allowjs)
756
-
757
- Allow JavaScript files to be typechecked. By default takes the value from tsconfig.json
758
-
759
- ### typecheck.ignoreSourceErrors
760
-
761
- - **CLI:** `--typecheck.ignoreSourceErrors`
762
- - **Config:** [typecheck.ignoreSourceErrors](/config/typecheck#typecheck-ignoresourceerrors)
763
-
764
- Ignore type errors from source files
765
-
766
- ### typecheck.tsconfig
767
-
768
- - **CLI:** `--typecheck.tsconfig <path>`
769
- - **Config:** [typecheck.tsconfig](/config/typecheck#typecheck-tsconfig)
770
-
771
- Path to a custom tsconfig file
772
-
773
- ### typecheck.spawnTimeout
774
-
775
- - **CLI:** `--typecheck.spawnTimeout <time>`
776
- - **Config:** [typecheck.spawnTimeout](/config/typecheck#typecheck-spawntimeout)
777
-
778
- Minimum time in milliseconds it takes to spawn the typechecker
779
-
780
- ### project
781
-
782
- - **CLI:** `--project <name>`
783
-
784
- The name of the project to run if you are using Vitest workspace feature. This can be repeated for multiple projects: `--project=1 --project=2`. You can also filter projects using wildcards like `--project=packages*`, and exclude projects with `--project=!pattern`.
785
-
786
- ### slowTestThreshold
787
-
788
- - **CLI:** `--slowTestThreshold <threshold>`
789
- - **Config:** [slowTestThreshold](/config/slowtestthreshold)
790
-
791
- Threshold in milliseconds for a test or suite to be considered slow (default: `300`)
792
-
793
- ### teardownTimeout
794
-
795
- - **CLI:** `--teardownTimeout <timeout>`
796
- - **Config:** [teardownTimeout](/config/teardowntimeout)
797
-
798
- Default timeout of a teardown function in milliseconds (default: `10000`)
799
-
800
- ### maxConcurrency
801
-
802
- - **CLI:** `--maxConcurrency <number>`
803
- - **Config:** [maxConcurrency](/config/maxconcurrency)
804
-
805
- Maximum number of concurrent tests and suites during test file execution (default: `5`)
806
-
807
- ### expect.requireAssertions
808
-
809
- - **CLI:** `--expect.requireAssertions`
810
- - **Config:** [expect.requireAssertions](/config/expect#expect-requireassertions)
811
-
812
- Require that all tests have at least one assertion
813
-
814
- ### expect.poll.interval
815
-
816
- - **CLI:** `--expect.poll.interval <interval>`
817
- - **Config:** [expect.poll.interval](/config/expect#expect-poll-interval)
818
-
819
- Poll interval in milliseconds for `expect.poll()` assertions (default: `50`)
820
-
821
- ### expect.poll.timeout
822
-
823
- - **CLI:** `--expect.poll.timeout <timeout>`
824
- - **Config:** [expect.poll.timeout](/config/expect#expect-poll-timeout)
825
-
826
- Poll timeout in milliseconds for `expect.poll()` assertions (default: `1000`)
827
-
828
- ### printConsoleTrace
829
-
830
- - **CLI:** `--printConsoleTrace`
831
- - **Config:** [printConsoleTrace](/config/printconsoletrace)
832
-
833
- Always print console stack traces
834
-
835
- ### includeTaskLocation
836
-
837
- - **CLI:** `--includeTaskLocation`
838
- - **Config:** [includeTaskLocation](/config/includetasklocation)
839
-
840
- Collect test and suite locations in the `location` property
841
-
842
- ### attachmentsDir
843
-
844
- - **CLI:** `--attachmentsDir <dir>`
845
- - **Config:** [attachmentsDir](/config/attachmentsdir)
846
-
847
- The directory where attachments from `context.annotate` are stored in (default: `.vitest-attachments`)
848
-
849
- ### run
850
-
851
- - **CLI:** `--run`
852
-
853
- Disable watch mode
854
-
855
- ### color
856
-
857
- - **CLI:** `--no-color`
858
-
859
- Removes colors from the console output
860
-
861
- ### clearScreen
862
-
863
- - **CLI:** `--clearScreen`
864
-
865
- Clear terminal screen when re-running tests during watch mode (default: `true`)
866
-
867
- ### configLoader
868
-
869
- - **CLI:** `--configLoader <loader>`
870
-
871
- Use `bundle` to bundle the config with esbuild or `runner` (experimental) to process it on the fly. This is only available in vite version 6.1.0 and above. (default: `bundle`)
872
-
873
- ### standalone
874
-
875
- - **CLI:** `--standalone`
876
-
877
- Start Vitest without running tests. Tests will be running only on change. If browser mode is enabled, the UI will be opened automatically. This option is ignored when CLI file filters are passed. (default: `false`)
878
-
879
- ### listTags
880
-
881
- - **CLI:** `--listTags [type]`
882
-
883
- List all available tags instead of running tests. `--list-tags=json` will output tags in JSON format, unless there are no tags.
884
-
885
- ### clearCache
886
-
887
- - **CLI:** `--clearCache`
888
-
889
- Delete all Vitest caches, including `experimental.fsModuleCache`, without running any tests. This will reduce the performance in the subsequent test run.
890
-
891
- ### tagsFilter
892
-
893
- - **CLI:** `--tagsFilter <expression>`
894
-
895
- Run only tests with the specified tags. You can use logical operators `&&` (and), `||` (or) and `!` (not) to create complex expressions, see [Test Tags](/guide/test-tags#syntax) for more information.
896
-
897
- ### strictTags
898
-
899
- - **CLI:** `--strictTags`
900
- - **Config:** [strictTags](/config/stricttags)
901
-
902
- Should Vitest throw an error if test has a tag that is not defined in the config. (default: `true`)
903
-
904
- ### experimental.fsModuleCache
905
-
906
- - **CLI:** `--experimental.fsModuleCache`
907
- - **Config:** [experimental.fsModuleCache](/config/experimental#experimental-fsmodulecache)
908
-
909
- Enable caching of modules on the file system between reruns.
910
-
911
- ### experimental.importDurations.print
912
-
913
- - **CLI:** `--experimental.importDurations.print <boolean|on-warn>`
914
- - **Config:** [experimental.importDurations.print](/config/experimental#experimental-importdurations-print)
915
-
916
- When to print import breakdown to CLI terminal. Use `true` to always print, `false` to never print, or `on-warn` to print only when imports exceed the warn threshold (default: false).
917
-
918
- ### experimental.importDurations.limit
919
-
920
- - **CLI:** `--experimental.importDurations.limit <number>`
921
- - **Config:** [experimental.importDurations.limit](/config/experimental#experimental-importdurations-limit)
922
-
923
- Maximum number of imports to collect and display (default: 0, or 10 if print or UI is enabled).
924
-
925
- ### experimental.importDurations.failOnDanger
926
-
927
- - **CLI:** `--experimental.importDurations.failOnDanger`
928
- - **Config:** [experimental.importDurations.failOnDanger](/config/experimental#experimental-importdurations-failondanger)
929
-
930
- Fail the test run if any import exceeds the danger threshold (default: false).
931
-
932
- ### experimental.importDurations.thresholds.warn
933
-
934
- - **CLI:** `--experimental.importDurations.thresholds.warn <number>`
935
- - **Config:** [experimental.importDurations.thresholds.warn](/config/experimental#experimental-importdurations-thresholds-warn)
936
-
937
- Warning threshold - imports exceeding this are shown in yellow/orange (default: 100).
938
-
939
- ### experimental.importDurations.thresholds.danger
940
-
941
- - **CLI:** `--experimental.importDurations.thresholds.danger <number>`
942
- - **Config:** [experimental.importDurations.thresholds.danger](/config/experimental#experimental-importdurations-thresholds-danger)
943
-
944
- Danger threshold - imports exceeding this are shown in red (default: 500).
945
-
946
- ### experimental.viteModuleRunner
947
-
948
- - **CLI:** `--experimental.viteModuleRunner`
949
- - **Config:** [experimental.viteModuleRunner](/config/experimental#experimental-vitemodulerunner)
950
-
951
- Control whether Vitest uses Vite's module runner to run the code or fallback to the native `import`. (default: `true`)
952
-
953
- ### experimental.nodeLoader
954
-
955
- - **CLI:** `--experimental.nodeLoader`
956
- - **Config:** [experimental.nodeLoader](/config/experimental#experimental-nodeloader)
957
-
958
- Controls whether Vitest will use Node.js Loader API to process in-source or mocked files. This has no effect if `viteModuleRunner` is enabled. Disabling this can increase performance. (default: `true`)
959
-
960
- ### experimental.vcsProvider
961
-
962
- - **CLI:** `--experimental.vcsProvider <path>`
963
- - **Config:** [experimental.vcsProvider](/config/experimental#experimental-vcsprovider)
964
-
965
- Custom provider for detecting changed files. (default: `git`)
966
-
967
- ### experimental.preParse
968
-
969
- - **CLI:** `--experimental.preParse`
970
- - **Config:** [experimental.preParse](/config/experimental#experimental-preparse)
971
-
972
- Parse test specifications before running them. This will apply `.only` flag and test name pattern across all files without running them. (default: `false`)