Node.js · Junior · Question 71 of 75

What is the built-in way to write tests in Node.js?

Explanation

node:test provides test, describe, it, mocks and coverage, and node:assert provides assertions. Jest and Vitest are still common alternatives.

Further reading

Problem with a question

Node.js · Junior · question 71

Test yourself

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

Take this quiz