Node.js module
node:test/reporters
The 'node:test/reporters' module provides built-in reporter formats for node:test, such as tap, json, and baseline. Reporters format test results for human or machine consumption.
Use reporters to integrate with CI systems, test dashboards, or custom logging pipelines.
Functions 3
- reporters.dot()
The
dotreporter outputs the test results in a compact format, where each passing test is represented by a., and each failing test is represented by aX. - reporters.junit()
The
junitreporter outputs test results in a jUnit XML format. - reporters.tap()
The
tapreporter outputs the test results in the TAP format.
Types 1
Variables 2
- const reporters.lcov
The
lcovreporter outputs test coverage when used with the--experimental-test-coverageflag. - const reporters.spec
The
specreporter outputs the test results in a human-readable format.