Skip to content

Commit

Permalink
Add DatadogProvider.initialize to Jest mock
Browse files Browse the repository at this point in the history
  • Loading branch information
stevoland committed Oct 18, 2023
1 parent c5d92df commit caa95e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/jest/mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit caa95e4

Please sign in to comment.