Skip to content

Glossary: Node.js Basics

node:test

Also written: node --test, test runner, describe, beforeEach, afterEach

Node's built-in test runner, started with `node --test`, which finds `*.test.js` files and files in `test/`. It provides `test`, `describe`, `beforeEach` and `afterEach`.

Where the book teaches it

Related terms

assert (node:assert/strict)Spec reporter, TAPTest isolation