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

This commit is contained in:
2025-12-15 00:53:51 -08:00
parent 066933ff6d
commit 648f1c0239
10 changed files with 92 additions and 57 deletions

View File

@@ -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');