(
name: string,
self: () => Effect.Effect<A, E>,
timeout = 5_000
)
| 8 | |
| 9 | export const effect = (() => { |
| 10 | const f = <E, A>( |
| 11 | name: string, |
| 12 | self: () => Effect.Effect<A, E>, |
| 13 | timeout = 5_000 |
| 14 | ) => { |
| 15 | return it( |
| 16 | name, |
| 17 | () => |
| 18 | pipe( |
| 19 | Effect.suspend(self), |
| 20 | Effect.runPromise |
| 21 | ), |
| 22 | timeout |
| 23 | ) |
| 24 | } |
| 25 | return Object.assign(f, { |
| 26 | skip: <E, A>( |
| 27 | name: string, |
no test coverage detected