moar unit test !
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 6m33s
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 6m33s
This commit is contained in:
@@ -22,7 +22,12 @@ vi.mock('../services/geocodingService.server');
|
||||
vi.mock('../services/queueService.server');
|
||||
vi.mock('@bull-board/api');
|
||||
vi.mock('@bull-board/api/bullMQAdapter');
|
||||
vi.mock('@bull-board/express');
|
||||
vi.mock('@bull-board/express', () => ({
|
||||
ExpressAdapter: vi.fn().mockImplementation(() => ({
|
||||
setBasePath: vi.fn(),
|
||||
getRouter: () => (req: Request, res: Response, next: NextFunction) => next(),
|
||||
})),
|
||||
}));
|
||||
|
||||
// Import the mocked modules to control them
|
||||
import * as adminDb from '../services/db/admin.db';
|
||||
|
||||
@@ -24,8 +24,13 @@ vi.mock('../services/geocodingService.server');
|
||||
vi.mock('../services/queueService.server');
|
||||
vi.mock('@bull-board/api');
|
||||
vi.mock('@bull-board/api/bullMQAdapter');
|
||||
vi.mock('@bull-board/express');
|
||||
vi.mock('node:fs/promises');
|
||||
vi.mock('@bull-board/express', () => ({
|
||||
ExpressAdapter: vi.fn().mockImplementation(() => ({
|
||||
setBasePath: vi.fn(),
|
||||
getRouter: () => (req: Request, res: Response, next: NextFunction) => next(),
|
||||
})),
|
||||
}));
|
||||
|
||||
// Import the mocked modules to control them in tests.
|
||||
import * as adminDb from '../services/db/admin.db';
|
||||
|
||||
Reference in New Issue
Block a user