Skip to content
Myr

platform.ts

This file

Path

apps/web/test/platform.ts

13 lines · 506 bytes · TypeScript

Last changed by

Merge build/comments-web-rest into mainoscabrielbefore adoption0eb1248

History of this file

Take it

Merge build/landing-ceiling into mainoscabrielbefore adoption1b5d02e

lines 1–13why, one step back
1import { Client, Contracts } from "@repo/protocol/contracts";
2import { asTester, unanswered } from "@repo/protocol/testing";3import { Layer } from "effect";4import { RpcTest } from "effect/rpc";56export const platformWith = (7 ...handlers: readonly Layer.Layer<never>[]8): Layer.Layer<Client> =>9 Layer.effect(Client, RpcTest.makeClient(Contracts)).pipe(10 Layer.provide([Layer.mergeAll(unanswered, ...handlers), asTester])11 );1213export const unreachablePlatform: Layer.Layer<Client> = platformWith();