File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ Then configure the rules you want to use under the rules section.
32
32
"jest/no-disabled-tests" : " warn" ,
33
33
"jest/no-focused-tests" : " error" ,
34
34
"jest/no-identical-title" : " error" ,
35
+ "jest/prefer-to-have-length" : " warn" ,
35
36
"jest/valid-expect" : " error"
36
37
}
37
38
}
@@ -54,6 +55,7 @@ You can also whitelist the environment variables provided by Jest by doing:
54
55
* [ no-focused-tests] ( /docs/rules/no-focused-tests.md ) - disallow focused tests.
55
56
* [ no-identical-title] ( /docs/rules/no-identical-title.md ) - disallow identical
56
57
titles.
58
+ * [ prefer-to-have-length] ( /docs/rules/prefer-to-have-length.md ) - suggest using toHaveLength().
57
59
* [ valid-expect] ( /docs/rules/valid-expect.md ) - ensure expect is called
58
60
correctly.
59
61
@@ -82,6 +84,7 @@ The rules enabled in this configuration are:
82
84
* [ jest/no-disabled-tests] ( /docs/rules/no-disabled-tests.md )
83
85
* [ jest/no-focused-tests] ( /docs/rules/no-focused-tests.md )
84
86
* [ jest/no-identical-title] ( /docs/rules/no-identical-title.md )
87
+ * [ jest/prefer-to-have-length] ( /docs/rules/prefer-to-have-length.md )
85
88
* [ jest/valid-expect] ( /docs/rules/valid-expect.md )
86
89
87
90
## Credit
You can’t perform that action at this time.
0 commit comments