[web] use a global shared mock for the metrics module (#32799)

GitOrigin-RevId: 72874ba6c06c2a602b01cc029bc9c71ce3ce8892
This commit is contained in:
Jakob Ackermann
2026-04-14 14:20:43 +02:00
committed by Copybot
parent e9b50b08bf
commit 917d2700c8
30 changed files with 41 additions and 172 deletions

View File

@@ -22,12 +22,6 @@ describe('BetaProgramHandler', function () {
save: sinon.stub().callsArgWith(0, null),
}
vi.doMock('@overleaf/metrics', () => ({
default: {
inc: sinon.stub(),
},
}))
vi.doMock('../../../../app/src/Features/User/UserUpdater', () => ({
default: (ctx.UserUpdater = {
promises: {