Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

mradcliffe/tslint-defocus

 
 

Repository files navigation

Build StatusNPM VersionLicense

tslint-defocus

About

This is a tslint rule that warns about focussed Jasmine tests -fdescribe andfit

Usage

  • Install with:npm install tslint-defocus --save-dev oryarn add tslint-defocus --dev
  • Extend this package in your.tslint.json file, e.g.:
  "extends": [    "tslint-defocus"  ],  "rules": {    "defocus": true,    ...

(as per theinstructions for custom rules)

  • Runtslint as you usually would (gulp plugin, directly from node, etc)
  • If you forget to remove a call tofdescribe orfit then 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.

Dependencies

Version 2.0.x of this rule requires version 5.x of tslint.

Developer instructions

  • installed the required global npm packages:npm install gulp --global --no-optional.
  • Clonefrom github
  • Runnpm install oryarn install to install and get started
  • This repo uses npm scripts for its build. Tryyarn build andyarn test.
  • There are also watch mode variants -yarn build:watch andyarn test:watch.

License

MIT

About

A tslint rule to nag you when you forget that you have focused some Jasmine tests with 'fdescribe' or 'fit'

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript98.8%
  • JavaScript1.2%

[8]ページ先頭

©2009-2025 Movatter.jp