Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -42,15 +42,15 @@ function createSpawnStub({ exitCode = 0, stdout = "", stderr = "", error = null
|
||||
return { spawnImpl, calls };
|
||||
}
|
||||
|
||||
const SECRET_URL = "postgresql://ci_user:super-secret@db.example.test:5432/toolctrl";
|
||||
const SECRET_URL = "postgresql://ci_user:super-secret@db.example.test:5432/hivegrid";
|
||||
|
||||
describe("verify-db-migrate-status", () => {
|
||||
it("constructs the package-owned Prisma migrate status command", () => {
|
||||
const command = buildMigrateStatusCommand();
|
||||
|
||||
assert.equal(command.command, "pnpm");
|
||||
assert.deepEqual(command.args, ["--filter", "@toolctrl/db", "prisma:migrate:status"]);
|
||||
assert.equal(command.display, "pnpm --filter @toolctrl/db prisma:migrate:status");
|
||||
assert.deepEqual(command.args, ["--filter", "@hivegrid/db", "prisma:migrate:status"]);
|
||||
assert.equal(command.display, "pnpm --filter @hivegrid/db prisma:migrate:status");
|
||||
});
|
||||
|
||||
it("passes when Prisma migrate status exits successfully", async () => {
|
||||
@@ -68,13 +68,13 @@ describe("verify-db-migrate-status", () => {
|
||||
assert.equal(result.exitCode, 0);
|
||||
assert.equal(calls.length, 1);
|
||||
assert.equal(calls[0].command, "pnpm");
|
||||
assert.deepEqual(calls[0].args, ["--filter", "@toolctrl/db", "prisma:migrate:status"]);
|
||||
assert.deepEqual(calls[0].args, ["--filter", "@hivegrid/db", "prisma:migrate:status"]);
|
||||
assert.equal(calls[0].options.cwd, "/repo");
|
||||
assert.equal(calls[0].options.env.CI, "1");
|
||||
assert.equal(calls[0].options.env.DATABASE_URL, SECRET_URL);
|
||||
assert.match(output, /^PASS database migrate status verification/);
|
||||
assert.match(output, /phase: prisma:migrate:status/);
|
||||
assert.match(output, /command: pnpm --filter @toolctrl\/db prisma:migrate:status/);
|
||||
assert.match(output, /command: pnpm --filter @hivegrid\/db prisma:migrate:status/);
|
||||
assert.match(output, /exitCode: 0/);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user