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