MCPcopy Index your code
hub / github.com/Effect-TS/effect / assertConfig

Function assertConfig

packages/effect/test/Config.test.ts:37–45  ·  view source on GitHub ↗
(
  config: Config.Config<A>,
  map: ReadonlyArray<readonly [string, string]>,
  a: A
)

Source from the content-addressed store, hash-verified

35}
36
37const assertConfig = <A>(
38 config: Config.Config<A>,
39 map: ReadonlyArray<readonly [string, string]>,
40 a: A
41) => {
42 const configProvider = ConfigProvider.fromMap(new Map(map))
43 const result = Effect.runSyncExit(configProvider.load(config))
44 assertSuccess(result, a)
45}
46
47describe("Config", () => {
48 describe("boolean", () => {

Callers 1

Config.test.tsFile · 0.85

Calls 2

assertSuccessFunction · 0.90
loadMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…