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

Function makeBase

packages/infra/test/workflow-engine-sqlite.test.ts:70–78  ·  view source on GitHub ↗
(opts?: TestOpts)

Source from the content-addressed store, hash-verified

68}
69
70const makeBase = (opts?: TestOpts) => {
71 const Sqlite = SqliteClient.layer({ filename: ":memory:" })
72 const Engine = layerSqlite({
73 recoveryInterval: opts?.recoveryInterval ?? Duration.millis(100),
74 clockPollInterval: opts?.clockPollInterval ?? Duration.millis(100)
75 })
76 .pipe(Layer.provide(Sqlite))
77 return { Sqlite, Engine }
78}
79
80const incrementLayer = (opts?: TestOpts) => {
81 const { Sqlite, Engine } = makeBase(opts)

Callers 3

incrementLayerFunction · 0.85
tickLayerFunction · 0.85
awaitEmailLayerFunction · 0.85

Calls 3

layerSqliteFunction · 0.85
pipeMethod · 0.65
provideMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…