# Testing Paperclip

> Paperclip testing strategy — Vitest, plugin test harness from @paperclipai/plugin-sdk/testing, real Postgres integration tests, cross-tenant isolation. Use when writing or reviewing Paperclip tests.

- Skill: `thebeardedbearsas/testing-paperclip-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add thebeardedbearsas/testing-paperclip-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/thebeardedbearsas/testing-paperclip-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: TheBeardedBearSAS (https://skillmd.com/u/thebeardedbearsas)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/thebeardedbearsas/testing-paperclip-2

---


# Paperclip Testing

Vitest (unit + integration + coverage); plugin tests use `createTestHarness` from `@paperclipai/plugin-sdk/testing`; integration tests hit a real Postgres (never mocked); cross-tenant isolation tests required per server module; coverage ≥ 80% globally and stricter on governance-critical paths (agents, approvals, costs).

See ../../rules/07-testing-paperclip.md for detailed documentation.

