vitest SKILL.md skillA
vitest from xobotyi/cc-foundry is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add xobotyi/cc-foundry/vitest@git:20261024.5582b38Pins git:20261024.5582b38 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- xobotyi/cc-foundry
- Path
plugins/javascript/skills/vitest/SKILL.md- Versions recorded
- 5
- Latest version
- git:20261024.5582b38, committed Oct 24, 2026
- First version recorded
- Mar 14, 2026
- Size
- 26,247 bytes
- Repository stars
- 23
- License
- MIT
Write and review Vitest tests: structure, assertions, fixtures and lifecycle, the mocking surface and its hoisting rules, snapshots, configuration and projects, pools and isolation, coverage, type tests, and migration from Jest.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
A test earns its place by failing when the behavior breaks, and at no other time. Three biases decide most calls: - **Mock the boundary, never the unit under test.** Every mock asserts that the real thing cannot run here. Most such assertions are false, and each false one buys a test that keeps passing after the code is wrong. - **Prefer a fixture to a hook.** `test.extend` initializes on demand, tears down in its own scope, and declares its dependencies in the signature. A `beforeEach` runs for every test in scope whether that test needs it or not. - **The installed major decides what may be written**, not the shape recalled from an older one. ## Version and Toolchain Vitest 4 is the target. Read the installed version out of the lockfile before touching a config file — the configuration surface moved in 3.2, 4.0 and 4.1, and a key from the wrong one is silently ignored or loudly rejected. Vitest 4.1 requires Node `^20 || ^22 || >=24` and Vite `^6 || ^7 || ^8`. Vitest 4.0 shipped requiring Vite 6 and Node 20; 4.1 added Vite 8 and uses the installed `vite` rather than a bundled copy. …
Read the whole file at its exact version.
How to install
mdr add xobotyi/cc-foundry/vitest@sha256:a0ac8a83276c08c2The line at the top of this page pins the label git:20261024.5582b38, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_q7l53ugfjandi3lb)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Mar 14, 2026 and Oct 24, 2026, about one every 56 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261024.5582b38 latest | 2026-10-24 | 5582b38 | 26,247 B | A | view · diff |
| git:20261013.953409c | 2026-10-13 | 953409c | 26,189 B | A | view · diff |
| git:20260902.512ff02 | 2026-09-02 | 512ff02 | 23,574 B | A | view · diff |
| git:20260902.f28c2b2 | 2026-09-02 | f28c2b2 | 25,854 B | A | view · diff |
| git:20260314.9629b35 | 2026-03-14 | 9629b35 | 9,554 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (26247 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
xobotyi/cc-foundry · 23 stars · license MIT · pushed 2026-11-06 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_q7l53ugfjandi3lb GET https://markdownregistry.com/api/v1/resolve?ref=xobotyi/cc-foundry/vitest GET https://markdownregistry.com/api/v1/blob/a0ac8a83276c08c220c0385ae1360ade89b5de971604c730a94b73a8f1f125f6
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from xobotyi/cc-foundry
Every file in xobotyi/cc-foundry