Here is my Axios definition:
import axios from "axios";import { API_ENDPOINT } from "@env";// axios settingexport const axiosInstance = axios.create({ withCredentials: true, baseURL: API_ENDPOINT,});
I tried this but it doesn't work. Got this error: Property mockResolvedValueOnce does not exist on type
.
jest.mock("@/lib/axios", () => ({ axiosInstance: { get: jest.fn(), patch: jest.fn(), },}));axiosInstance.get.mockResolvedValueOnce( { data: { test: 1 } })