0.1.2 • Published 3 years ago

@mole-hill/jest-mocha-formatter v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Molehill Jest Mocha Formatter

During jest testing, it was used to generate mochawesome compliant json formatted reports.

Npm Known Vulnerabilities Npm License

Installation

npm install --save-dev @mole-hill/jest-mocha-formatter

Usage

Typically, I would add the testResultsProcessor property stated in JEST to with the CI/CD execution and pass it in to take effect.

First, you should define the test commands in the package.json file beforehand.

{
  "scripts": {
    "test": "jest",
    "test:coverage": "jest --coverage"
  }
}

And

npm run test --ci --testResultsProcessor="@mole-hill/jest-mocha-formatter"

Output

The reporter writes to report.json by default. The JEST_REPORT_JSON environment variable can be used to alter the file name.

Just like this.

JEST_REPORT_JSON="./coverage/report.json" npm run test:coverage --ci --testResultsProcessor="@mole-hill/jest-mocha-formatter"

License

Molehill Jest Mocha Formatter is MIT licensed.

0.1.2

3 years ago

0.1.0

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.1

3 years ago