beginner45 minby DevFox

Checking your work: your first test with node:test

Write down the right answer once and let a command check it every time: move functions into a file of their own with export, write a test with node:test that calls one with an input whose answer you know, run every test with node --test, and read the + actual / - expected report when one fails. TaskKit’s capitalize and percentFull get their first tests, and Module 5 closes with its one-page cheat sheet.

  • TypeScript
  • Fundamentals
Checking your work: your first test with `node:test`. Read this lesson at .