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

@m00nsolutions/jest-reporter

v1.0.4

Published

Jest test reporter for M00n Report dashboard - real-time test result streaming with retry support and full Jest 29+ API compatibility

Readme

@m00nsolutions/jest-reporter

Official Jest test reporter for M00N - a real-time test reporting dashboard.

Features

  • 🚀 Real-time streaming - Watch test results appear live in the dashboard
  • 🔄 Retry tracking - Automatic tracking of test retries with attempt history
  • 🏷️ Tags & attributes - Organize runs with custom metadata
  • 🔒 Secure - API key authentication per project
  • Full Jest 29+ API - Supports all reporter lifecycle hooks

Installation

npm install @m00nsolutions/jest-reporter --save-dev
# or
yarn add @m00nsolutions/jest-reporter --dev
# or
pnpm add @m00nsolutions/jest-reporter --save-dev

Quick Start

1. Get your API key

  1. Log in to M00N
  2. Navigate to your project settings
  3. Generate or copy your project API key

2. Configure Jest

Add the reporter to your jest.config.js:

module.exports = {
  reporters: [
    'default', // Keep default console output
    ['@m00nsolutions/jest-reporter', {
      serverUrl: 'https://app.m00n.report',        // Or your self-hosted URL
      apiKey: process.env.M00N_API_KEY,            // Your project API key
      launch: 'Unit Tests',                        // Optional: run title
      tags: ['unit', 'api'],                       // Optional: tags
      attributes: {                                // Optional: custom metadata
        environment: 'ci',
        nodeVersion: process.version,
      },
    }],
  ],
};

3. Run your tests

npx jest

That's it! Your test results will appear in the M00N dashboard.

Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | serverUrl | string | required | M00N ingest service URL | | apiKey | string | required | Project API key (identifies org and project) | | launch | string | 'Jest Run {date}' | Title for this test run | | tags | string[] | [] | Tags to categorize the run | | attributes | object | {} | Custom key-value metadata |

Environment Variables

You can also configure the reporter via environment variables:

M00N_SERVER_URL=https://app.m00n.report
M00N_API_KEY=m00n_xxxxxxxxxxxxx
M00N_LAUNCH="Nightly Build"
M00N_TAGS=unit,integration

Usage Examples

Basic Configuration

reporters: [
  'default',
  ['@m00nsolutions/jest-reporter', {
    serverUrl: 'https://app.m00n.report',
    apiKey: process.env.M00N_API_KEY,
  }],
],

Jest 29+ API Support

This reporter implements the full Jest reporter API:

Lifecycle Hooks

| Hook | Description | |------|-------------| | onRunStart | Called when the test run begins | | onTestFileStart | Called when a test file starts executing | | onTestCaseStart | Called before each individual test runs | | onTestCaseResult | Called after each individual test completes | | onTestResult | Called when a test file finishes | | onRunComplete | Called when the entire run completes |

Reporter Context (Jest 28+)

The reporter receives context about:

  • firstRun - Whether this is the first run in watch mode
  • previousSuccess - Whether the previous run succeeded
  • changedFiles - Files that changed since last run

Retry Support

The reporter automatically tracks test retries when using Jest's retry feature:

// jest.config.js
module.exports = {
  // Enable retries for flaky tests
  retryTimes: 2,
  // Only retry in CI
  ...(process.env.CI && { retryTimes: 3 }),
};

Each retry attempt is tracked separately in the dashboard with:

  • Attempt number
  • Retry reasons
  • Individual timing

License

MIT License - see LICENSE for details.