fastify-testing

Community

Standardized Fastify testing with node-tap

Authorfgiova
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Tests for Fastify apps often lack consistent conventions, leading to brittle tests and inconsistent quality. This skill provides a unified blueprint for testing Fastify projects with node-tap, ensuring reliable unit tests for helpers and route handlers.

Core Features & Use Cases

  • Establishes a reusable testing structure, including TypeScript typings for TestWithContext, Prisma integration, and app lifecycle patterns.
  • Covers unit tests for helpers and route handlers, with guidance for mocking external HTTP calls via undici MockAgent.
  • Applies to end-to-end workflows where you need predictable test context and error handling.

Quick Start

Run the test suite to validate unit and integration tests for Fastify helpers and routes.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: fastify-testing
Download link: https://github.com/fgiova/claude-marketplace/archive/main.zip#fastify-testing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.