/nextjs-testing

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

NextJs Testing Practice

The practice includes:

  • Testing Next.js UI, API, routes, authentication and database interactions
  • When to use unit testing, integration testing and end-to-end testing -- and why!
  • Strategies for testing SSG, SSR, ISR and CSR (including cache updates and SWR revalidation intervals)
  • How to use a test database for tests that involve data fetching and mutations

References:

Bonnie Schulkin, www.udemy.com/course/nextjs-testing

Cypress Tests

Screenshot from 2023-05-16 00-21-18

Jest

Screenshot from 2023-05-17 21-52-31