rembrembdocs

Testing

Last updated April 23, 2026

In React and Next.js, there are a few different types of tests you can write, each with its own purpose and use cases. This page provides an overview of types and commonly used tools you can use to test your application.

Types of tests

Async Server Components

Since async Server Components are new to the React ecosystem, some tools do not fully support them. In the meantime, we recommend using End-to-End Testing over Unit Testing for async components.

Guides

See the guides below to learn how to set up Next.js with these commonly used testing tools:

[

Cypress

Learn how to set up Cypress with Next.js for End-to-End (E2E) and Component Testing.

](cypress/index.md)[

Jest

Learn how to set up Jest with Next.js for Unit Testing and Snapshot Testing.

](jest/index.md)[

Playwright

Learn how to set up Playwright with Next.js for End-to-End (E2E) Testing.

](playwright/index.md)[

Vitest

Learn how to set up Vitest with Next.js for Unit Testing.

](vitest/index.md)

Was this helpful?