Hacker ApprovedDepartments

Vitest

Hacker Approved

Ranked 3 of 8 testing frameworks by recommenders

Fast, Jest-compatible test runner built on Vite that people adopt for new projects; the common caveat is trouble with mocks and debugging.

Fast, Jest-compatible test runner built on Vite that people adopt for new projects; the common caveat is trouble with mocks and debugging.

25 people gave an opinion

recommend it
17
criticize it
8
approval share
68%
Each figure is one person. RecommendsCriticizes

Recommended in 8 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: not recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: not recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: not recommended
  11. September 2026: recommended
  12. October 2026: not recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 17 people recommend itNeeds 10 or more, met.
  • 2.1 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 8 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Jest-compatible test runner on Vite

    “it's a jest-compatible runner integrated to Vite”

    Comment from 2 Jul 2026 in “Vite+ Beta”

    “jest -> vitest (works with vite)”

    Comment from 2 Jul 2026 in “Vite+ Beta”
  • Default choice for new projects

    “I love Vite, Vitest, Oxlint and Oxfmt and look in their direction for most of my new projects!”

    Comment from 2 Jul 2026 in “Vite+ Beta”

    “my default choice for new projects”

    Comment from 27 Jun 2026 in “Jest/Vitest interactive course (runs in the browser)”
  • Part of the Vite toolchain

    “I love Vite, Vitest, Oxlint and Oxfmt and look in their direction for most of my new projects!”

    Comment from 2 Jul 2026 in “Vite+ Beta”

    “Sure beats opening some ancient project and seeing some mix of Vite, Vitest, Oxlint and Oxfmt”

    Comment from 2 Jul 2026 in “Vite+ Beta”

    “VoidZero's tools are all world-class”

    Comment from 4 Jun 2026 in “VoidZero Is Joining Cloudflare”
  • Browser mode for testing

    “Upgrading to vitest with browser mode can solve these problems”

    Comment from 20 Feb 2026 in “Web Components: The Framework-Free Renaissance”

    “yes, i've used vitest browser mode to test canvas operations”

    Comment from 30 Dec 2025 in “Vitest Browser Mode Guide”

What people warn about

Each mark is one comment

  • Mocks cause trouble and misuse

    “i have had a lot of trouble with vitest mocks for postgres and redis so far”

    Comment from 4 Jan 2026 in “Ask HN: What's the future of software testing and QA?”

    “far too easy to call mock() in JS (with Jest/Vitest)”

    Comment from 27 Jun 2026 in “Jest/Vitest interactive course (runs in the browser)”
  • Hard to debug or isolate

    “it's a pain to just "detach" for a specific frame and run that test in isolation”

    Comment from 30 Dec 2025 in “Vitest Browser Mode Guide”

    “Nearly impossible to set breakpoints (they disappear in refresh)”

    Comment from 30 Dec 2025 in “Vitest Browser Mode Guide”

Other testing frameworks people recommend

The four most recommended other testing frameworks, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Vitest compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Mockito191359%34 yrs4 owners—
cargo-nextest18195%3——
VitestThis page17868%8—Approved
Testcontainers14382%8—Approved
pytest12571%9—Approved
See all 8 testing frameworks, ranked

What people said

25 of the 29 comments that mention it, newest first. Each links to the original comment.

“vitest and object lifecycle crap”

CriticizesComment from 2 Oct 2026 in “SvelteKit 3”

“would be a nice performance win”

RecommendsComment from 21 Sep 2026 in “AI coding has made CI a bottleneck, so we reworked ours to keep up”

“The mere enumeration shows how bad it is.”

CriticizesComment from 24 Jul 2026 in “Buz – A fork of Bun using modern Zig, with sub-1s incremental builds”

“jest -> vitest (works with vite)”

RecommendsComment from 2 Jul 2026 in “Vite+ Beta”

“It is pretty sweet with that setup.”

RecommendsComment from 2 Jul 2026 in “Vite+ Beta”

“However vitest is still great!”

RecommendsComment from 2 Jul 2026 in “Vite+ Beta”

“it's 1.5-2x slower than Jest”

CriticizesComment from 2 Jul 2026 in “Vite+ Beta”

“it's a jest-compatible runner integrated to Vite”

RecommendsComment from 2 Jul 2026 in “Vite+ Beta”

“an ultra fast test runner”

RecommendsComment from 2 Jul 2026 in “Vite+ Beta”

“the jank levels seem to generally be decreasing with every next attempt to get things right”

RecommendsComment from 2 Jul 2026 in “Vite+ Beta”

“Sure beats opening some ancient project and seeing some mix of Vite, Vitest, Oxlint and Oxfmt”

RecommendsComment from 2 Jul 2026 in “Vite+ Beta”

“I love Vite, Vitest, Oxlint and Oxfmt and look in their direction for most of my new projects!”

RecommendsComment from 2 Jul 2026 in “Vite+ Beta”

“far too easy to call mock() in JS (with Jest/Vitest)”

CriticizesComment from 27 Jun 2026 in “Jest/Vitest interactive course (runs in the browser)”

“my default choice for new projects”

RecommendsComment from 27 Jun 2026 in “Jest/Vitest interactive course (runs in the browser)”

“Vitest is a brilliant software”

RecommendsComment from 27 Jun 2026 in “Jest/Vitest interactive course (runs in the browser)”

“VoidZero's tools are all world-class”

RecommendsComment from 4 Jun 2026 in “VoidZero Is Joining Cloudflare”

“Coincided with test bugs so I moved to vitest completely.”

RecommendsComment from 22 May 2026 in “Yt-dlp – [Announcement] Bun support is now limited and deprecated”

“over-complicated nature of both Jest and Vitest”

CriticizesComment from 19 May 2026 in “Mini Shai-Hulud Strikes Again: 314 npm Packages Compromised”

“Instead of sending adding Vitest to the backlog graveyard, I had it integrated and running in one or two evenings”

RecommendsComment from 6 Mar 2026 in “Labor Market Impacts of AI”

“Upgrading to vitest with browser mode can solve these problems”

RecommendsComment from 20 Feb 2026 in “Web Components: The Framework-Free Renaissance”

“Vitest configs act as quality gates.”

RecommendsComment from 17 Feb 2026 in “Show HN: I built a tool to un-dumb Claude Code's CLI output (Local Log Viewer)”

“i have had a lot of trouble with vitest mocks for postgres and redis so far”

CriticizesComment from 4 Jan 2026 in “Ask HN: What's the future of software testing and QA?”

“Nearly impossible to set breakpoints (they disappear in refresh)”

CriticizesComment from 30 Dec 2025 in “Vitest Browser Mode Guide”

“yes, i've used vitest browser mode to test canvas operations”

RecommendsComment from 30 Dec 2025 in “Vitest Browser Mode Guide”

“it's a pain to just "detach" for a specific frame and run that test in isolation”

MixedComment from 30 Dec 2025 in “Vitest Browser Mode Guide”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.