ixartz / Next-js-Boilerplate

🚀🎉📚 Boilerplate and Starter for Next.js 14+ with App Router and Page Router support, Tailwind CSS 3.4 and TypeScript ⚡️ Made with developer experience first: Next.js + TypeScript + ESLint + Prettier + Drizzle ORM + Husky + Lint-Staged + Vitest + Testing Library + Playwright + Storybook + Commitlint + VSCode + Netlify + PostCSS + Tailwind CSS ✨

Home Page:https://nextjs-boilerplate.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to start a Unit test and E2E

raja-prog opened this issue · comments

commented

I couldn't understand how to work with Cypress and JEST. help would be appreciated

For unit testing with Jest, you just need to run npn run test and for e2e testing with Cypress, npm run e2e:headless

commented

Thank you, one more doubt why we need to mock next/router? @ixartz

Mocking next/router is needed to avoid errors when running tests.