Skip to content

Commit

Permalink
Merge pull request #540 from stevoland/mock-provider-initialize
Browse files Browse the repository at this point in the history
Add DatadogProvider.initialize to Jest mock
  • Loading branch information
louiszawadzki authored and louiszawadzki committed Oct 30, 2023
1 parent 3ae7e2c commit d7fedc6
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 d7fedc6

Please sign in to comment.