mern-unit-test

Run MERN monorepo unit tests and generate failure reports.

3|1|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/edfenton/claude-skills --skill mern-unit-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mern-unit-test
Source: https://github.com/edfenton/claude-skills/tree/main/mern/mern-unit-test
Command: npx skills add https://github.com/edfenton/claude-skills --skill mern-unit-test

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

MERN monorepos often struggle to consistently run unit tests, surface failures quickly, and validate fixes across apps/web and packages/shared. This Skill streamlines executing tests, collecting failure context, and guiding approved fixes.

Core Features & Use Cases

  • Run unit tests across all or scoped parts of a MERN monorepo with pnpm test
  • Generate detailed failure reports including failing file, test name, and error information
  • Apply approved fixes and re-run tests to verify outcomes
  • Optional coverage reporting to monitor test quality

Quick Start

Run all MERN unit tests with pnpm test, or scope to apps/web or packages/shared using pnpm -C apps/web test or pnpm -C packages/shared test.

Frequently Asked Questions about mern-unit-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run unit tests across specific parts of a MERN monorepo?

Run unit tests across a MERN monorepo by scoping the pnpm test command to specific directories, such as pnpm -C apps/web test or pnpm -C packages/shared test, which isolates execution to those packages.

What is the best way to collect context for failing MERN unit tests?

Collecting context for failing MERN unit tests involves executing the test suite to generate detailed reports that include the failing file path, specific test name, and the associated error information for debugging.

Does this testing workflow support Vitest and Jest coverage reporting?

Yes, the workflow supports Vitest and Jest coverage reporting to monitor test quality, integrating coverage metrics as quality signals during the unit test execution and validation process.

Can I prevent automatic fixes when running MERN unit tests?

Yes, you can prevent automatic fixes during MERN unit tests by using the optional --no-fix flag, which stops the workflow from applying changes without an explicit approval gate.

How do I verify applied fixes for failing unit tests?

Verify applied fixes for failing unit tests by enforcing an approval gate before changes are made, after which the system applies the approved fixes and automatically re-runs the tests to confirm outcomes.