mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 17:03:15 +00:00
@@ -44,6 +44,19 @@ vi.mock('../../src/config', () => ({
|
||||
DEFAULT_LANGUAGE: 'en',
|
||||
}));
|
||||
vi.mock('../../src/websocket', () => ({ broadcast: vi.fn(), broadcastToUser: vi.fn() }));
|
||||
// BOOT-007 boots with NODE_ENV=production, which opens the cron gate — keep the
|
||||
// registrar inert so a bootstrap test never schedules real jobs or runs boot
|
||||
// sweeps against the real uploads/data dirs. The gate itself is covered by
|
||||
// tests/integration/scheduler-gate.test.ts.
|
||||
vi.mock('../../src/nest/scheduling/cron-registrar.service', () => ({
|
||||
CronRegistrarService: class {
|
||||
isEnabled() { return false; }
|
||||
register() { return false; }
|
||||
unregister() {}
|
||||
get jobCount() { return 0; }
|
||||
onApplicationShutdown() {}
|
||||
},
|
||||
}));
|
||||
|
||||
import { createTables } from '../../src/db/schema';
|
||||
import { runMigrations } from '../../src/db/migrations';
|
||||
|
||||
Reference in New Issue
Block a user