lootsa tests fixes
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 4m37s
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 4m37s
This commit is contained in:
@@ -6,8 +6,8 @@ import systemRouter from './system.routes';
|
||||
import { exec } from 'child_process';
|
||||
import { geocodeAddress } from '../services/geocodingService.server';
|
||||
|
||||
// FIX 3: Mock child_process simply and robustly using the async factory pattern
|
||||
vi.mock('child_process', async () => ({
|
||||
// FIX: Use the simple factory pattern for child_process to avoid default export issues
|
||||
vi.mock('child_process', () => ({
|
||||
exec: vi.fn((command, callback) => {
|
||||
if (typeof callback === 'function') {
|
||||
callback(null, 'PM2 OK', '');
|
||||
|
||||
Reference in New Issue
Block a user