0.1.3 • Published 5 years ago

@codechecks/type-coverage-watcher v0.1.3

Weekly downloads
48
License
MIT
Repository
github
Last release
5 years ago

Install

npm add --save-dev @codechecks/type-coverage-watcher

Usage

Are you new to codechecks? Check out getting started guide (it's simple)!

Add to your codechecks.yml file:

checks:
  - name: type-coverage-watcher
  # ...

Under the hood it uses type-coverage package.

API

typeCoverageWatcher(options: Options): Promise\

options

interface Options {
  tsconfigPath?: string; //defaults to tsconfig.json
  name?: string; // defaults to Type Coverage
  ignoreFiles?: string[];
  ignoreCatch?: boolean;
  atLeast?: number;
  strict?: boolean;
}
tsconfigPath

optional string\ Default: tsconfig.json\ Path to typescript project configuration

name

optional string\ Defaults: Type Coverage\ Specify the name for check. Might be useful in monorepos.

ignoreFiles

optional string[]\ Defaults: undefined\ Specify the ignored for checks files.

ignoreCatch

optional string\ Defaults: undefined\ See type-coverage's description for the reference.

atLeast

optional number\ Defaults: undefined\ Example: atLeast: 99\ Fail if coverage rate < this value.

strict

optional string\ Defaults: undefined\ See type-coverage's description for the reference.

Contributing

All contributions are welcomed. Read more in CONTRIBUTING.md

Licence

MIT @ codechecks.io