Node.js: Build and Ship an API
Exit

Lesson 11 of 14 · Quality and production

Automated tests with node:test and assert

1 h Node.js 22 (Debian, git, npm, python3)

Objective

Check automatically, in a few seconds, that the API still works after each change: test the business functions (delivery fees), their edge cases and their errors, then the HTTP API itself, with the tools built into Node, without any dependency.

This lesson is part of the full course

Unlock Node.js: Build and Ship an API to read every lesson, do the exercises, access the simulations and earn your certificate.

Already enrolled? Log in.