From d7fedc664d67ea80a9bae47492d8f657a0c54d5e Mon Sep 17 00:00:00 2001 From: Louis Zawadzki Date: Wed, 25 Oct 2023 15:34:12 +0200 Subject: [PATCH] Merge pull request #540 from stevoland/mock-provider-initialize Add DatadogProvider.initialize to Jest mock --- packages/core/jest/mock.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/jest/mock.js b/packages/core/jest/mock.js index fa384c155..082efd2f7 100644 --- a/packages/core/jest/mock.js +++ b/packages/core/jest/mock.js @@ -18,6 +18,7 @@ const actualDatadog = jest.requireActual('@datadog/mobile-react-native'); const DatadogProviderMock = ({ children }) => { return <>{children}; }; +DatadogProviderMock.initialize = jest.fn().mockResolvedValue() module.exports = { ...actualDatadog,