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

Function run

packages/effect/test/ui/WorkedExample.test.ts:23–32  ·  view source on GitHub ↗
(
  deps: Layer.Layer<any>,
  effect: Effect.Effect<A, E, any>,
  flush?: TestHost.Flush
)

Source from the content-addressed store, hash-verified

21}
22
23const run = <A, E>(
24 deps: Layer.Layer<any>,
25 effect: Effect.Effect<A, E, any>,
26 flush?: TestHost.Flush
27) =>
28 effect.pipe(
29 Effect.provide(deps),
30 Effect.scoped,
31 Effect.provide(TestHost.layer({ flush }))
32 ) as Effect.Effect<A, E>
33
34const mount = Effect.flatMap(
35 Router.currentRoute(users.AppRoute),

Callers 2

timelineOfFunction · 0.70

Calls 3

pipeMethod · 0.65
provideMethod · 0.45
layerMethod · 0.45

Tested by

no test coverage detected