AI Implementation feature(820): Project Scaffold and Platform Foundations (#1)

This commit was merged in pull request #1.
This commit is contained in:
2026-07-21 14:23:53 +00:00
parent e55c9cda56
commit 03bcb6b156
131 changed files with 23657 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import { INestApplication } from '@nestjs/common';
import { DatabaseInitService } from '../../backend/src/database/database-init.service';
/**
* Await database initialization (migrations + seed verification) on the
* given Nest app. Without this, integration tests that hit controllers
* will hit a fresh `:memory:` SQLite database with no tables.
*/
export async function initDb(app: INestApplication): Promise<void> {
await app.get<DatabaseInitService>(DatabaseInitService).init();
}