diff --git a/test/jestLib/setup.js b/test/jestLib/setup.js index abf8ab3ccf..5c9977a08a 100644 --- a/test/jestLib/setup.js +++ b/test/jestLib/setup.js @@ -1,4 +1,5 @@ import '@testing-library/jest-dom' +import React from 'react' import log from 'cozy-logger' @@ -28,3 +29,11 @@ console.warn = function (msg, msg2) { } return originalWarn.apply(this, arguments) } + +jest.mock('cozy-dataproxy-lib', () => ({ + DataProxyProvider: ({ children }) => children, + SearchDialog: () =>