The introduction of in-browser ES modules support led to the creation of the popular JavaScript bundler and development server Vite, which uses ES modules to simplify and speed up bundling during development. While it’s possible to use Jest with Vite, this approach creates separate pipelines for...
tests are fast in both Jest and Vitest (the difference is really minor, and not always in favour of the same framework). However, in addition, Jest is isolating much better, so the trade-offs between speed and correctness case are relevant for Vitest only, while with Jest one can get ...
Type: string[] Default: ['**/node_modules/**', '**/dist/**', '**/cypress/**', '**/.{idea,git,cache,output,temp}/**', '**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*'] CLI: vitest --exclude "**/excluded-file"...
内置[Tinyspy](https://github.com/tinylibs/tinyspy) 用于在 `vi` 对象上使用 `jest` 兼容的 API 进行对象模拟。 ```ts twoslash ```ts import { expect, vi } from 'vitest' const fn = vi.fn() fn('hello', 1) Expand All @@ -129,7 +157,11 @@ fn('world', 2) expect(fn.mock....
Describe your changes These changes does the following: Remove Create-React-App Migrates from Webpack to Vite Migrates Jest to Vitest It's hard to separate these out because CRA provided a lot of...