Skip to content

Commit

Permalink
docs(prefer-hooks-on-top): improve rule description
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Dec 26, 2021
1 parent 33e6737 commit 5398194
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/rules/prefer-hooks-on-top.md
@@ -1,6 +1,10 @@
# Suggest having hooks before any test cases (`prefer-hooks-on-top`)

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
specific order which means it can be confusing if they're intermixed with test
cases.

This rule helps to ensure that hooks are always defined before test cases.

## Rule Details

Expand Down

0 comments on commit 5398194

Please sign in to comment.