Next.js · Middle · Question 70 of 75

What is the recommended way to test an async server component?

Explanation

Synchronous server and client components can be unit-tested with Vitest or Jest. Data functions can be tested separately as plain async code.

Further reading

Problem with a question

Next.js · Middle · question 70

Test yourself

Take the Next.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz