We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dff4f89 commit 3cfb7d5Copy full SHA for 3cfb7d5
test/jestLib/setup.js
@@ -1,4 +1,5 @@
1
import '@testing-library/jest-dom'
2
+import React from 'react'
3
4
import log from 'cozy-logger'
5
@@ -28,3 +29,11 @@ console.warn = function (msg, msg2) {
28
29
}
30
return originalWarn.apply(this, arguments)
31
32
+
33
+jest.mock('cozy-dataproxy-lib', () => ({
34
+ DataProxyProvider: ({ children }) => children,
35
+ SearchDialog: () => <div>SearchDialog</div>,
36
+ AssistantDialog: () => <div>AssistantDialog</div>,
37
+ AssistantDesktop: () => <div>AssistantDesktop</div>,
38
+ AssistantMobile: () => <div>AssistantMobile</div>
39
+}))
0 commit comments