ci: trigga på master + formatfix inför Gitea Actions
CI / Typecheck, test & build (push) Failing after 2s
CI / Typecheck, test & build (push) Failing after 2s
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user