MCPcopy Create free account
hub / github.com/Effect-TS/effect / simplify

Function simplify

packages/effect/test/ExecutionPlan.test.ts:212–226  ·  view source on GitHub ↗
(event: ExecutionPlan.Event<unknown>)

Source from the content-addressed store, hash-verified

210 }
211
212 const simplify = (event: ExecutionPlan.Event<unknown>) =>
213 event._tag === "AttemptFailure"
214 ? {
215 _tag: event._tag,
216 attempt: event.attempt,
217 stepAttempt: event.stepAttempt,
218 stepIndex: event.stepIndex,
219 error: Cause.squash(event.cause)
220 }
221 : {
222 _tag: event._tag,
223 attempt: event.attempt,
224 stepAttempt: event.stepAttempt,
225 stepIndex: event.stepIndex
226 }
227
228 describe("Effect.withExecutionPlan", () => {
229 it.effect("emits start and success on first attempt", () =>

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected