(why: string)
| 194 | // The store's operations are plain promises: an unexpected one defects |
| 195 | // through `Effect.promise`, the same way `unread` does for the services. |
| 196 | const unreadStore = (why: string) => () => Effect.runPromise(Effect.die(why)); |
| 197 | const stubUsers = Layer.succeed(UserStoreService)({ |
| 198 | use: (_op, fn) => |
| 199 | Effect.promise(() => |