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/.vitepress/components/FeaturesList.vue
+1-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
>
7
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
-
<ListItem><atarget="_blank"href="https://twitter.com/antfu7/status/1468233216939245579"rel="noopener noreferrer">Smart & instant watch mode, like HMR for tests!</a></ListItem>
9
+
<ListItem>Smart & instant watch mode, like HMR for tests!</ListItem>
10
10
<ListItem>Component testing for Vue, React, Svelte, Lit, Marko and more</ListItem>
Copy file name to clipboardExpand all lines: docs/guide/comparisons.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ title: Comparisons with Other Test Runners | Guide
8
8
9
9
[Jest](https://jestjs.io/) took over the Testing Framework space by providing out-of-the-box support for most JavaScript projects, a comfortable API (`it` and `expect`), and the full pack of testing features that most setups would require (snapshots, mocks, coverage). We are thankful to the Jest team and community for creating a delightful testing API and pushing forward a lot of the testing patterns that are now a standard in the web ecosystem.
10
10
11
-
It is possible to use Jest in Vite setups. [@sodatea](https://twitter.com/haoqunjiang) built [vite-jest](https://github.com/sodatea/vite-jest#readme), which aims to provide first-class Vite integration for [Jest](https://jestjs.io/). The last [blockers in Jest](https://github.com/sodatea/vite-jest/blob/main/packages/vite-jest/README.md#vite-jest) have been solved, so this is a valid option for your unit tests.
11
+
It is possible to use Jest in Vite setups. [@sodatea](https://bsky.app/profile/haoqun.dev) built [vite-jest](https://github.com/sodatea/vite-jest#readme), which aims to provide first-class Vite integration for [Jest](https://jestjs.io/). The last [blockers in Jest](https://github.com/sodatea/vite-jest/blob/main/packages/vite-jest/README.md#vite-jest) have been solved, so this is a valid option for your unit tests.
12
12
13
13
However, in a world where we have [Vite](https://vitejs.dev) providing support for the most common web tooling (TypeScript, JSX, most popular UI Frameworks), Jest represents a duplication of complexity. If your app is powered by Vite, having two different pipelines to configure and maintain is not justifiable. With Vitest you get to define the configuration for your dev, build and test environments as a single pipeline, sharing the same plugins and the same vite.config.js.
Copy file name to clipboardExpand all lines: docs/guide/features.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Learn more at [Configuring Vitest](/guide/#configuring-vitest).
22
22
$ vitest
23
23
```
24
24
25
-
When you modify your source code or the test files, Vitest smartly searches the module graph and only reruns the related tests, [just like how HMR works in Vite!](https://twitter.com/antfu7/status/1468233216939245579)
25
+
When you modify your source code or the test files, Vitest smartly searches the module graph and only reruns the related tests, just like how HMR works in Vite!
26
26
27
27
`vitest` starts in `watch mode`**by default in development environment** and `run mode` in CI environment (when `process.env.CI` presents) smartly. You can use `vitest watch` or `vitest run` to explicitly specify the desired mode.
Copy file name to clipboardExpand all lines: docs/guide/why.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ title: Why Vitest | Guide
5
5
# Why Vitest
6
6
7
7
:::tip NOTE
8
-
This guide assumes that you are familiar with Vite. A good way to start learning more is to read the [Why Vite Guide](https://vitejs.dev/guide/why.html), and [Next generation frontend tooling with ViteJS](https://www.youtube.com/watch?v=UJypSr8IhKY), a stream where [Evan You](https://twitter.com/youyuxi) did a demo explaining the main concepts.
8
+
This guide assumes that you are familiar with Vite. A good way to start learning more is to read the [Why Vite Guide](https://vitejs.dev/guide/why.html), and [Next generation frontend tooling with ViteJS](https://www.youtube.com/watch?v=UJypSr8IhKY), a stream where [Evan You](https://bsky.app/profile/evanyou.me) did a demo explaining the main concepts.
0 commit comments