Open any test file in your project and count how many times you see this:
lecture 16 of 190 completed
Stop writing the same login twice
Move repeated setup into your own command. Your tests get shorter, and one change fixes every file.
What you'll learn
- How to move repeated setup into your own command
- Why every setup command needs a check at the end
- When a plain function is the better choice
members only
Keep reading with the full course
The Foundations track and the first 5 lectures of each framework are free. This lecture is part of the paid course, which unlocks every lecture, all three frameworks, and downloads.
See the options →