Skip to content

Commit ccabc42

Browse files
committed
Update GettingStarted.md with current Vite related information
1 parent c54bccd commit ccabc42

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/GettingStarted.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ Jest can be used in projects that use [webpack](https://webpack.js.org/) to mana
125125

126126
### Using Vite
127127

128-
Jest can be used in projects that use [vite](https://vitejs.dev/) to serve source code over native ESM to provide some frontend tooling, vite is an opinionated tool and does offer some out-of-the box workflows. Jest is not fully supported by vite due to how the [plugin system](https://github.com/vitejs/vite/issues/1955#issuecomment-776009094) from vite works, but there are some working examples for first-class jest integration using `vite-jest`, since this is not fully supported, you might as well read the [limitation of the `vite-jest`](https://github.com/sodatea/vite-jest/tree/main/packages/vite-jest#limitations-and-differences-with-commonjs-tests). Refer to the [vite guide](https://vitejs.dev/guide/) to get started.
128+
Jest is not supported by Vite due to incompatibilities with the Vite [plugin system](https://github.com/vitejs/vite/issues/1955#issuecomment-776009094).
129+
130+
There are examples for Jest integration with Vite in the [vite-jest](https://github.com/sodatea/vite-jest) library. However, as of 5/10/24, this library is not compatible with versions of Vite later than 2.4.2.
131+
132+
One current (5/10/24) alternative is [Vitest](https://vitest.dev/) which has an API intended to be similar to Jest and a [migration guide](https://vitest.dev/guide/migration.html#migrating-from-jest).
129133

130134
### Using Parcel
131135

0 commit comments

Comments
 (0)