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

Function layerFor

packages/infra/test/cluster-cosmos.test.ts:16–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14const liveSnowflake = Layer.effect(Snowflake.Generator, TestClock.withLive(Snowflake.makeGenerator))
15
16const layerFor = () =>
17 layerCosmos({
18 url: Redacted.make(cosmosUrl ?? ""),
19 dbName: cosmosDb,
20 prefix: "test-cluster-"
21 })
22 .pipe(
23 Layer.provideMerge(liveSnowflake),
24 Layer.provide(ShardingConfig.layerDefaults)
25 )
26
27describe.skipIf(!cosmosUrl)("ClusterCosmos MessageStorage", () => {
28 it.effect("deduplicates keyed requests and returns the last reply", () =>

Callers 1

Calls 4

pipeMethod · 0.65
makeMethod · 0.65
layerCosmosFunction · 0.50
provideMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…