If anyone missed it, Node.js 18 includes a test runner/test definition module (node --test
and node:test
respectively).
node:test
exports a test
function and you can run the Node CLI with a --test
flag which does some basic search/matching for test files.
Full Documentation: nodejs.org/api/test.html