Migration from 0.x
yarn add --dev jest-trx-results-processor
In your jest config add the following entry:
You can also pass additional arguments:
Then run jest as usual.
Usage as testResultsProcessor
Notice: this method of use will be removed in the next major version. Please use the reporters API described above.
jestTrxProcessor.js file somewhere in your project (for this example I'll assume the
There you can configure the processor, as Jest does not allow you to pass custom parameters to the results processor:
// for jest-trx-results-processor >= 1.0.0var builder = ; // only this has changed since v 0.x// for jest-trx-results-processor < 1.0.0var builder = ;var processor =;moduleexports = processor;
Finally, point Jest to your results processor in the
Then you just run Jest as you normally would.
Minimal working configuration can be seen in the examples folder.
jest-trx-results-processor is available under MIT. See LICENSE for more details.