(key: string, acquired: Array<string>, released: Array<string>)
| 3 | import { TestClock } from "effect/testing" |
| 4 | |
| 5 | const makeLayer = (key: string, acquired: Array<string>, released: Array<string>): Layer.Layer<any> => |
| 6 | Layer.effectDiscard( |
| 7 | Effect.acquireRelease( |
| 8 | Effect.sync(() => { |
| 9 | acquired.push(key) |
| 10 | }), |
| 11 | () => |
| 12 | Effect.sync(() => { |
| 13 | released.push(key) |
| 14 | }) |
| 15 | ) |
| 16 | ) as Layer.Layer<any> |
| 17 | |
| 18 | describe("LayerMap", () => { |
| 19 | it.effect("make preloads the requested keys", () => |
no test coverage detected