outfitter-testing

Test Outfitter packages with handlers, fixtures, mocks, and harnesses.

6|1|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/outfitter-dev/outfitter --skill outfitter-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: outfitter-testing
Source: https://github.com/outfitter-dev/outfitter/tree/main/packages/claude-plugin/skills/outfitter-testing
Command: npx skills add https://github.com/outfitter-dev/outfitter --skill outfitter-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive suite of tools and patterns to simplify and standardize the testing of Outfitter packages, ensuring robust and reliable code.

Core Features & Use Cases

  • Handler Testing: Directly test handler logic in isolation from transport layers.
  • Test Fixtures: Generate and manage reusable test data with deep-merge capabilities.
  • Environment & File Mocking: Isolate tests using temporary directories and mock environment variables.
  • CLI & MCP Harnesses: Test command-line interfaces and MCP tools with realistic simulations.
  • Context Mocking: Create mock contexts with spies for verifying interactions like logging.

Quick Start

Run all tests for the outfitter-testing skill using the command bun test.

Frequently Asked Questions about outfitter-testing

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

FAQPage Schema
How do I test handler logic in isolation from transport layers?

Handler testing allows you to directly test handler logic in isolation from transport layers. This ensures your unit tests remain fast and focused strictly on business logic.

What is the best way to mock environments and create test fixtures for Outfitter packages?

The best way to mock environments is using temporary directories and mock environment variables to isolate tests. You can also generate and manage reusable test fixtures using deep-merge capabilities.

How do I test CLI and MCP tools with realistic simulations?

You can test command-line interfaces and MCP tools by generating CLI and MCP harnesses. These harnesses provide realistic simulations to validate tool interactions effectively.

Does this testing utility work with the Bun test runner?

Yes, this testing utility fully satisfies requirements for unit, integration, and end-to-end testing within the Outfitter ecosystem using the Bun test runner. You can execute all tests using the `bun test` command.

How do I verify interactions like logging during package testing?

You can verify interactions like logging by using context mocking. This approach creates mock contexts equipped with spies to monitor and assert specific function calls during test execution.