1.4.0 • Published 4 years ago

jest-git-validator v1.4.0

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

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
1.4.0

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago