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