(id: string, overrides: Partial<WorkOsUserPayload> = {})
| 105 | const freshId = (prefix: string) => `${prefix}_${crypto.randomUUID().replaceAll("-", "")}`; |
| 106 | |
| 107 | const workosUser = (id: string, overrides: Partial<WorkOsUserPayload> = {}) => ({ |
| 108 | object: "user" as const, |
| 109 | id, |
| 110 | email: `${id}@placeholder.test`, |
| 111 | emailVerified: true, |
| 112 | firstName: "Ada", |
| 113 | lastName: "Placeholder", |
| 114 | profilePictureUrl: null, |
| 115 | lastSignInAt: T1, |
| 116 | locale: null, |
| 117 | createdAt: T1, |
| 118 | updatedAt: T1, |
| 119 | externalId: null, |
| 120 | metadata: {}, |
| 121 | ...overrides, |
| 122 | }); |
| 123 | |
| 124 | interface FakeMembership extends WorkOsMembershipPayload { |
| 125 | readonly organizationName: string; |
no outgoing calls
no test coverage detected