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));