Closed avaly closed 7 years ago
If you need a different environment in each test then you should probably be using window
or just jsdom directly.
browserEnv
is global so if you have tests running async then they're gonna be reconfiguring stuff for each other.
In certain cases it's useful to have access to the JSDOM instance in order to reconfigure.
Example:
browserEnv
globally in the unit tests setup script with a default URL