diff --git a/packages/server/src/integrations/tests/mongo.spec.ts b/packages/server/src/integrations/tests/mongo.spec.ts index 93e54c7bc7..74dd9d4ec0 100644 --- a/packages/server/src/integrations/tests/mongo.spec.ts +++ b/packages/server/src/integrations/tests/mongo.spec.ts @@ -12,15 +12,6 @@ class TestConfiguration { } } -function disableConsole() { - jest.spyOn(console, "error") - // @ts-ignore - console.error.mockImplementation(() => {}) - - // @ts-ignore - return console.error.mockRestore -} - describe("MongoDB Integration", () => { let config: any let indexName = "Users" @@ -96,8 +87,6 @@ describe("MongoDB Integration", () => { }) it("throws an error when an invalid query.extra.actionType is passed for each method", async () => { - const restore = disableConsole() - const query = { extra: { collection: "testCollection", actionType: "deleteOne" }, } @@ -109,7 +98,6 @@ describe("MongoDB Integration", () => { error = err } expect(error).toBeDefined() - restore() }) it("creates ObjectIds if the field contains a match on ObjectId", async () => { diff --git a/packages/server/src/migrations/tests/index.spec.ts b/packages/server/src/migrations/tests/index.spec.ts index 236776cd3f..fa680f132d 100644 --- a/packages/server/src/migrations/tests/index.spec.ts +++ b/packages/server/src/migrations/tests/index.spec.ts @@ -81,9 +81,6 @@ describe("migrations", () => { expect(events.screen.created).toBeCalledTimes(2) expect(events.backfill.appSucceeded).toBeCalledTimes(2) - const processor = events.processors.analyticsProcessor.processEvent - console.log(processor) - // to make sure caching is working as expected expect( events.processors.analyticsProcessor.processEvent diff --git a/packages/worker/src/api/routes/global/tests/realEmail.spec.ts b/packages/worker/src/api/routes/global/tests/realEmail.spec.ts index 544c2651dc..ee53f844f9 100644 --- a/packages/worker/src/api/routes/global/tests/realEmail.spec.ts +++ b/packages/worker/src/api/routes/global/tests/realEmail.spec.ts @@ -43,7 +43,6 @@ describe("/api/global/email", () => { } expect(res.body.message).toBeDefined() const testUrl = nodemailer.getTestMessageUrl(res.body) - console.log(`${purpose} URL: ${testUrl}`) expect(testUrl).toBeDefined() response = await fetch(testUrl) text = await response.text()