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

Function logLayer

packages/effect/test/unstable/eventlog/EventLog.test.ts:29–37  ·  view source on GitHub ↗
(handled: Ref.Ref<ReadonlyArray<string>>)

Source from the content-addressed store, hash-verified

27 )
28
29const logLayer = (handled: Ref.Ref<ReadonlyArray<string>>) =>
30 EventLog.layer(schema, handlerLayer(handled)).pipe(
31 Layer.provide(EventJournal.layerMemory),
32 Layer.provide(
33 Layer.effect(EventLog.Identity, EventLog.makeIdentity).pipe(
34 Layer.provide(EventLogEncryption.layerSubtle)
35 )
36 )
37 )
38
39describe("EventLog", () => {
40 it.effect("writes a typed event, commits the entry, and runs its handler", () =>

Callers 1

EventLog.test.tsFile · 0.85

Calls 3

handlerLayerFunction · 0.85
pipeMethod · 0.65
provideMethod · 0.45

Tested by

no test coverage detected