I believe that jest does this by default. It'd be great if codesandbox did it too.
Here's an example:
The test that fails:
test('fetch is defined on window', () => {
expect(window.fetch).toBeDefined()
})
Good one! This one was an easy fix luckily 馃槃. I'm expecting to deploy it tomorrow morning if that's okay.
For reference, it now works for me:

That was fast!

Most helpful comment
That was fast!