Have been wrestling with some Jest tests in this PR for a few days:
https://github.com/distributeaid/shipment-tracker/pull/171
Jest's way to set up test synchronously makes it really hard to use it with data
that is created async (in this case database entries).