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

Function loadFromContext

packages/effect/test/ConfigProvider.test.ts:1076–1080  ·  view source on GitHub ↗
(path: ConfigProvider.Path)

Source from the content-addressed store, hash-verified

1074
1075 describe("layers", () => {
1076 const loadFromContext = (path: ConfigProvider.Path) =>
1077 Effect.gen(function*() {
1078 const provider = yield* ConfigProvider.ConfigProvider
1079 return yield* provider.load(path)
1080 })
1081
1082 it("layer installs a provider", async () => {
1083 const result = await Effect.runPromise(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected