jest-git-validator
v1.4.0
Published
A script to find git files which were created / added / modified and check if jest test files were written for them with the requisite jest test coverage.
Downloads
3
Readme
A script to find git files which were created / added / modified and check if jest test files were written for them with the requisite jest test coverage.
Getting Started
npm install jest-git-validator
Usage
jest-git-validate [options]
Options
List all options
jest-git-validate --help
- PR Validation Branch
Remote Branch Name against which local files are compared.
Default: 'master'
jest-git-validate --branch branchName
- Remote Git Url
Remote Git Url against which local files are compared.
Default: 'remotes/origin/'
jest-git-validate --remoteUrl remoteUrl
- Git diff filter
The Git diff filter to use. Refer this for more.
Default: 'A'
jest-git-validate --diff-filter CRAM
- JSON file to ignore tests
A JSON file of the format {files: ['/path-to-files'], folders: ['glob-patterns']}
Default: './TestIgnored.json'
jest-git-validate --testIgnoreFile ./TestIgnored.json
- Skip Test Coverage Check
A boolean flag to skip test coverage check.
Default: false
jest-git-validate --skipCoverageCheck