Dot reporter

Reporters in Japa are responsible for displaying/saving the progress of tests. The dot reporter is a minimalist reporter that displays a dot for each passing test and a cross for each failing test.

Installation and setup

Install the package from the npm registry as follows.

npm i -D @japa/dot-reporter@1.1.1

And register it as a reporter within the bin/test.js file.

import { dotReporter } from '@japa/dot-reporter'
import { configure, processCliArgs } from '@japa/runner'
configure({
...processCliArgs(process.argv.slice(2)),
...{
files: ['tests/**/*.spec.js']
reporters: [dotReporter()]
}
})
const { dotReporter } = require('@japa/dot-reporter')
const { configure, processCliArgs } = require('@japa/runner')
configure({
...processCliArgs(process.argv.slice(2)),
...{
files: ['tests/**/*.spec.js']
reporters: [dotReporter()]
}
})