50 lines
2.1 KiB
TypeScript
50 lines
2.1 KiB
TypeScript
// d:/gitea/flyer-crawler.projectium.com/flyer-crawler.projectium.com/src/services/__mocks__/apiClient.ts
|
|
/**
|
|
* Manual mock for the entire apiClient module.
|
|
* Vitest will automatically use this mock when `vi.mock('../../services/apiClient')` is called.
|
|
* This provides a single, consistent, and type-safe mock for all unit tests.
|
|
*/
|
|
import { vi } from 'vitest';
|
|
|
|
export const addShoppingListItem = vi.fn();
|
|
export const addWatchedItem = vi.fn();
|
|
export const approveCorrection = vi.fn();
|
|
export const checkDbPoolHealth = vi.fn();
|
|
export const checkDbSchema = vi.fn();
|
|
export const checkPm2Status = vi.fn();
|
|
export const checkStorage = vi.fn();
|
|
export const countFlyerItemsForFlyers = vi.fn();
|
|
export const createShoppingList = vi.fn();
|
|
export const deleteShoppingList = vi.fn();
|
|
export const deleteUserAccount = vi.fn();
|
|
export const exportUserData = vi.fn();
|
|
export const fetchActivityLog = vi.fn();
|
|
export const fetchAllBrands = vi.fn();
|
|
export const fetchCategories = vi.fn();
|
|
export const fetchFlyerItems = vi.fn();
|
|
export const fetchFlyerItemsForFlyers = vi.fn();
|
|
export const fetchFlyers = vi.fn();
|
|
export const fetchHistoricalPriceData = vi.fn();
|
|
export const getHistoricalPriceData = vi.fn();
|
|
export const fetchMasterItems = vi.fn();
|
|
export const fetchShoppingLists = vi.fn();
|
|
export const fetchWatchedItems = vi.fn();
|
|
export const getApplicationStats = vi.fn();
|
|
export const getAuthenticatedUserProfile = vi.fn();
|
|
export const getSuggestedCorrections = vi.fn();
|
|
export const loginUser = vi.fn();
|
|
export const pingBackend = vi.fn();
|
|
export const processFlyerFile = vi.fn();
|
|
export const registerUser = vi.fn();
|
|
export const rejectCorrection = vi.fn();
|
|
export const removeShoppingListItem = vi.fn();
|
|
export const removeWatchedItem = vi.fn();
|
|
export const requestPasswordReset = vi.fn();
|
|
export const resetPassword = vi.fn();
|
|
export const updateShoppingListItem = vi.fn();
|
|
export const updateSuggestedCorrection = vi.fn();
|
|
export const updateUserPassword = vi.fn();
|
|
export const updateUserPreferences = vi.fn();
|
|
export const updateUserProfile = vi.fn();
|
|
export const uploadBrandLogo = vi.fn();
|
|
export const uploadLogoAndUpdateStore = vi.fn(); |