From af86873c7d11d2cdd6d0a20310cc1a966920d6c3 Mon Sep 17 00:00:00 2001 From: GCHQDeveloper36 <73173408+GCHQDeveloper36@users.noreply.github.com> Date: Thu, 4 Jul 2024 17:06:26 +0000 Subject: [PATCH] Mock database replica set in tests --- backend/test/services/model.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/test/services/model.spec.ts b/backend/test/services/model.spec.ts index 06b7f046b..14ae9a8d9 100644 --- a/backend/test/services/model.spec.ts +++ b/backend/test/services/model.spec.ts @@ -58,7 +58,7 @@ const modelMocks = vi.hoisted(() => { vi.mock('../../src/models/Model.js', () => ({ default: modelMocks })) vi.mock('../../src/utils/database.ts', async () => ({ - isReplicaSet: vi.fn(() => false), + isReplicaSet: vi.fn(() => true), })) const authenticationMocks = vi.hoisted(() => ({