Skip to content

Commit

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

Adds tslint rules to explicitly ban `describe.only`, `it.only`, and `test.only`.
  • Loading branch information
Spencer authored and lukeelmers committed Feb 8, 2019
1 parent cba941e commit d4812c4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tslint.yaml
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 d4812c4

Please sign in to comment.