(handler: ProbeHandler, use: (endpoint: string) => Effect.Effect<A, E>)
| 48 | }); |
| 49 | |
| 50 | const withServer = <A, E>(handler: ProbeHandler, use: (endpoint: string) => Effect.Effect<A, E>) => |
| 51 | Effect.scoped( |
| 52 | Effect.gen(function* () { |
| 53 | const server = yield* serveProbeEndpoint(handler); |
| 54 | return yield* use(server.endpoint); |
| 55 | }), |
| 56 | ); |
| 57 | |
| 58 | describe("probeMcpEndpointShape", () => { |
| 59 | it.effect("classifies 2xx as unauth-OK MCP", () => |
no test coverage detected