Refactor: Add personalizationRepo and notificationRepo mocks in route tests
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 7m1s

This commit is contained in:
2025-12-15 02:18:54 -08:00
parent e00f33fd60
commit f4e593be6e
7 changed files with 26 additions and 3 deletions

View File

@@ -20,12 +20,17 @@ vi.mock('../services/db/index.db', () => ({
recipeRepo: {},
userRepo: {},
personalizationRepo: {},
notificationRepo: {},
}));
vi.mock('../services/db/flyer.db');
vi.mock('../services/db/recipe.db');
vi.mock('../services/db/user.db');
vi.mock('node:fs/promises');
vi.mock('../services/backgroundJobService');
vi.mock('../services/backgroundJobService', () => ({
backgroundJobService: {
runDailyDealCheck: vi.fn(),
},
}));
vi.mock('../services/queueService.server');
vi.mock('@bull-board/api');
vi.mock('@bull-board/api/bullMQAdapter');