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

Method given

packages/effect/src/ui/testing/Steps.ts:414–414  ·  view source on GitHub ↗

* Starts from any Model. An updater is called with the current Model: * `given(f)` is exactly `given(f(model))`. * * **Details** * * Before any other acting step, `given` replaces what `init` produced: * its Commands, events and sends are dropped. After one, it throws while * a

(
    model:
      | Component.Model<C>
      | ((model: Component.Model<C>) => Component.Model<C>),
    queries?: Given<C>,
    shared?: {
      readonly [K in keyof O]: readonly [
        provider: O[K],
        value: Component.Shared.Value<O[K]>
      ]
    }
  )

Source from the content-addressed store, hash-verified

412 * value]]`. Values given before and not listed are kept.
413 */
414 given<const O extends ReadonlyArray<Component.Shared.Provider> = []>(
415 model:
416 | Component.Model<C>
417 | ((model: Component.Model<C>) => Component.Model<C>),

Callers 15

Story.tst.tsFile · 0.80
Shared.tst.tsFile · 0.80
Queries.tst.tsFile · 0.80
Story.test.tsFile · 0.80
Scene.test.tsFile · 0.80
Shared.test.tsFile · 0.80
Send.test.tsFile · 0.80
10_story.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected