Jest and recurring actions
Sometimes you want to have Jest perform a recurring action between each task.
Some examples:
Query a database, clear storage, clear mocked data, or reset a mocked route.
We don't really want to be bothered with having this recurring code in each test...
h.daily-dev-tips.com2 min read