{"id":13379,"library":"jest-multi-test-result-processor","title":"Jest Multi Test Result Processor","description":"The `jest-multi-test-result-processor` package enables Jest to use multiple `testResultProcessor` modules for generating diverse test reports from a single test run. Prior to Jest's native support for multiple reporters, this package filled a gap by allowing composition of various output formats like JUnit XML and HTML. It operates by delegating the final test results to a list of specified processors in sequence. The package's current stable version is 1.0.0, last published in February 2018. Its release cadence is effectively inactive, as it has not been updated in over eight years. While historically useful, Jest's built-in `reporters` array (introduced around Jest 20 in May 2017) largely superseded the need for this package for most common reporting needs, and the `testResultsProcessor` option itself is now considered a legacy feature by many reporter packages.","status":"abandoned","version":"1.0.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","jest","multi","test-results","test-result-processor","testResultProcessor"],"install":[{"cmd":"npm install jest-multi-test-result-processor","lang":"bash","label":"npm"},{"cmd":"yarn add jest-multi-test-result-processor","lang":"bash","label":"yarn"},{"cmd":"pnpm add jest-multi-test-result-processor","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Runtime dependency for test execution and processing test results.","package":"jest","optional":false},{"reason":"Commonly used test result processor that this package orchestrates. Other Jest reporters/processors are also expected.","package":"jest-junit","optional":true}],"imports":[{"note":"This package is not imported as a JavaScript/TypeScript module. It is configured via the `package.json` or `jest.config.js` as a string path to a test result processor. The actual processors it orchestrates are listed under its dedicated `package.json` key.","wrong":"import multiProcessor from 'jest-multi-test-result-processor'","symbol":"Configuration","correct":"{ \"jest\": { \"testResultsProcessor\": \"jest-multi-test-result-processor\" }, \"jest-multi-test-result-processor\": { \"processors\": [\"jest-junit\", \"html-jest-reporter\"] } }"}],"quickstart":{"code":"{\n  \"name\": \"my-jest-project\",\n  \"version\": \"1.0.0\",\n  \"devDependencies\": {\n    \"jest\": \"^29.0.0\",\n    \"jest-junit\": \"^16.0.0\",\n    \"jest-html-reporter\": \"^4.0.0\",\n    \"jest-multi-test-result-processor\": \"^1.0.0\"\n  },\n  \"scripts\": {\n    \"test\": \"jest\"\n  },\n  \"jest\": {\n    \"testResultsProcessor\": \"jest-multi-test-result-processor\"\n  },\n  \"jest-multi-test-result-processor\": {\n    \"processors\": [\n      \"jest-junit\",\n      \"./node_modules/jest-html-reporter\"\n    ]\n  }\n}\n\n// example.test.js\ndescribe('My Example Tests', () => {\n  test('should pass a basic assertion', () => {\n    expect(1 + 1).toBe(2);\n  });\n\n  test('should fail a basic assertion (for report demo)', () => {\n    expect(2 + 2).toBe(5);\n  });\n});","lang":"javascript","description":"This quickstart demonstrates how to configure `jest-multi-test-result-processor` in `package.json` to process test results using both `jest-junit` and `jest-html-reporter`. It includes a sample `package.json` with dev dependencies and the necessary Jest configuration, alongside a basic test file to generate output for the specified processors."},"warnings":[{"fix":"Migrate your Jest configuration to use the `reporters` array instead of `testResultsProcessor`. Install desired reporters (e.g., `jest-junit`, `jest-html-reporter`) directly and list them in the `reporters` array in `jest.config.js` or `package.json`.","message":"The `testResultsProcessor` configuration option in Jest, which this package relies on, is considered a legacy feature and is actively deprecated by many popular reporters (e.g., `jest-junit`, `jest-trx-results-processor`). Jest's native `reporters` array (e.g., `reporters: ['default', 'jest-junit', 'jest-html-reporter']`) provides equivalent functionality and is the recommended, modern approach for using multiple reporters.","severity":"breaking","affected_versions":">=1.0.0 (all versions)"},{"fix":"Strongly consider replacing this package with Jest's native `reporters` array. If unique functionality is required, evaluate other actively maintained community solutions or custom Jest reporters.","message":"This package was last published in February 2018. It is not actively maintained, and its functionality has been largely superseded by built-in Jest features. Using an unmaintained package may lead to compatibility issues with newer Jest versions or other ecosystem tools, and potential security vulnerabilities.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Ensure that processor paths are correctly resolved by Jest. For modules installed via npm, the module name is often sufficient, but for specific or custom processors, a full or relative path might be necessary (e.g., in `package.json` config: `\"processors\": [\"jest-junit\", \"./node_modules/jest-html-reporter\"]`).","message":"When configuring the processors, you might need to use relative paths for local modules, especially if they are not directly discoverable by name. For example, './node_modules/jest-html-reporter' instead of just 'jest-html-reporter'.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-19T00:00:00.000Z","next_check":"2026-07-18T00:00:00.000Z","problems":[{"fix":"Ensure you are using a Jest version that supports `testResultsProcessor` (though it is deprecated in newer versions). If on a modern Jest version, switch to using the `reporters` array configuration instead.","cause":"This error typically indicates an outdated Jest version that does not recognize the `testResultsProcessor` option, or a misconfiguration where Jest expects a reporter array but finds a processor.","error":"Validation Error: Options: Unknown option \"testResultsProcessor\" with value \"jest-multi-test-result-processor\" was found."},{"fix":"Install the package: `npm install --save-dev jest-multi-test-result-processor` or `yarn add --dev jest-multi-test-result-processor`. Verify the path if configured explicitly.","cause":"The package `jest-multi-test-result-processor` is not installed or Jest cannot resolve its path.","error":"Cannot find module 'jest-multi-test-result-processor' specified in the 'testResultsProcessor' option."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null}