ZooWork Market · Skill
better-auth-test-utils
Use when writing integration or E2E tests for apps using Better Auth. Covers the testUtils plugin for creating test users, authenticated sessions, cookie injection for Playwright/Puppeteer, OTP capture, database helpers, and test fixtures. Trigger on "test utils," "test helpers," "getCookies," "test factory," "mock auth," "test session," "OTP capture," "authenticated test," "e2e auth setup," "integration test auth," "Playwright cookies," or "test user factory." For auth configuration, see better-auth-best-practices. For security hardening, see better-auth-security-best-practices.