eranshabi / tslint-jest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tslint-jest

Lint rules for projects that use jest.

Usage

First install:

npm install --save-dev tslint-jest

Then add tslint-jest to extends in your tslint.json, with the desired rules:

{
  "extends": ["tslint-jest"],
  "rules": {
  		"no-alias-methods": true
  		...
  	}
}

Rules

  • no-alias-methods
    • Disallow alias methods
  • expect-expect
    • Enforce assertion to be made in a test body

Contributions

Are welcome, see issues.

About


Languages

Language:TypeScript 97.6%Language:JavaScript 2.4%