pikku-testing

Test Pikku functions, middleware, and services across unit and integration layers.

56|Updated Apr 18, 2021
One-click install
npx skills add https://github.com/pikkujs/pikku --skill pikku-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pikku-testing
Source: https://github.com/pikkujs/pikku/tree/main/.claude/skills/pikku-testing
Command: npx skills add https://github.com/pikkujs/pikku --skill pikku-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pikku testing enables reliable validation of business logic and integration points by providing structured guidelines for unit tests, middleware checks, permission guards, and HTTP integration flows.

Core Features & Use Cases

  • Direct function invocation tests to validate isolated logic with mocked services.
  • Full runPikkuFunc pipeline tests that exercise middleware, permissions, validation, and wiring order.
  • HTTP integration tests that verify end-to-end behavior across the HTTP stack and routes.

Quick Start

Run a small test that directly invokes a Pikku function to verify its output.

Frequently Asked Questions about pikku-testing

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

FAQPage Schema
How do I test TypeScript functions with mocked services in Node?

You can validate isolated TypeScript logic by directly invoking Pikku functions while mocking services, ensuring unit tests run reliably without external dependencies using Node test runners.

What is the best way to test middleware and permission guards in integration tests?

The best way to test middleware and permission guards is using full pipeline tests that exercise the entire execution order, verifying wiring, validation, and access control across the stack.

Can I run HTTP integration tests for Pikku functions using tsx?

Yes, you can run HTTP integration tests for Pikku functions using tsx to verify end-to-end behavior across routes and the HTTP stack within local and CI environments.

Does pikku-testing support reproducible workflows for CI environments?

Pikku testing supports reproducible workflows in CI environments by applying best practices for test organization and mocking, ensuring consistent validation of unit and integration layers across runs.

How do I validate end-to-end behavior across HTTP routes and services?

Validating end-to-end behavior across HTTP routes and services requires HTTP integration tests that verify the full stack, ensuring middleware, permissions, and routing function correctly together.