Skip to content

Jest Reporter

cmd-table-jest-reporter renders your Jest test results as a formatted table in the terminal.

Installation

bash
npm install --save-dev cmd-table-jest-reporter

Setup

Add to your jest.config.js or jest.config.ts:

js
module.exports = {
  reporters: [
    ['cmd-table-jest-reporter', { verbose: true, showSlowest: 5 }],
  ],
}

Options

OptionTypeDefaultDescription
verbosebooleanfalseShow per-test result table
showSlowestnumber0Show N slowest tests (0 = off)
failOnlybooleanfalseVerbose table shows only failed tests
themestring'default'Table theme name

Migrating from the Default Jest Reporter

js
// jest.config.js
module.exports = {
  reporters: [
    ['cmd-table-jest-reporter', { verbose: false }],
  ],
}

Remove the default 'default' reporter entry if you had one explicitly set — Jest uses its default reporter unless overridden. Replacing it with this package gives you the same pass/fail summary in a table format.

Released under the MIT License.