Refactor: Add personalizationRepo and notificationRepo mocks in route tests
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 7m1s
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 7m1s
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user