ZooWork Market · Skill
nextjs-testing
This skill should be used when writing or setting up tests for a Next.js application. Trigger when: configuring Vitest, Cypress, or Playwright for Next.js; writing unit tests for components or hooks; writing E2E tests; testing React Server Components; testing API routes or Route Handlers; testing Server Actions; setting up test infrastructure; choosing between testing tools; implementing data-testid attributes; testing authentication flows; mocking API responses with cy.intercept() or page.route(); troubleshooting test failures; testing with production builds; or asking about Next.js testing best practices, patterns, or anti-patterns.