Skip to content

Deal with jest results and only output statistics and error information。And strip ANSI strings。

License

Notifications You must be signed in to change notification settings

zu1662/jest-json-result

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jest JSON Result

JSON test results processor for Jest.

Deal with jest results and only output statistics and error information。And strip ANSI strings.

Setup

npm install --save-dev jest-json-result

Then add to Jest config in the package.json

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

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:

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

Inspire by Jest JSON Reporter. Many Thanks.

About

Deal with jest results and only output statistics and error information。And strip ANSI strings。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published