Node.js · Junior · Question 71 of 75
What is the built-in way to write tests in Node.js?
- ✓Correct answer: The
node:testmodule, run withnode --test - 2There is no built-in way; you must use Jest
- 3The
node:specmodule
Explanation
node:test provides test, describe, it, mocks and coverage, and node:assert provides assertions. Jest and Vitest are still common alternatives.