A Silent reporter for node:test
, in case you don't want to see any output.
npm install --save-dev @reporters/silent
or
yarn add --dev @reporters/silent
node --test --test-reporter=@reporters/silent
the output will be empty, but the tests will still run, and the exit code will be 0 if all tests pass, and 1 if any test fails.