(
body: Effect.Effect<A, E, Services>,
workos: Layer.Layer<WorkOSClient> = stubWorkOS({}),
)
| 211 | type Services = WorkOsMirror | UserStoreService | MemberDirectory | DbService | WorkOSClient; |
| 212 | |
| 213 | const run = <A, E>( |
| 214 | body: Effect.Effect<A, E, Services>, |
| 215 | workos: Layer.Layer<WorkOSClient> = stubWorkOS({}), |
| 216 | ) => |
| 217 | Effect.runPromise( |
| 218 | body.pipe(Effect.provide(Layer.mergeAll(MirrorServices, workos)), Effect.scoped), |
| 219 | ); |
| 220 | |
| 221 | const seedOrganization = (id: string) => |
| 222 | Effect.flatMap(UserStoreService.asEffect(), (users) => |
no test coverage detected