{"slug":"vitest","title":"vitest","summary":"Imported from paulrberg/agent-skills/skills/vitest.","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-10-01T14:18:58.481893Z","repo":{"url":"https://github.com/PaulRBerg/agent-skills","stars":94,"forks":7,"license":"MIT","updatedAt":"2026-10-01T13:58:51Z"},"bodyHtml":"<hr>\n<h2>name: vitest\ndescription:\n\"Use for Vitest in TypeScript projects (Node, bun, React/Next.js, Effect): write, run, or debug unit/component tests,\nmocks, testing utilities, and coverage.\"</h2>\n<h1>Vitest</h1>\n<p>Repository configuration, projects, setup, imports/globals, environments, aliases, test placement, and cleanup own the\ntest contract. Inspect them and nearby tests before adding generic patterns. Do not add globals, jsdom, coverage, new\nsetup, or browser mode by default.</p>\n<h2>Workflow</h2>\n<p>Define the behavior or regression, test its observable public result, and mock system boundaries rather than the\nbehavior under test. Follow local fixture and cleanup ownership. In Effect repositories, use established\n<code>@effect/vitest</code> conventions such as <code>it.effect</code>, Layers, and TestClock rather than generic replacements. For a bug fix,\nreproduce the failure before relying on a passing result when practical.</p>\n<p>Read <a href=\"references/testing-patterns.md\">patterns</a> for component, async, fixture, snapshot, tag, or browser questions;\n<a href=\"references/mocking.md\">mocking</a> for module, timer, spy, or global boundaries;\n<a href=\"references/configuration.md\">configuration</a> for projects, migration, coverage, or reporter selection; and\n<a href=\"references/troubleshooting.md\">troubleshooting</a> for hangs, discovery, resolution, or flaky state.</p>\n<p>For test changes, run the narrowest established command for the changed behavior, then the affected package suite only\nwhen shared setup or contracts changed. Use <code>nlx vitest run</code> only when no project recipe or script exists. Reuse passing\nresults until new edits, failures, or unresolved concerns justify another run.</p>\n<p>Completion requires a meaningful passing focused test under repository configuration and concise command/result evidence\nfor test changes. A read-only explanation instead requires supporting configuration or API evidence; do not add or run\ntests merely to satisfy the change workflow. Use <code>### \uD83E\uDDEA Regression covered</code> when red-before-green evidence exists;\notherwise <code>### \uD83E\uDDEA Tests verified</code> for executed tests.</p>\n","files":[{"path":"agents/openai.yaml","sizeBytes":42,"isText":true},{"path":"references/configuration.md","sizeBytes":3519,"isText":true},{"path":"references/mocking.md","sizeBytes":1344,"isText":true},{"path":"references/testing-patterns.md","sizeBytes":1202,"isText":true},{"path":"references/troubleshooting.md","sizeBytes":1281,"isText":true},{"path":"SKILL.md","sizeBytes":2043,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-10-01T14:20:43.262261Z","sha256":"E923C98C69A927756733BDDDED1B8736B78A88EDC17A8F55A485B92C7905B991","sizeBytes":5559},"review":null,"source":{"repositoryUrl":"https://github.com/PaulRBerg/agent-skills","path":"skills/vitest","license":"MIT","commit":"913232a0d608198e178e7adb9ff830ceef4776fc","subtreeSha":"BE8B73F7D45E959E7790C83A29AF3503F310CD6D0BAF8679A4BF718C2DCB28F0","lastSyncedAt":"2026-10-01T14:18:48.927149Z"},"reviewedAt":"2026-10-01T14:24:17.624475Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/PaulRBerg/agent-skills/tree/main/skills/vitest"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install paulrberg-agent-skills@llmmart"},{"target":"git","command":"git clone https://github.com/PaulRBerg/agent-skills.git"}]}