mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
Switch analytics from PostHog to Firebase
This commit is contained in:
1 parent
23e24aa4c2
commit
1911f8f058
8 files changed
+983
-277
No files matched your search
@@ -120,16 +120,15 @@ jest.mock('base64-arraybuffer', () => ({
|
||||
decode: jest.fn(() => new ArrayBuffer(0)),
|
||||
}));
|
||||
|
||||
jest.mock('posthog-react-native', () => {
|
||||
return class PostHog {
|
||||
capture = jest.fn();
|
||||
identify = jest.fn();
|
||||
reset = jest.fn();
|
||||
screen = jest.fn();
|
||||
flush = jest.fn();
|
||||
jest.mock('@react-native-firebase/app', () => ({
|
||||
getApp: jest.fn(() => ({})),
|
||||
}));
|
||||
|
||||
constructor() {
|
||||
// no-op
|
||||
}
|
||||
};
|
||||
});
|
||||
jest.mock('@react-native-firebase/analytics', () => ({
|
||||
getAnalytics: jest.fn(() => ({})),
|
||||
logEvent: jest.fn(),
|
||||
setUserId: jest.fn(),
|
||||
setUserProperty: jest.fn(),
|
||||
setAnalyticsCollectionEnabled: jest.fn(() => Promise.resolve()),
|
||||
resetAnalyticsData: jest.fn(),
|
||||
}));
|
||||
Reference in new issue
Block a user