Skip to content

framework

Vitest

Vitest is a fast JavaScript/TypeScript test runner built on Vite, supporting unit and browser-mode testing with a native watch mode and UI.

Known aliases

  • npx vitest
  • vi
  • vitest
  • vitest 3.2.7
  • vitest/browser
  • Vitest Browser Mode
  • vitest.dev
  • vitest run
  • Vitest UI

Relationships

No evidence-backed relationships are recorded.

Current stories

build1 publisher

Freeze the pagination contract before the agent writes the list handler

Offset paging passes a static test suite and then skips rows the moment a merchant inserts a product mid-read. A dev.to case study answers that by freezing the sort key, tie-breaker and error codes in a spec file the agent cannot edit.

Publishers:dev.to

Reality

Evidence45
Adoption
Insufficient
Hype gap+25
Incentives20
Confidence50
build1 publisher

A bare test() in node --test cancels the subtest you did not await

Node's built-in runner now covers mocking, fake timers and TypeScript execution, so a backend library can skip the framework install. Adopting it means learning where test() and describe() disagree, and living with three experimental flags.

Publishers:dev.to

Reality

Evidence62
Adoption
Insufficient
Hype gap+18
Incentives18
Confidence58
build1 publisher

Vitest 5.0 wipes recorded mock calls before every test by default

The new default runs vi.clearAllMocks() ahead of each test, so calls recorded in a setup file or a beforeAll hook are gone before the assertion looks for them, and the floor moves to Vite 6.4 and Node 22.12.

Publishers:vitest.dev

Reality

Evidence74
Adoption
Insufficient
Hype gap−15
Incentives34
Confidence68