MCPcopy
hub / github.com/Effect-TS/effect / deepErrorFail

Function deepErrorFail

packages/effect/test/Effect/error-handling.test.ts:32–37  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

30}
31
32const deepErrorFail = (n: number): Effect.Effect<never, Error> => {
33 if (n === 0) {
34 return Effect.fail(ExampleError)
35 }
36 return pipe(Effect.void, Effect.zipRight(deepErrorFail(n - 1)))
37}
38
39describe("Effect", () => {
40 it.effect("attempt - error in sync effect", () =>

Callers 1

Calls 2

failMethod · 0.65
pipeFunction · 0.50

Tested by

no test coverage detected