npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@hmcts/zephyr-automation-nodejs

v0.0.6

Published

Node.js library for Zephyr automation in HMCTS projects

Readme

@hmcts/zephyr-automation-nodejs

Node.js library for Zephyr automation in HMCTS projects.

Overview

This package provides utilities and a custom Mocha reporter to generate, merge, and manage Zephyr-compatible JSON test reports for use in HMCTS projects. It is designed to be used with Cypress and Mocha test suites.

Features

  • ZephyrReporter: Custom Mocha reporter that outputs Zephyr-compatible JSON reports.
  • Report merging: Utilities to merge multiple Zephyr JSON reports, with deduplication and thread-awareness.
  • Report cleaning: Utility to clean up Zephyr report directories.

Installation

yarn add @hmcts/zephyr-automation-nodejs
# or
npm install @hmcts/zephyr-automation-nodejs

Usage

ZephyrReporter (Mocha)

Add the reporter to your Mocha configuration or CLI:

mocha --reporter @hmcts/zephyr-automation-nodejs/dist/cypress/ZephyrReporter.js

Or in your Cypress plugins (if using programmatically):

const { ZephyrReporter } = require('@hmcts/zephyr-automation-nodejs/dist/cypress/ZephyrReporter');

Report Utilities

Import and use the utilities in your scripts:

import { mergeZephyrReports, cleanZephyrReports } from '@hmcts/zephyr-automation-nodejs';

mergeZephyrReports({ rootDir: '<Your output directory>', dedupe: true });
cleanZephyrReports({ rootDir: '<Your output directory>' });

Options

  • rootDir: Root directory containing Zephyr reports (e.g. <Your output directory>).
  • dedupe: (optional) Deduplicate tests when merging reports.
  • allowMergeOnAllThreads: (optional) Allow merging on any thread (default: only on thread 1).

API

ZephyrReporter

A Mocha reporter that outputs Zephyr-compatible JSON reports. Output files are written to <Your output directory>/zephyr/temp/ by default.

mergeZephyrReports(options)

Merges all Zephyr JSON reports in the specified directory into a single report.

cleanZephyrReports(options)

Removes all Zephyr report files from the specified directory.

Development

  • Build: yarn build
  • Lint: yarn lint
  • Test: (add your test instructions here)

Updating the zephyr-automation-independent jar

To update the zephyr-automation-independent jar, follow these steps:

  1. Update pom.xml with the new version of the tool both in the dependencies section and the header version
  2. Run fetch-jar.sh
  3. Commit the updated jar file in scripts/tools/zephyr/zephyr-automation-independent.jar and push to the repository.
  4. Update the version of @hmcts/zephyr-automation-nodejs in package.json and publish a new version.

For local testing of changes to the jar file:

yarn add @hmcts/zephyr-automation-nodejs@file: I.e yarn add @hmcts/zephyr-automation-nodejs@file:/Users/benedwards/Desktop/Projects/opal/github/zephyr-automation-nodejs

License

MIT License. See LICENSE for details.

Contributing

Contributions are welcome! Please open issues or pull requests on GitHub.