Skip to content

Commit

Permalink
[tslint] ban exclusive tests (#30448)
Browse files Browse the repository at this point in the history
Fixes #30262

Adds tslint rules to explicitly ban `describe.only`, `it.only`, and `test.only`.
  • Loading branch information
Spencer committed Feb 8, 2019
1 parent 168d17e commit 3f5597a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tslint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ rules:
react-a11y-role: true
react-a11y-tabindex-no-positive: true
react-a11y-titles: true
ban:
- true
- name: [describe, only]
message: No exclusive suites.
- name: [it, only]
message: No exclusive tests.
- name: [test, only]
message: No exclusive tests.
require-license-header:
- true
- |-
Expand Down

0 comments on commit 3f5597a

Please sign in to comment.