Refactor: Update mocks in test files for improved structure and clarity
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 7m4s
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 7m4s
This commit is contained in:
@@ -14,7 +14,12 @@ vi.mock('../services/geocodingService.server', () => ({
|
||||
}));
|
||||
|
||||
// Mock other dependencies that are part of the adminRouter setup but not directly tested here
|
||||
vi.mock('../services/db/admin.db');
|
||||
vi.mock('../services/db/index.db', () => ({
|
||||
adminRepo: {},
|
||||
flyerRepo: {},
|
||||
recipeRepo: {},
|
||||
userRepo: {},
|
||||
}));
|
||||
vi.mock('../services/db/flyer.db');
|
||||
vi.mock('../services/db/recipe.db');
|
||||
vi.mock('../services/db/user.db');
|
||||
|
||||
Reference in New Issue
Block a user