Skip to content

Glossary: Software Design Patterns in JavaScript

node:test

Also written: Node's test runner, test runner

Node's built-in test framework, imported as node:test, with test, beforeEach and mock. It calls your test functions for you, so it is an example of inversion of control.

Where the book teaches it

Related terms

assert (node:assert/strict)beforeEachInversion of control