Skip to content

Commit 55c97ad

Browse files
Mock database replica set in tests
1 parent 2f146a9 commit 55c97ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/test/services/model.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const modelMocks = vi.hoisted(() => {
8585
vi.mock('../../src/models/Model.js', () => ({ default: modelMocks }))
8686

8787
vi.mock('../../src/utils/database.ts', async () => ({
88-
isReplicaSet: vi.fn(() => false),
88+
isReplicaSet: vi.fn(() => true),
8989
}))
9090

9191
const authenticationMocks = vi.hoisted(() => ({

0 commit comments

Comments
 (0)