()
| 93 | // Every test mints its own org so the shared test database never couples |
| 94 | // them; ids are synthetic placeholders, never real identities. |
| 95 | const freshOrg = () => |
| 96 | Effect.gen(function* () { |
| 97 | const id = `org_${crypto.randomUUID().replaceAll("-", "")}`; |
| 98 | const store = yield* UserStoreService; |
| 99 | yield* store.use("upsertOrganization", (s) => |
| 100 | s.upsertOrganization({ id, name: "Mirror Org", updatedAt: T1 }), |
| 101 | ); |
| 102 | return id; |
| 103 | }); |
| 104 | |
| 105 | const user = (id: string, overrides: Partial<WorkOsMirrorUser> = {}): WorkOsMirrorUser => ({ |
| 106 | id, |
no outgoing calls
no test coverage detected