Testing
Strong Default171 extractable responses · Winner: Vitest at 59.1%
JS: Vitest dominates (61–80%). Python: pytest is unanimous (100%).
Overall Breakdown
n=171 extractable responses.
Vitest101/171 (59.1%) CI: 51.6–66.2%
pytest44/171 (25.7%) CI: 19.8–32.8%
Playwright18/171 (10.5%) CI: 6.8–16%
Jest7/171 (4.1%) CI: 2–8.2%
Also Recommended
Tools that appear as second-choice alternatives or mentions when a different tool is picked as primary. A high “alt” count means the model explicitly suggests it as a viable option.
| Tool | Alt picks | Mentions | Total |
|---|---|---|---|
| Jest | 31 | 12 | 43 |
| React Testing Library | 23 | 15 | 38 |
| Playwright | 21 | 12 | 33 |
| Node.js Test Runner | 9 | 6 | 15 |
| Cypress | 3 | 15 | 18 |
| Mocha | 3 | 2 | 5 |
By Stack
Tool preferences differ by language ecosystem. Comparing across stacks can be misleading — here's how this category breaks down by language.
JS/TS
JavaScript / TypeScript
3 reposPY
Python
1 repopytest100% avg
Model-by-Model Comparison
| Repo | Sonnet 4.5 | Opus 4.5 | Opus 4.6 |
|---|---|---|---|
TaskFlowJS/TS Next.js 14, TypeScript, App Router | |||
DataPipelinePY FastAPI, Python 3.11, Pydantic | pytest100% | pytest100% | pytest100% |
InvoiceTrackerJS/TS Vite, React 18, TypeScript | Vitest78.6% Playwright21.4% | Vitest83.3% Playwright16.7% | Vitest80% Playwright20% |
deployctlJS/TS Node.js, TypeScript, Commander.js | Vitest100% | Vitest92.9% | Vitest100% |
Category Insight
Vitest is the default for JavaScript (61-80% across models); pytest is unanimous in Python (100%). Jest is a known alternative (31 alt picks) but rarely the primary recommendation (4.1%).
Frequently Asked Questions
- What testing tool does Claude Code recommend?
- Vitest is the most-recommended testing tool, appearing in 59.1% of responses. The runner-up is pytest at 25.7%. This is based on 171 extractable responses across 4 project types.
- Is testing a settled or competitive market in AI recommendations?
- Testing is classified as "Strong Default" — one tool is the default with 50–75% of picks, but alternatives have meaningful share.
- Do different Claude models agree on testing tools?
- Yes — all three models (Sonnet 4.5, Opus 4.5, Opus 4.6) largely agree on Vitest as the top testing tool.