ci: trigga på master + formatfix inför Gitea Actions
CI / Typecheck, test & build (push) Failing after 2s

This commit is contained in:
Sven (AAMOS AI)
2026-08-13 17:25:14 +07:00
parent 61d60931ad
commit c32a7e33c7
141 changed files with 40555 additions and 45210 deletions
+18 -7
View File
@@ -1,6 +1,12 @@
import { describe, expect, it, beforeAll, afterAll } from "vitest";
import { eq, inArray } from "drizzle-orm";
import { createDatabase, closeDatabase, markMilestone, getActivationState, schema } from "@app/database";
import {
createDatabase,
closeDatabase,
markMilestone,
getActivationState,
schema,
} from "@app/database";
describe("activation", () => {
const { db } = createDatabase();
@@ -8,12 +14,17 @@ describe("activation", () => {
const inviteCodes = ["ACT123", "ACT223"];
async function cleanup() {
await db.delete(schema.householdMembers).where(
inArray(
schema.householdMembers.householdId,
db.select({ id: schema.households.id }).from(schema.households).where(inArray(schema.households.inviteCode, inviteCodes)),
),
);
await db
.delete(schema.householdMembers)
.where(
inArray(
schema.householdMembers.householdId,
db
.select({ id: schema.households.id })
.from(schema.households)
.where(inArray(schema.households.inviteCode, inviteCodes)),
),
);
await db.delete(schema.households).where(inArray(schema.households.inviteCode, inviteCodes));
await db.delete(schema.users).where(inArray(schema.users.email, emails));
}