mirror of
https://github.com/Effect-TS/effect.git
synced 2026-12-04 03:35:36 +08:00
Fake-storage unit tests and Miniflare integration tests for the entity Durable Object's own SQL client: per-entity rows, atomic handler transactions, `reset` leaving user tables alone, rows surviving an isolate restart, and the Worker layer's `SqlClient` staying reachable in handlers. A Miniflare regression test interleaves two handlers through a user transaction that rolls back, and checks the other handler's stored reply survives. Type tests cover `CloudflareCluster.toLayer` erasing only `DurableObjectSqlClient`, requiring `CloudflareSharding`, and being satisfied by `CloudflareCluster.layer` and `AlchemyCloudflareCluster.make`.