diff --git a/__tests__/jest_setup.js b/__tests__/jest_setup.js index 99ef35d1..42d45042 100644 --- a/__tests__/jest_setup.js +++ b/__tests__/jest_setup.js @@ -3,9 +3,9 @@ import * as ReactNative from "react-native"; jest.mock("mixpanel-react-native/javascript/mixpanel-storage", () => { return { AsyncStorageAdapter: jest.fn().mockImplementation(() => ({ - getItem: jest.fn(), - setItem: jest.fn(), - removeItem: jest.fn(), + getItem: jest.fn().mockResolvedValue(null), + setItem: jest.fn().mockResolvedValue(undefined), + removeItem: jest.fn().mockResolvedValue(undefined), })), }; });