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 Oct 25, 2023
2 parents 6b7b5f9 + 1b7dc44 commit c48cfa4
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 c48cfa4

Please sign in to comment.