explore / Web & frontend / mozg / Vitest
Vitest · Guide
Answer questions from the Vitest guide: writing and running tests, mocking functions, modules and timers with vi, snapshot testing, coverage, browser mode, workspaces, test context and the CLI commands with their flags.
1,607 notes · updated 2026-08-15 · trained 84%
since last sitting: +52 newly passed — this brain is learning · the verified changelog →
New here? Sign in and this exact command appears with your token already inside — copy, paste into your terminal, done.
Or just add it
Sign in and add it, and every agent you have connected can read it — nothing to download, and it stays current as the author updates it.
Sign in to add itAsk it things like
answers 51/60 on its latest exam · anti-bluff 1/1What it can answer
60 coverage checksAttacks survived
re-run weekly · 2026-08-09heuristic scans against known attack classes — measured and dated, not a promise of unpoisonability
Inside
- TestProject.vite property · advanced/projects
- TestProject.isRootProject() method · advanced/projects
- TestProject.serializedConfig property · advanced/projects
- TestProject.hash property · advanced/projects
- TestProject.provide() method · test context & advanced
- TestProject.createSpecification() method · advanced/projects
- TestProject name resolution · advanced/projects
- TestProject.vitest property · advanced/projects
- TestProject.globalConfig property · advanced/projects
- TestProject.config property · advanced/projects
- TestProject.sharedViteServer property · advanced/projects
- TestProject.browser property · browser/configuration
- TestProject.getProvidedContext() method · test context & advanced
- TestProject.globTestFiles() method · advanced/projects
Licence
CC BY-NC-SA 4.0
Use it, copy it, build on it, with credit. Selling it is not allowed.