From af319ac9104d2706d41901dc0294249dabd7c43e Mon Sep 17 00:00:00 2001 From: makarkotlov Date: Tue, 30 Apr 2024 11:12:13 +0200 Subject: [PATCH] fix: fix adapter storage jest setup --- __tests__/jest_setup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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), })), }; });