August 2017
Beginner
374 pages
10h 41m
English
As mentioned earlier, there are cases where we need to clean up the environment after our tests run (teardown). In other cases, we might want to run some code before the tests run, like creating sample data (setup).
There are two ways to do setup and teardown in Jest:
Read now
Unlock full access