Tracking Issue: Consolidation of frontend test frameworks
Created by: umpox
Plan
Most of our tests (all of our unit tests) run through jest
. All tests that use Puppeteer run through mocha
.
We should migrate our mocha
tests to jest
because:
- Having a single test framework will improve DX and productivity
- It will help us avoid cross-framework bugs which are difficult to debug and track. Example: https://github.com/sourcegraph/sourcegraph/pull/31397
-
jest
is a library with greater usage and, generally, better support with different tooling - The vast majority of our tests use
jest
, and we haven't had any major complaints about it in recent times.
Note: We previous had some complaints about jest
. I investigated them in this issue: https://github.com/sourcegraph/sourcegraph/issues/31630. I found that there wasn't anything major that should block us in this migration.
Tracked issues
@gitstart-sourcegraph: 8.00d
-
https://github.com/sourcegraph/sourcegraph/issues/31708 2.00d -
https://github.com/sourcegraph/sourcegraph/issues/31709 3.00d -
https://github.com/sourcegraph/sourcegraph/issues/31710 3.00d