MCPcopy Create free account
hub / github.com/effect-app/libs / SomethingRepo

Class SomethingRepo

packages/infra/test/query.test.ts:112–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110
111// @effect-diagnostics-next-line missingEffectServiceDependency:off
112class SomethingRepo extends Context.Service<SomethingRepo>()("SomethingRepo", {
113 make: Effect.gen(function*() {
114 return yield* makeRepo("Something", Something, {})
115 })
116}) {
117 static readonly Test = Layer
118 .effect(
119 SomethingRepo,
120 Effect.gen(function*() {
121 return SomethingRepo.of(yield* makeRepo("Something", Something, { makeInitial: Effect.sync(() => items) }))
122 })
123 )
124 .pipe(
125 Layer.provide(TestStoreLive)
126 )
127}
128
129it("works with repo", () =>
130 Effect

Callers

nothing calls this directly

Calls 5

makeRepoFunction · 0.90
syncMethod · 0.80
pipeMethod · 0.65
ofMethod · 0.65
provideMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…