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

Function runEffect

packages/cli/test/ConfigFile.test.ts:9–11  ·  view source on GitHub ↗
(
  self: Effect.Effect<A, E, FileSystem.FileSystem | Path.Path>
)

Source from the content-addressed store, hash-verified

7import * as Effect from "effect/Effect"
8
9const runEffect = <E, A>(
10 self: Effect.Effect<A, E, FileSystem.FileSystem | Path.Path>
11): Promise<A> => Effect.provide(self, NodeContext.layer).pipe(Effect.runPromise)
12
13describe("ConfigFile", () => {
14 it("loads json files", () =>

Callers

nothing calls this directly

Calls 2

pipeMethod · 0.65
provideMethod · 0.65

Tested by

no test coverage detected