( engine: ExecutionEngine<E>, fn: (client: Client, spans: RecordedSpan[]) => Promise<void>, config?: TestServerConfig<E>, )
| 143 | |
| 144 | /** withClient, but with a recording tracer installed for the whole server. */ |
| 145 | const withTracedClient = async <E extends Cause.YieldableError>( |
| 146 | engine: ExecutionEngine<E>, |
| 147 | fn: (client: Client, spans: RecordedSpan[]) => Promise<void>, |
| 148 | config?: TestServerConfig<E>, |
| 149 | ) => { |
| 150 | const { tracer, spans } = makeRecordingTracer(); |
| 151 | await withClient(engine, NO_CAPS, (client) => fn(client, spans), { ...config, tracer }); |
| 152 | }; |
| 153 | |
| 154 | const ELICITATION_CAPS: ClientCapabilities = { |
| 155 | elicitation: { form: {}, url: {} }, |
no test coverage detected