From b6657943697e68b16c6fe9deef2246db7d2f86d4 Mon Sep 17 00:00:00 2001 From: tsyirvo Date: Tue, 16 Apr 2024 16:35:12 +0200 Subject: [PATCH] feat: setup a notifications library --- __mocks__/expo-constants.ts | 1 + __mocks__/expo-linking.ts | 3 +++ __mocks__/react-native-onesignal.ts | 3 +++ 3 files changed, 7 insertions(+) create mode 100644 __mocks__/expo-linking.ts create mode 100644 __mocks__/react-native-onesignal.ts diff --git a/__mocks__/expo-constants.ts b/__mocks__/expo-constants.ts index b6f1cac1..50984692 100644 --- a/__mocks__/expo-constants.ts +++ b/__mocks__/expo-constants.ts @@ -18,6 +18,7 @@ module.exports = { sentryDsn: undefined, mixpanelToken: undefined, flagsmithKey: undefined, + oneSignalAppId: undefined, }, }, }, diff --git a/__mocks__/expo-linking.ts b/__mocks__/expo-linking.ts new file mode 100644 index 00000000..ea171347 --- /dev/null +++ b/__mocks__/expo-linking.ts @@ -0,0 +1,3 @@ +module.exports = { + openSettings: jest.fn(), +}; diff --git a/__mocks__/react-native-onesignal.ts b/__mocks__/react-native-onesignal.ts new file mode 100644 index 00000000..590de5e1 --- /dev/null +++ b/__mocks__/react-native-onesignal.ts @@ -0,0 +1,3 @@ +module.exports = { + initialize: jest.fn(), +};