Use Mocha for e2e and regression tests
Created by: felixfbecker
#5724 for only e2e and regression tests.
This fixes:
- Tests continuing after
beforeAll
failed - Browser logs being buffered and at the top, which makes them impossible to correlate to tests
- Hacky screenshot reporter
- Hacky
onUncaughtException
handler - Needing
@jest-environment
in every file
We still use the same assertions that Jest use (but it needs to be imported). Jest globals are not available to TypeScript thanks to own tsconfigs.