MCPcopy
hub / github.com/anomalyco/opencode / effect

Function effect

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

Source from the content-addressed store, hash-verified

21
22const make = <R, E>(testLayer: Layer.Layer<R, E>, liveLayer: Layer.Layer<R, E>) => {
23 const effect = <A, E2>(name: string, value: Body<A, E2, R | Scope.Scope>, opts?: number | TestOptions) =>
24 test(name, () => run(value, testLayer), opts)
25
26 effect.only = <A, E2>(name: string, value: Body<A, E2, R | Scope.Scope>, opts?: number | TestOptions) =>
27 test.only(name, () => run(value, testLayer), opts)

Callers 1

plugin.tsFile · 0.50

Calls 2

testFunction · 0.85
runFunction · 0.70

Tested by

no test coverage detected