(opts?: TestOpts)
| 68 | } |
| 69 | |
| 70 | const 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 | |
| 80 | const incrementLayer = (opts?: TestOpts) => { |
| 81 | const { Sqlite, Engine } = makeBase(opts) |
no test coverage detected
searching dependent graphs…