( entities: Layer.Layer<never, never, Sharding.Sharding>, use: Effect.Effect<void, never, Sharding.Sharding> = TestClock.adjust(3500) )
| 66 | |
| 67 | // one runner process over message storage that outlives it |
| 68 | const deploy = ( |
| 69 | entities: Layer.Layer<never, never, Sharding.Sharding>, |
| 70 | use: Effect.Effect<void, never, Sharding.Sharding> = TestClock.adjust(3500) |
| 71 | ) => |
| 72 | Effect.flatMap(MessageStorage.MemoryDriver, (driver) => |
| 73 | Effect.provide( |
| 74 | use, |
| 75 | entities.pipe( |
| 76 | Layer.provideMerge(Sharding.layer), |
| 77 | Layer.provide(Runners.layerNoop), |
| 78 | Layer.provide(Layer.succeed(MessageStorage.MessageStorage, driver.storage)), |
| 79 | Layer.provide(RunnerStorage.layerMemory), |
| 80 | Layer.provide(RunnerHealth.layerNoop), |
| 81 | Layer.provide(TestShardingConfig) |
| 82 | ) |
| 83 | )) |
| 84 | |
| 85 | // stands in for the rest of the application in a deploy without the cron |
| 86 | const Other = Entity.make("Other", [Rpc.make("Ping")]) |
no test coverage detected