Skip to content

fnando/jest-hud-reporter

Repository files navigation

jest-hud-reporter

NPM NPM MIT License

A jest reporter that shows test running stats using the HUD macOS app.

hud-jest.mp4

Installation

This package is available as a NPM package. To install it, use the following command:

npm install --save-dev jest-hud-reporter --save

If you're using Yarn (and you should):

yarn add -D jest-hud-reporter

Usage

// jest.config.js
module.exports = {
  reporters: ["default", ["jest-hud-reporter", {}]],
};

By default, the reporter will look up for the binary at the following paths:

  • /Applications/hud.app/Contents/MacOS/cli
  • ~/Applications/hud.app/Contents/MacOS/cli

You can pass other binary paths by using the bin options:

// jest.config.js
const os = require("os");
const path = require("path");

module.exports = {
  reporters: [
    "default",
    [
      "jest-hud-reporter",
      {
        bin: [path.join(os.homedir(), "Downloads/hud.app/Contents/MacOS/cli")],
      },
    ],
  ],
};

Notice that the report will not fail if the bin cannot be found, allowing you to add this as a dependency even for teams that don't use HUD.

Maintainer

Contributors

Contributing

For more details about how to contribute, please read https://github.com/fnando/jest-hud-reporter/blob/main/CONTRIBUTING.md.

License

The gem is available as open source under the terms of the MIT License. A copy of the license can be found at https://github.com/fnando/jest-hud-reporter/blob/main/LICENSE.md.

Code of Conduct

Everyone interacting in the jest-hud-reporter project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

A jest reporter that shows test running stats using the HUD macOS app.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published