test-runner

Run unit and integration tests in JavaScript/TypeScript projects with Vitest or Jest.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/alexanderjamesmcleod/makecents --skill test-runner-alexanderjamesmcleod
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-runner
Source: https://github.com/alexanderjamesmcleod/makecents/tree/main/src/skills/development/test-runner.skill
Command: npx skills add https://github.com/alexanderjamesmcleod/makecents --skill test-runner-alexanderjamesmcleod

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires vitest, jest, and includes scripts (resource) components.

What problem does it solve?

This skill streamlines automated test execution by centralizing unit and integration test workflows for JavaScript/TypeScript projects.

Core Features & Use Cases

  • Framework detection automatically detects Vitest or Jest configurations and runs the appropriate test suite.
  • Flexible targeting supports running tests by pattern (unit or integration) or all tests, in CI or local development.
  • Outcome reporting displays readable test results and coverage options, and can re-run failed tests.

Quick Start

Run test-runner unit to execute the unit tests.

Frequently Asked Questions about test-runner

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

FAQPage Schema
How do I run unit and integration tests for JavaScript and TypeScript projects in CI?

Running unit and integration tests in CI is automated by detecting Vitest or Jest configurations and executing targeted test patterns. This skill generates readable outcome reports and can re-run failed tests directly within your workflow.

Does this test runner automatically detect whether I am using Vitest or Jest?

Yes, framework detection automatically identifies Vitest or Jest configurations in your project. It routes commands to the appropriate test runner, ensuring the correct suite executes without requiring manual framework specification.

Can I run a specific subset of unit tests by pattern instead of executing the whole suite?

Yes, flexible targeting supports running tests by specific patterns, allowing you to isolate unit or integration tests. You can execute individual patterns or all tests without modifying your underlying configuration files.

What is the best way to execute unit tests locally during development?

The best way to execute unit tests locally is to run a single command targeting unit test patterns. The skill handles framework detection and displays readable test results and coverage options for your JavaScript or TypeScript project.

How do I re-run failed tests after a test execution completes?

You can re-run failed tests using the outcome reporting feature, which assesses initial test results and targets only the failed cases. This prevents re-executing successful tests and speeds up your feedback loop.

What are the limitations of using a Bash script to run Vitest or Jest test suites?

The limitation of using a Bash script is that test execution is constrained to environments supporting Bash and standard command-line routing. Complex custom runner configurations or non-CLI framework integrations may not be fully supported by this approach.