Release branch for 4.0.0.
This commit is contained in:
jubnl
2026-08-27 13:22:39 +02:00
committed by GitHub
parent e60427f813
commit 77dddd5e8a
3355 changed files with 403744 additions and 67215 deletions
@@ -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';