lootsa tests fixes
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 4m37s

This commit is contained in:
2025-12-05 19:23:00 -08:00
parent 57ea82a8ad
commit 7829dd52d5
5 changed files with 15 additions and 132 deletions

View File

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