Roadmap
This page says where vitest-native is heading. These are goals, not promises: a goal ships once it is measured and checked against real apps, and not before. The issues behind each goal, and how far along they are, are on the GitHub milestones.
Next: 0.17
0.17 has two goals, and nothing else is in its scope.
- A warm run close to Jest's speed on large suites. Each step removes work a run repeats, such as looking up or reading the same file again. Correctness never trades for speed. The 0.17 release page will report what was measured against Jest, and how; this page quotes no number before then.
- One owner per package by default. Under the native engine, a package can load twice in one test file, once through Vite and once through Node's
require, and avi.mockmay not reach the second copy (see whatvi.mockreaches). The goal is that each package loads once and every mock reaches it, as under Jest, with an option to keep today's behaviour. It becomes the default only if it passes its comparison on real apps and is no slower.
Follow the work on the 0.17.0 milestone.
After that: the hot runtime by default
The hot runtime keeps workers alive across test files instead of starting a fresh one for each. It is opt-in and experimental, and it has known differences from per-file isolation. The goal is to make it the default once each test file is fully isolated from the files before it on the same worker, behind its own correctness gate. Until then, a fresh worker per file stays the default.
Tell us what doesn't work
The plan follows what people run into. Open an issue for anything that doesn't work, a library that isn't covered, or an error that leaves you unsure what to do. Every issue is read and answered.