The `jest-jenkins-reporter` package provides a Jest test results processor designed to generate XML reports compatible with Jenkins's JUnit plugin. As of version 1.0.2, this specific package is no longer actively maintained, with its last publish date being over eight years ago. Its core function is to transform Jest's comprehensive test output into a standardized XML format, which then allows Continuous Integration (CI) servers, particularly Jenkins, to parse and display test results within their dashboards. This reporter operates by creating a static XML file after the test suite completes, rather than offering real-time reporting during execution. The original development team (pilipa-cn) has explicitly stated the project is out of maintenance, directing users to a community-maintained fork. Consequently, this package lacks a regular release cadence and has received no updates for an extended period. Developers are strongly encouraged to use actively maintained alternatives like `@digitalroute/jest-jenkins-reporter` or `jest-junit` for modern Jest setups.
npm install jest-jenkins-reporterVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to configure `jest-jenkins-reporter` in `package.json` for generating an XML report suitable for Jenkins, alongside a basic Jest test file.
Migrate to an actively maintained alternative like `@digitalroute/jest-jenkins-reporter` or `jest-junit`. Ensure you update your `package.json` and Jest configuration accordingly. For example, change `testResultsProcessor` to `@digitalroute/jest-jenkins-reporter` after installing the new package.
Consider refactoring your Jest configuration to use the `reporters` array. For example: `"jest": { "reporters": ["default", "jest-jenkins-reporter"] }`. Note that some reporters might require different configuration syntaxes when used in the `reporters` array.In your Jenkins job configuration, add a 'Publish JUnit test result report' post-build action. Specify the path to the generated XML file (e.g., `reports/jest-report.xml`) in the 'Test report XMLs' field.
Ensure the package is installed as a dev dependency: `npm install --save-dev jest-jenkins-reporter` or `yarn add --dev jest-jenkins-reporter`. Verify the name in `package.json` matches the installed package name exactly.
Ensure the `testResultsProcessor` entry is directly under the `jest` key in `package.json` or correctly exported in `jest.config.js`. For example: `"jest": { "testResultsProcessor": "jest-jenkins-reporter" }`.No dependency data recorded yet.