What problem does it solve? Writing tests for a Next.js application with Clerk authentication, Prisma, and Liveblocks requires intricate mock setup, correct hoisting order, and knowledge of project-specific conventions. This Skill provides the exact templates, mock patterns, and commands needed to write passing tests without trial and error. ## Core Features & Use Cases - Ready-to-use test templates: Copy-paste templates for unit tests, hook tests, and API route integration tests with mocked Clerk auth and Prisma. - Mock patterns that work: Enforces the critical vi.hoisted() pattern for Prisma mocks and the correct mocking order (Clerk before Prisma before route imports) to avoid common Vitest pitfalls. - Full test command reference: Run unit, integration, coverage, and E2E suites, plus targeted single-file or pattern-matched test execution for debugging. - Use Case: You need to add integration tests for a new API route. The Skill provides the integration template with setMockAuth/resetMockAuth helpers, the hoisted Prisma mock, and the command to run just that file. ## Quick Start Ask the assistant to write an integration test for a specific API route with mocked Clerk authentication and Prisma, then run it with the appropriate vitest command.