Setting up testing environment is crucial for avoiding having convoluted tests. They are useful to setup your global mocks and run functions globally for every test.
We have two ways to setup testing environment and they should be used in certain scenarios.
Setup Files
Global Setup