Fastify Testing

ALWAYS consult this skill when the user writes, modifies, or asks about tests for Fastify applications using node-tap. This skill contains mandatory patterns for test structure, TypeScript types (TestWithContext, BuiltPlugins), assertion methods, naming conventions, MockAgent setup, Prisma test lifecycle, and database data management that Claude cannot produce correctly without consulting. Without this skill, Claude will generate incorrect test types, wrong lifecycle hooks, and missing mock cleanup patterns. Covers: tap test structure, t.test/t.equal/t.same/t.match/t.has/t.rejects, app.inject, beforeEach/afterEach patterns, undici MockAgent with dispatcher save/restore, test naming, TestWithContext typing, Prisma connection lifecycle, test data management, t.plan usage. Does NOT cover container infrastructure (see tap-testcontainers) or app architecture (see fastify-expert). Trigger on ANY mention of: test fastify, tap test, write tests, add tests, app.inject, t.test, t.equal, t.same, t.match, MockAgent, undi

fgiova 8438c08 26.7 KB Updated

File contents

fgiova/claude-marketplace/tree/main/plugins/fastify-testing/skills/fastify-testing commit 8438c0817b

Frequently asked questions

npx skillmds@latest add fgiova/fastify-testing