From 1b7dc446f5d7b15c45ca8e76dd364672669666a7 Mon Sep 17 00:00:00 2001 From: Stephen Collings Date: Wed, 18 Oct 2023 14:41:57 +0100 Subject: [PATCH] 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,