1. jest-json-reporter
JSON test results processor for Jest.
jest-json-reporter
Package: jest-json-reporter
Created by: Vall3y
Last modified: Sun, 19 Jun 2022 04:12:00 GMT
Version: 1.2.2
License: MIT
Downloads: 86,876
Repository: https://github.com/Vall3y/jest-json-reporter

Install

npm install jest-json-reporter
yarn add jest-json-reporter

Jest JSON Reporter

JSON test results processor for Jest. Outputs the test results in JSON format as speified in the jest documentation to a file called test-results.json (configurable)

Setup

npm install --save-dev jest-json-reporter

Then add to Jest config in the package.json

...
"jest": {
  "testResultsProcessor": "./node_modules/jest-json-repoter"
},
...

Configure

output file name

By default, output file goes to test-results.json. You can configure it by adding a outputFile field under jestJsonReporter in your package.json file:

"jestJsonReporter": {
  "outputFile": "tests/results.json"
},

Dependencies

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code