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

jasmine-bamboo-reporter

v0.2.1

Published

A reporter for Jasmine which produces a report compatible with Atlassian Bamboo Mocha Test Parser.

Readme

jasmine-bamboo-reporter

Latest release on NPM npm module downloads per month Build states MIT License

What is it?

A reporter for Jasmine that writes a JSON report compatible with Atlassian Bamboo's Mocha Test Parser, so Jasmine results show up in your Bamboo build. It also supports test sharding (several Jasmine processes writing the same report file); the reporter locks the file and merges each run into it, so a sharded run ends with a single combined report.

Written in TypeScript and shipped as dual ESM and CommonJS with type definitions.

Installation

  • npm install --save-dev jasmine-bamboo-reporter

Requires Node.js 20.9.0 or newer (see the engines field).

Usage

Register the reporter with Jasmine from a helper file:

import Reporter from 'jasmine-bamboo-reporter';

jasmine.getEnv().addReporter(
  new Reporter({
    file: 'jasmine-results.json', // by default it writes to jasmine.json
    beautify: true,
    indentationLevel: 4, // used when beautify is true
  }),
);

CommonJS works the same way:

const Reporter = require('jasmine-bamboo-reporter');

Options

| Option | Default | Description | | ------------------ | --------------- | ---------------------------------------------------- | | file | jasmine.json | Path of the JSON report file to write. | | beautify | true | Pretty-print the JSON output. | | indentationLevel | 4 | Indentation width used when beautify is enabled. |

Parallel and sharded runs

When several Jasmine processes write to the same report file, the reporter locks the file and merges each run into it, so a sharded run still ends with a single combined report. This works with any setup that runs Jasmine across multiple processes, whether that is CI shards, a parallel runner such as WebdriverIO, or your own launcher.

Add the reporter in each process as shown above, and clear any stale report and lock file once before the run starts, not inside each process:

const fs = require('node:fs');

if (fs.existsSync('jasmine-results.json.lock')) fs.unlinkSync('jasmine-results.json.lock');
if (fs.existsSync('jasmine-results.json')) fs.unlinkSync('jasmine-results.json');

Example output

A run with one passing spec, one failing spec, and one skipped spec writes:

{
  "stats": {
    "suites": 1,
    "tests": 3,
    "passes": 1,
    "pending": 1,
    "failures": 1,
    "start": "2026-01-01T12:00:00.000Z",
    "end": "2026-01-01T12:00:09.000Z",
    "duration": 9,
    "time": 9
  },
  "failures": [
    {
      "duration": 2,
      "time": 2,
      "title": "suite a should fail",
      "fullTitle": "should fail",
      "error": "1 Failure: 1. : Expected false to be truthy."
    }
  ],
  "passes": [
    {
      "duration": 1,
      "time": 1,
      "title": "suite a should pass",
      "fullTitle": "should pass"
    }
  ],
  "skipped": [
    {
      "duration": 0,
      "time": 0,
      "title": "suite a should pend",
      "fullTitle": "should pend"
    }
  ]
}

The title field holds Jasmine's full name and fullTitle holds the spec description; time mirrors duration because the Bamboo and Mocha tooling reads time.

Development

git clone https://github.com/voidberg/jasmine-bamboo-reporter.git
cd jasmine-bamboo-reporter
npm install
  • npm test runs the test suite (Vitest).
  • npm run typecheck runs the TypeScript compiler with no emit.
  • npm run lint runs Biome.
  • npm run build builds the dual ESM/CJS bundle with tsup.

License

MIT