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...

Markdown supported · ⌘↵ to post
No responses yet.