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
-[Chai](https://www.chaijs.com/) built-in for assertions, with [Jest expect](https://jestjs.io/docs/expect) compatible APIs.
35
+
-[Chai](https://www.chaijs.com/) built-in for assertions, with [Jest expect](https://jestjs.io/docs/expect) compatible APIs
36
36
-[Smart & instant watch mode](https://vitest.dev/guide/features.html#watch-mode), like HMR for tests!
37
37
-[Native code coverage](https://vitest.dev/guide/features.html#coverage) via [`v8`](https://v8.dev/blog/javascript-code-coverage) or [`istanbul`](https://istanbul.js.org/).
38
38
-[Tinyspy](https://github.com/tinylibs/tinyspy) built-in for mocking, stubbing, and spies.
@@ -45,6 +45,7 @@ Next generation testing framework powered by Vite.
45
45
- ESM first, top level await
46
46
- Out-of-box TypeScript / JSX support
47
47
- Filtering, timeouts, concurrent for suite and tests
48
+
- Sharding support
48
49
49
50
> Vitest 1.0 requires Vite >=v5.0.0 and Node >=v18.0.0
Copy file name to clipboardExpand all lines: docs/.vitepress/components/FeaturesList.vue
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
dir="auto"
5
5
flex="~ col gap2 md:gap-3"
6
6
>
7
-
<ListItem><atarget="_blank"href="https://vitejs.dev"rel="noopener noreferrer">Vite</a>'s config, transformers, resolvers, and plugins.</ListItem>
7
+
<ListItem><atarget="_blank"href="https://vitejs.dev"rel="noopener noreferrer">Vite</a>'s config, transformers, resolvers, and plugins</ListItem>
8
8
<ListItem>Use the same setup from your app to run the tests!</ListItem>
9
9
<ListItem><atarget="_blank"href="https://twitter.com/antfu7/status/1468233216939245579"rel="noopener noreferrer">Smart & instant watch mode, like HMR for tests!</a></ListItem>
10
10
<ListItem>Component testing for Vue, React, Svelte, Lit, Marko and more</ListItem>
@@ -25,6 +25,7 @@
25
25
<ListItem>Code coverage via <atarget="_blank"href="https://v8.dev/blog/javascript-code-coverage"rel="noopener noreferrer">v8</a> or <atarget="_blank"href="https://istanbul.js.org/"rel="noopener noreferrer">istanbul</a></ListItem>
<ListItem>Type Testing via <atarget="_blank"href="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/mmkal/expect-type"rel="noopener noreferrer">expect-type</a></ListItem>
Copy file name to clipboardExpand all lines: docs/guide/cli-table.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,3 +120,4 @@
120
120
|`--no-color`| Removes colors from the console output |
121
121
|`--clearScreen`| Clear terminal screen when re-running tests during watch mode (default: `true`) |
122
122
|`--standalone`| Start Vitest without running tests. File filters will be ignored, tests will be running only on change (default: `false`) |
123
+
|`--mergeReports [path]`| Paths to blob reports directory. If this options is used, Vitest won't run any tests, it will only report previously recorded tests |
Copy file name to clipboardExpand all lines: docs/guide/cli.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,4 +113,18 @@ vitest --api=false
113
113
You cannot use this option with `--watch` enabled (enabled in dev by default).
114
114
:::
115
115
116
+
::: tip
117
+
If `--reporter=blob` is used without an output file, the default path will include the current shard config to avoid collisions with other Vitest processes.
118
+
:::
119
+
120
+
### merge-reports
121
+
122
+
-**Type:**`boolean | string`
123
+
124
+
Merges every blob report located in the specified folder (`.vitest-reports` by default). You can use any reporters with this command (except [`blob`](/guide/reporters#blob-reporter)):
0 commit comments