All Projects → Sergiioo → tslint-defocus

Sergiioo / tslint-defocus

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

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to tslint-defocus

Express
Express + Sequelize + Winston + Jasmine + TypeScript + Webpack MVC Boilerplate
Stars: ✭ 9 (-50%)
Mutual labels:  jasmine, tslint
Tslint
🚦 An extensible linter for the TypeScript language
Stars: ✭ 5,922 (+32800%)
Mutual labels:  tslint, linting-rules
tslint-lines-between-class-members
Custom rule for TSLint to enforce blank lines between class methods - achieves a similar thing to lines-between-class-members in ESLint
Stars: ✭ 18 (+0%)
Mutual labels:  tslint, tslint-rules
Express Graphql Typescript Boilerplate
A starter kit for building amazing GraphQL API's with TypeScript and express by @w3tecch
Stars: ✭ 163 (+805.56%)
Mutual labels:  jasmine, tslint
Approvals.NodeJS
Approval Tests implementation in NodeJS
Stars: ✭ 79 (+338.89%)
Mutual labels:  jasmine
sublime-jasmine
Jasmine syntax, snippets and commands
Stars: ✭ 24 (+33.33%)
Mutual labels:  jasmine
observer-spy
This library makes RxJS Observables testing easy!
Stars: ✭ 310 (+1622.22%)
Mutual labels:  jasmine
eslint-plugin-no-only-tests
ESLint rule for catching focused/only test blocks
Stars: ✭ 67 (+272.22%)
Mutual labels:  jasmine
astraea
TypeScript + React Boilerplate
Stars: ✭ 15 (-16.67%)
Mutual labels:  tslint
cms-fe-angular8
A Content Management System with Angular8, UI use Ant-Design(ng-zorro-antd)
Stars: ✭ 65 (+261.11%)
Mutual labels:  tslint
parse-server-test-runner
A tool for programmatically starting Parse Server
Stars: ✭ 18 (+0%)
Mutual labels:  jasmine
gulp-reporter
Error report for: CSSLint/EditorConfig/ESLint/HTMLHint/JSCS/JSHint/PostCSS/Standard/TSLint/XO
Stars: ✭ 17 (-5.56%)
Mutual labels:  tslint
therapist
Work out your commitment issues.
Stars: ✭ 29 (+61.11%)
Mutual labels:  linting-rules
fullstack-typescript
A demo project of a full stack typescript application
Stars: ✭ 28 (+55.56%)
Mutual labels:  tslint
ci-ifd-lead
Code Institute | Interactive Frontend Development | 6-week _lead project
Stars: ✭ 16 (-11.11%)
Mutual labels:  jasmine
stencil-boilerplate
A Stencil app boilerplate including routing, Redux etc.
Stars: ✭ 51 (+183.33%)
Mutual labels:  tslint
jasmine2-custom-message
custom failure message on any jasmine v2 assertion
Stars: ✭ 27 (+50%)
Mutual labels:  jasmine
ts-standard
Typescript style guide, linter, and formatter using StandardJS
Stars: ✭ 338 (+1777.78%)
Mutual labels:  tslint
ts-snippet
A TypeScript snippet compiler for any test framework
Stars: ✭ 29 (+61.11%)
Mutual labels:  jasmine
react-ui-kit-boilerplate
A minimal React UI Kit boilerplate with Storybook, hot reloading, Styled Components, Typescript and Jest
Stars: ✭ 88 (+388.89%)
Mutual labels:  tslint

Build Status NPM Version License

tslint-defocus

About

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

Usage

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

(as per the instructions for custom rules)

  • Run tslint as you usually would (gulp plugin, directly from node, etc)
  • If you forget to remove a call to fdescribe or fit 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.
  • Clone from github
  • Run npm install or yarn install to install and get started
  • This repo uses npm scripts for its build. Try yarn build and yarn test.
  • There are also watch mode variants - yarn build:watch and yarn test:watch.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].