Registry / testing / jest-bamboo-formatter

jest-bamboo-formatter

JSON →
library1.0.0jsnpmunverified

A Jest reporter that generates a test report compatible with Atlassian Bamboo's Mocha Test Parser, enabling Bamboo CI to parse Jest results. Version 1.0.0 is the current stable release. The package is a fork of eslint-bamboo-formatter and outputs a JSON file (default jest.json) that Bamboo can consume. It has no dependencies and is intended for use in Bamboo CI pipelines. Emits no external side effects beyond writing the report file. Does not support Jest's reporters configuration; uses the older testResultsProcessor option.

npm install jest-bamboo-formatter
INSTALL
IMPORT
SIG · JEST-BAMBOO-FORMAT
J
jest-bamboo-formatter
testingjavascriptv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
module.exports = require('jest-bamboo-formatter')
The package does not export any symbols; it is consumed via Jest's testResultsProcessor configuration.

Shows how to configure Jest to use jest-bamboo-formatter as the test results processor.

// jest.config.js module.exports = { testResultsProcessor: 'jest-bamboo-formatter' };
Debug
Known issues
gotchaOutput file name defaults to 'jest.json' unless overridden by JEST_FILE environment variable. This can overwrite previous reports.
fix
Set JEST_FILE environment variable to a unique path, e.g., 'JEST_FILE=test-results.json'.
affects: >=1.0.0
gotchaPackage uses testResultsProcessor, not reporters. Using both may cause unexpected behavior.
fix
Do not specify reporters in Jest config if using testResultsProcessor.
affects: >=1.0.0
gotchaOutput file is written relative to current working directory, not the Jest config location.
fix
Run Jest from the directory where you want the report to appear or provide an absolute path via JEST_FILE.
affects: >=1.0.0
gotchaOnly supports Mocha test parser format; not compatible with Bamboo's JUnit Parser.
fix
Ensure your Bamboo job uses the 'Mocha Test Parser' not the JUnit parser.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'jest-bamboo-formatter'
Package not installed or testResultsProcessor path is incorrect.
fix
Run 'npm install jest-bamboo-formatter' and verify node_modules path.
Jest testResultsProcessor must be a string, not an array
Providing testResultsProcessor as an array (e.g., multiple processors) is not supported.
fix
Set testResultsProcessor to a single string.
TypeError: Jest: Got unexpected result from testResultsProcessor. Expected an object with 'testResults' array.
The formatter may have failed or output corrupt data.
fix
Check Jest version compatibility (Jest >=25) and ensure there are no syntax errors in test files.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
jest-bamboo-formatter — npm install jest-bamboo-formatter · libregistry