Skip to content

Commit c9abd86

Browse files
committed
docs(prefer-hooks-on-top): improve rule description
1 parent 50acbfb commit c9abd86

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/rules/prefer-hooks-on-top.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Suggest having hooks before any test cases (`prefer-hooks-on-top`)
22

3-
All hooks should be defined before the start of the tests
3+
While hooks can be setup anywhere in a test file, they are always called in a
4+
specific order which means it can be confusing if they're intermixed with test
5+
cases.
6+
7+
This rule helps to ensure that hooks are always defined before test cases.
48

59
## Rule Details
610

0 commit comments

Comments
 (0)