Skip to content

MoLow/reporters

Repository files navigation

tests codecov

reporters

A collection of reporters for node:test

Usage

node --test \
  --test-reporter=@reporters/github --test-reporter-destination=stdout \
  --test-reporter=@reporters/junit --test-reporter-destination=junit.xml \
  --test-reporter=spec --test-reporter-destination=stdout

Available reporters:

  • bail - bail on first failure
  • github - report to github actions
  • jUnit - report to jUnit
  • mocha - use any mocha reporter with node:test
  • silent - a silent reporter
  • slow - report slow tests
  • testwatch - An interactive REPL for node:test watch mode.