nextjs-vitest-rtl-testing
by kenLovesToCode
Configure and maintain Next.js unit testing with Vitest and React Testing Library. Use when adding a test runner, creating setup/config files, writing or fixing component or hook tests, mocking Next.js APIs like next/navigation or next/image, mocking API endpoints with MSW (http, HttpResponse), improving coverage, or debugging failing unit tests in Next.js projects.