[web] use a global shared mock for the metrics module (#32799)
GitOrigin-RevId: 72874ba6c06c2a602b01cc029bc9c71ce3ce8892
This commit is contained in:
@@ -10,7 +10,6 @@ const modulePath =
|
||||
describe('InactiveProjectManager', function () {
|
||||
beforeEach(async function (ctx) {
|
||||
ctx.settings = {}
|
||||
ctx.metrics = { inc: sinon.stub() }
|
||||
ctx.DocstoreManager = {
|
||||
promises: {
|
||||
unarchiveProject: sinon.stub(),
|
||||
@@ -39,10 +38,6 @@ describe('InactiveProjectManager', function () {
|
||||
default: ctx.settings,
|
||||
}))
|
||||
|
||||
vi.doMock('@overleaf/metrics', () => ({
|
||||
default: ctx.metrics,
|
||||
}))
|
||||
|
||||
vi.doMock('../../../../app/src/Features/Docstore/DocstoreManager', () => ({
|
||||
default: ctx.DocstoreManager,
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user