Agent skill
mern-unit-test
Run MERN unit tests, report results, and optionally fix failures.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/mern-unit-test
SKILL.md
Purpose
Run unit tests, report failures with enough detail to debug, then (with approval) fix issues and re-run to confirm.
Arguments
--scope <target>— Limit toapps/web,packages/shared, orall(default: all)--no-fix— Report only, don't offer to fix
Workflow
1. Run tests
# All tests
pnpm test
# With coverage (if configured)
pnpm test -- --coverage
# Scoped
pnpm -C apps/web test
pnpm -C packages/shared test
2. Report results
Include:
- Pass/fail/skip counts
- Coverage summary (if available)
- Each failing test: file, test name, assertion diff or error
- If coverage not configured, note this and offer to set it up
3–4. Approval gate, fix and confirm
See /shared-review-workflow for approval gate protocol, fix constraints, and severity definitions.
Reference
For coverage setup and common fix patterns, see reference/mern-unit-test-reference.md
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?