MCPcopy Index your code
hub / github.com/anomalyco/opencode / effect

Function effect

packages/opencode/test/lib/effect.ts:68–69  ·  view source on GitHub ↗
(name: string, value: Body<A, E2, R | Scope.Scope>, opts?: number | TestOptions)

Source from the content-addressed store, hash-verified

66
67const make = <R, E>(testLayer: Layer.Layer<R, E>, liveLayer: Layer.Layer<R, E>, run: Runner = isolatedRun) => {
68 const effect = <A, E2>(name: string, value: Body<A, E2, R | Scope.Scope>, opts?: number | TestOptions) =>
69 test(name, () => run(value, testLayer), opts)
70
71 effect.only = <A, E2>(name: string, value: Body<A, E2, R | Scope.Scope>, opts?: number | TestOptions) =>
72 test.only(name, () => run(value, testLayer), opts)

Callers

nothing calls this directly

Calls 2

testFunction · 0.85
runFunction · 0.70

Tested by

no test coverage detected