Clean up agent-auth migration test data

Co-Authored-By: madison@stack-auth.com <madison.w.kennedy@gmail.com>
This commit is contained in:
Devin AI 2026-07-08 09:28:53 +00:00
parent c249153061
commit 6cadb1d848

View File

@ -162,4 +162,13 @@ export const postMigration = async (sql: Sql, ctx: Awaited<ReturnType<typeof pre
expect(Number(countsAfterDelete[0].host_count)).toBe(0);
expect(Number(countsAfterDelete[0].agent_count)).toBe(0);
expect(Number(countsAfterDelete[0].grant_count)).toBe(0);
await sql`
DELETE FROM "Tenancy"
WHERE "id" = ${ctx.tenancyId}::uuid
`;
await sql`
DELETE FROM "Project"
WHERE "id" = ${ctx.projectId}
`;
};