Introduction
Let and before hooks help you set up values and actions before running tests. They keep your tests clean and avoid repeating code.
When you want to create a value once and use it in many tests.
When you need to run some setup code before each test runs.
When you want to keep your test code organized and easy to read.