Introduction
We use lifecycle methods to set up and clean up before and after tests run. Knowing their order helps us organize tests well.
When you need to prepare resources before any tests start.
When you want to reset data before each test runs.
When you want to clean up resources after each test.
When you want to release resources after all tests finish.