Move app to apps/web-react in pnpm workspace layout

This commit is contained in:
Kalle
2026-08-16 09:20:33 +03:00
parent 7e365ccfcf
commit bbc8ea57af
2913 changed files with 227 additions and 250 deletions

View File

@@ -0,0 +1,20 @@
import { REGULAR_USER_TEST_ID } from "~/db/seed/constants";
import * as TeamFactory from "~/db/seed/factories/TeamFactory";
import { ADMIN_ID } from "~/features/admin/admin-constants";
/** A team the regular user owns, so acting as "regular" exercises the owner paths. */
export const createTeamOwnedByRegular = (name: string, isMainTeam = true) =>
TeamFactory.create({
name,
isMainTeam,
memberUserIds: [REGULAR_USER_TEST_ID],
});
/** A team the regular user is a member but not the owner of. */
export const createTeamWithRegularMember = (
overrides: Partial<Parameters<typeof TeamFactory.create>[0]> = {},
) =>
TeamFactory.create({
memberUserIds: [ADMIN_ID, REGULAR_USER_TEST_ID],
...overrides,
});