From 990516a8e28a9df0fd023191992ec8a8b306ea4a Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 3 Apr 2024 17:13:49 -0300 Subject: [PATCH] Fix db mock --- jest.setup.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jest.setup.js b/jest.setup.js index 2ea537aa7..771398c8d 100644 --- a/jest.setup.js +++ b/jest.setup.js @@ -62,7 +62,11 @@ jest.mock('./app/lib/methods/search', () => ({ search: () => [] })); -jest.mock('./app/lib/database', () => jest.fn(() => null)); +jest.mock('./app/lib/database', () => ({ + active: { + get: jest.fn() + } +})); jest.mock('./app/containers/MessageComposer/components/EmojiKeyboard', () => jest.fn(() => null));