Skip to content

Commit

Permalink
Merge pull request #12831 from Expensify/andrew-fix-tests
Browse files Browse the repository at this point in the history
[No QA]Fix tests by adding `@react-native-firebase/crashlytics` jest mock
  • Loading branch information
mountiny authored Nov 17, 2022
2 parents 7de9ab2 + 1c39755 commit 011d3e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions __mocks__/@react-native-firebase/crashlytics.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// <App> uses <ErrorBoundary> and we need to mock the imported crashlytics module
// due to an error that happens otherwise https://github.com/invertase/react-native-firebase/issues/2475
export default {
export default () => ({
log: jest.fn(),
recordError: jest.fn(),
};
setCrashlyticsCollectionEnabled: jest.fn(),
});

0 comments on commit 011d3e3

Please sign in to comment.