const assert = require("node:assert/strict"); const fs = require("node:fs"); const path = require("node:path"); const source = fs.readFileSync(path.resolve(__dirname, "../src/dbSetup.js"), "utf8"); assert.match(source, /runMigration\("024_generation_tasks_project_queue_index"/); assert.match(source, /CREATE UNIQUE INDEX IF NOT EXISTS idx_generation_tasks_project_queue_unique/); assert.match(source, /ON generation_tasks\(project_id, client_queue_id\)\s+WHERE project_id IS NOT NULL/); console.log("db setup contract tests passed");