Commit 40cd89d 1 parent 3705dff commit 40cd89d Copy full SHA for 40cd89d
File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ installations requiring long-term consistency.
135
135
| [ lowercase-name] ( docs/rules/lowercase-name.md ) | Enforce lowercase test names | | ![ fixable] [ ] |
136
136
| [ no-alias-methods] ( docs/rules/no-alias-methods.md ) | Disallow alias methods | ![ style] [ ] | ![ fixable] [ ] |
137
137
| [ no-commented-out-tests] ( docs/rules/no-commented-out-tests.md ) | Disallow commented out tests | ![ recommended] [ ] | |
138
- | [ no-conditional-expect] ( docs/rules/no-conditional-expect.md ) | Prevent calling ` expect ` conditionally | | |
138
+ | [ no-conditional-expect] ( docs/rules/no-conditional-expect.md ) | Prevent calling ` expect ` conditionally | ![ recommended ] [ ] | |
139
139
| [ no-deprecated-functions] ( docs/rules/no-deprecated-functions.md ) | Disallow use of deprecated functions | ![ recommended] [ ] | ![ fixable] [ ] |
140
140
| [ no-disabled-tests] ( docs/rules/no-disabled-tests.md ) | Disallow disabled tests | ![ recommended] [ ] | |
141
141
| [ no-duplicate-hooks] ( docs/rules/no-duplicate-hooks.md ) | Disallow duplicate setup and teardown hooks | | |
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ Object {
66
66
" rules" : Object {
67
67
" jest/expect-expect" : " warn" ,
68
68
" jest/no-commented-out-tests" : " warn" ,
69
+ " jest/no-conditional-expect" : " error" ,
69
70
" jest/no-deprecated-functions" : " error" ,
70
71
" jest/no-disabled-tests" : " warn" ,
71
72
" jest/no-export" : " error" ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export default createRule({
12
12
docs : {
13
13
description : 'Prevent calling `expect` conditionally' ,
14
14
category : 'Best Practices' ,
15
- recommended : false ,
15
+ recommended : 'error' ,
16
16
} ,
17
17
messages : {
18
18
conditionalExpect : 'Avoid calling `expect` conditionally`' ,
You can’t perform that action at this time.
0 commit comments