alexanderop

Vitest — Development skill for Claude Code

Development community

Run Vitest tests and fix any failing tests.

How to install Vitest

Installs to ~/.claude/commands/alexanderop-markvim-vitest.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/alexanderop/MarkVim/HEAD/.claude/commands/vitest.md -o ~/.claude/commands/alexanderop-markvim-vitest.md

Restart Claude Code, or start a new session, for it to be picked up.

What Vitest does


description: Run Vitest tests and fix any failing tests allowed-tools: Bash(pnpm run test:vitest), Bash(pnpm test:vitest), Bash(vitest)

Vitest Test Runner

I have run the Vitest test suite. Here are the results:

!`pnpm run test:vitest --run 2>&1 || true`

Instructions

  1. Analyze the above.
    • If all tests pass, no action is needed.
    • If tests are failing, identify the root cause from the error messages.
  2. **Fix failing test

Alternatives in Development

  • E2e Devcontainer — Run E2E tests in a dev container (isolated environment) 1.6k ★
  • Create API — Scaffold a new API endpoint — route, handler, types, tests — wired into the server 335 ★
  • Run Stack Tests — Skill: Run stack-tests (stacktest-) manually 295 ★

Full documentation available on GitHub

View Source Repository