Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

test: apply task model migration to web-access fixture (RX-206)

Amruth Pillai8a0b7bd943b5
diff --git a/packages/api/src/features/web-access/credentials.integration.test.ts b/packages/api/src/features/web-access/credentials.integration.test.ts
index 96149c27c..b6a54ac1d 100644
--- a/packages/api/src/features/web-access/credentials.integration.test.ts
+++ b/packages/api/src/features/web-access/credentials.integration.test.ts
@@ -73,6 +73,13 @@ describe.skipIf(!process.env.INTEGRATIONS_TEST_DATABASE_URL)("integration creden
)
await pool.query(statement);
}
+ const taskModels = await readFile(
+ new URL("../../../../../migrations/20261103031821_wooden_skullbuster/migration.sql", import.meta.url),
+ "utf8",
+ );
+ for (const statement of taskModels.split("--> statement-breakpoint")) {
+ if (statement.trim().startsWith('ALTER TABLE "ai_providers"')) await pool.query(statement);
+ }
web = (await import("./credentials")).webAccessService;
ai = (await import("../ai-providers/service")).aiProvidersService;
});