We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50acbfb commit c9abd86Copy full SHA for c9abd86
docs/rules/prefer-hooks-on-top.md
@@ -1,6 +1,10 @@
1
# Suggest having hooks before any test cases (`prefer-hooks-on-top`)
2
3
-All hooks should be defined before the start of the tests
+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.
8
9
## Rule Details
10
0 commit comments