I wanted to try setting up automatic retries, so I ejected my jest config, and added a setupFilesAfterEnv. But when running tests, I got TypeError: globalThis.__sbPostVisit is not a function when a failure happened in a test.
To Reproduce
Eject
Add setupFilesAfterEnv, point it to a file (the file doesn't have to do anything)
Add await expect('foo').toBe('bar'); in a play function
Describe the bug
I wanted to try setting up automatic retries, so I ejected my jest config, and added a
setupFilesAfterEnv
. But when running tests, I gotTypeError: globalThis.__sbPostVisit is not a function
when a failure happened in a test.To Reproduce
setupFilesAfterEnv
, point it to a file (the file doesn't have to do anything)await expect('foo').toBe('bar');
in a play functionSystem
Additional context
Using
setupFiles
instead works fine.