wr-tdd:setup-tests

Configure Vitest or Jest test runners and add test scripts to Node projects.

4|1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/windyroad/agent-plugins --skill wr-tdd-setup-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wr-tdd:setup-tests
Source: https://github.com/windyroad/agent-plugins/tree/main/packages/tdd/skills/setup-tests
Command: npx skills add https://github.com/windyroad/agent-plugins --skill wr-tdd-setup-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Set up a test framework for the project to enable automated testing and enforce the Red-Green-Refactor cycle for TDD workflows.

Core Features & Use Cases

  • Discover project context by inspecting package.json, tsconfig.json, and existing test files to determine the best testing strategy.
  • Configure a test runner (e.g., Vitest or Jest) and wire up a test script in package.json.
  • Create an example test to demonstrate the workflow and how it integrates with existing code.

Quick Start

Run the setup to initialize a test framework and add an example test, then run npm test to verify the setup.

Frequently Asked Questions about wr-tdd:setup-tests

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

FAQPage Schema
How do I set up a test framework for a Node project?

To set up a test framework for a Node project, the Skill inspects your package.json and tsconfig.json, recommends a runner like Vitest or Jest, updates package.json with a test script, and adds an example test file.

Can I configure Vitest or Jest for TDD workflows automatically?

Yes, you can configure Vitest or Jest for TDD workflows automatically by running the setup, which discovers existing test infrastructure, creates configuration files, and enforces the Red-Green-Refactor cycle.

What is the best way to add an npm test script to an existing project?

The best way to add an npm test script is to use a setup tool that detects your project context, wires up a test runner like Vitest or Jest in package.json, and validates the configuration with an example test.

Does the test setup process require existing test files in my repository?

No, the test setup process does not require existing test files; it discovers any current test infrastructure and will create or update configuration files along with an example test to demonstrate the workflow.

How does automated testing discovery handle existing package.json configurations?

Automated testing discovery handles existing package.json configurations by inspecting them to determine the best testing strategy, then updating the file with a test script while preserving your existing project settings.