diff --git a/jestHelpers/setup.js b/jestHelpers/setup.js index 8b64b9fcfa..f640a98908 100644 --- a/jestHelpers/setup.js +++ b/jestHelpers/setup.js @@ -15,5 +15,12 @@ jest.mock('cozy-intent', () => ({ useWebviewIntent: jest.fn() })) +jest.mock('cozy-dataproxy-lib', () => ({ + DataProxyProvider: ({ children }) => children, + SearchDialog: () =>
SearchDialog
, + AssistantDialog: () =>
AssistantDialog
, + AssistantDesktop: () =>
AssistantDesktop
+})) + // see https://github.com/jsdom/jsdom/issues/1695 window.HTMLElement.prototype.scroll = function () {}