[web] use a global shared mock for the metrics module (#32799)
GitOrigin-RevId: 72874ba6c06c2a602b01cc029bc9c71ce3ce8892
This commit is contained in:
@@ -83,10 +83,6 @@ describe('EditorController', function () {
|
||||
})
|
||||
)
|
||||
|
||||
vi.doMock('@overleaf/metrics', () => ({
|
||||
default: (ctx.Metrics = { inc: sinon.stub() }),
|
||||
}))
|
||||
|
||||
ctx.EditorController = (await import(modulePath)).default
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user