0.0.4 • Published 2 years ago

jest-multiple-result-processors v0.0.4

Weekly downloads
1,229
License
MIT
Repository
github
Last release
2 years ago

#Multiple Jest Test Result Processors npm

CircleCI token codecov Dependencies install size npm downloads Snyk Vulnerabilities for npm package NPM

Jest currently has no capabilities of chaining multiple test result processors out of the box.

There is an issue raised on the official github of Jest, but it seems to not bare any fruit. The solution in that thread is to create your own processor which chains together the processors you need.

This small utility does just that.

Install

yarn add -D jest-multiple-result-processors
npm install --dev jest-multiple-result-processors

Configure

You have to tell Jest to use this library as its main test result processor. In addition to that, you need to configure this library and list all the modules you want to run on the test result. If the ordering matters (which I advise against), the results will be threaded through from top to bottom.

###package.json

{
  "jestTestResultProcessors": [
    "test-result-processor-module-1",
    "./your-custom-processor.js"
  ],
  "jest": {
    "testResultsProcessor": "jest-multiple-result-processors"
  }
}

## Disclaimer This is the first draft of this package, feel free to submit changes.

0.0.4

2 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago