# Your First Tests with node --test

A test is a few lines of code that run your code and check its answer, and Node's built-in test runner, node --test, runs every test file and reports what passed and what didn't.

![Cheat sheet: Your First Tests with node --test](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/ebe8670f8b2a4a9cbd386baf69d3d27b.webp)

- Category: Node.js
- Level: Apprentice
- Tags: Assertion (unit-testing), Edge Case, node:test, nodejs, Test Runner, Test-Driven Development, unit testing
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/node-testing-first-tests-cheat-sheet
