0.9.38 • Published 4 years ago

resus-cli-report v0.9.38

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

Jest reporter

Jest test results processor for generating a summary in HTML

Installation


  npm install resus-cli-report --save-dev

Usage


Configure Jest to process the test results by adding the following entry to the Jest config (jest.config.json):

"jest": {
  ...,
  "reporters": [
    "default",
    "resus-cli-report"
  ],
  ...
}

As you run Jest from within the terminal, a file called jest_html_reporters.html will be created within your root folder containing information about your tests.

Available Options

The options below are specific to the reporter.

Option NameTypeDefaultDescription
publicPathstring''specify the base path
filenamestringjest_html_reporters.htmlFilename of saved report Applies to the generated html
expandBooleanfalsespecify whether default expand all data
pageTitlestringReportspecify header and page title
logoImgPathstringundefinedspecify path of the image that will be displayed to the right of page title
hideIconBooleanfalsehide default icon
customInfosarrayundefinedshow some custom data info in the report, example value [ {title: 'test1', value: 'test1'}, {title: 'test2', value: 'test2'}], you can also set value to a environment variable JEST_HTML_REPORTERS_CUSTOM_INFOS, see detail in #

example add config options

...,
"reporters": [
  "default",
  ["jest-html-reporters", {
    "publicPath": "./html-report",
    "filename": "report.html",
    "expand": true
  }]
]

0.9.38

4 years ago

0.9.37

4 years ago

0.9.36

4 years ago

0.9.35

4 years ago

0.9.34

4 years ago

0.9.33

4 years ago

0.9.32

4 years ago

0.9.30

4 years ago

0.9.31

4 years ago

0.9.28

4 years ago

0.9.29

4 years ago

0.9.27

4 years ago

0.9.24

4 years ago

0.9.25

4 years ago

0.9.26

4 years ago

0.9.23

4 years ago

0.9.22

4 years ago

0.9.21

4 years ago

0.9.20

4 years ago

0.9.19

4 years ago

0.9.18

4 years ago

0.9.16

4 years ago

0.9.17

4 years ago

0.9.14

4 years ago

0.9.15

4 years ago

0.9.12

4 years ago

0.9.13

4 years ago

0.9.11

4 years ago

0.9.10

4 years ago

0.9.9

4 years ago

0.9.8

4 years ago

0.9.7

4 years ago

0.9.4

4 years ago

0.9.3

4 years ago

0.9.6

4 years ago

0.9.5

4 years ago

0.9.2

4 years ago

0.9.1

4 years ago