with one click
debugging
// Guide debugging test failures using vitest-agent MCP tools. Use when tests are failing, investigating flaky tests, or diagnosing persistent failures.
// Guide debugging test failures using vitest-agent MCP tools. Use when tests are failing, investigating flaky tests, or diagnosing persistent failures.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | debugging |
| description | Guide debugging test failures using vitest-agent MCP tools. Use when tests are failing, investigating flaky tests, or diagnosing persistent failures. |
Systematic approach to diagnosing and fixing test failures using MCP tools.
Use test_history to understand the failure pattern:
Use test_errors to search for the specific error:
Use test_for_file to find all tests that cover the file
containing the failure. This helps you:
Use test_coverage to see:
Use note_create to record:
Pin important notes with note_update so they persist across
sessions.
run_tests({ files: ["path/to/failing.test.ts"] })run_tests({})test_trends to confirm coverage directionAlways use the run_tests MCP tool instead of running vitest via
Bash. It uses Vitest's programmatic API, so results persist to the
database and all query tools reflect the latest run immediately.