- Notifications
You must be signed in to change notification settings - Fork6
A tslint rule to nag you when you forget that you have focused some Jasmine tests with 'fdescribe' or 'fit'
License
NotificationsYou must be signed in to change notification settings
Sergiioo/tslint-defocus
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is a tslint rule that warns about focussed Jasmine tests -fdescribe andfit
- Install with:
npm install tslint-defocus --save-devoryarn add tslint-defocus --dev - Extend this package in your
.tslint.jsonfile, e.g.:
"extends": [ "tslint-defocus" ], "rules": { "defocus": true, ...(as per theinstructions for custom rules)
- Run
tslintas you usually would (gulp plugin, directly from node, etc) - If you forget to remove a call to
fdescribeorfitthen you will see something like from tslint:
(defocus) app.ts[4, 1]: Calls to 'fdescribe' are not allowed.(defocus) app.ts[8, 5]: Calls to 'fit' are not allowed.Version 2.0.x of this rule requires version 5.x of tslint.
- installed the required global npm packages:
npm install gulp --global --no-optional. - Clonefrom github
- Run
npm installoryarn installto install and get started - This repo uses npm scripts for its build. Try
yarn buildandyarn test. - There are also watch mode variants -
yarn build:watchandyarn test:watch.
MIT
About
A tslint rule to nag you when you forget that you have focused some Jasmine tests with 'fdescribe' or 'fit'
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.