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.
3232 "jest/no-disabled-tests" : " warn" ,
3333 "jest/no-focused-tests" : " error" ,
3434 "jest/no-identical-title" : " error" ,
35+ "jest/prefer-to-have-length" : " warn" ,
3536 "jest/valid-expect" : " error"
3637 }
3738}
@@ -54,6 +55,7 @@ You can also whitelist the environment variables provided by Jest by doing:
5455* [ no-focused-tests] ( /docs/rules/no-focused-tests.md ) - disallow focused tests.
5556* [ no-identical-title] ( /docs/rules/no-identical-title.md ) - disallow identical
5657 titles.
58+ * [ prefer-to-have-length] ( /docs/rules/prefer-to-have-length.md ) - suggest using toHaveLength().
5759* [ valid-expect] ( /docs/rules/valid-expect.md ) - ensure expect is called
5860 correctly.
5961
@@ -82,6 +84,7 @@ The rules enabled in this configuration are:
8284* [ jest/no-disabled-tests] ( /docs/rules/no-disabled-tests.md )
8385* [ jest/no-focused-tests] ( /docs/rules/no-focused-tests.md )
8486* [ jest/no-identical-title] ( /docs/rules/no-identical-title.md )
87+ * [ jest/prefer-to-have-length] ( /docs/rules/prefer-to-have-length.md )
8588* [ jest/valid-expect] ( /docs/rules/valid-expect.md )
8689
8790## Credit
You can’t perform that action at this time.
0 commit comments