()
| 320 | }; |
| 321 | |
| 322 | const main = async () => { |
| 323 | await Effect.runPromise( |
| 324 | Effect.scoped( |
| 325 | Effect.gen(function* () { |
| 326 | const oauth = yield* serveOAuthTestServer(); |
| 327 | const graph = yield* serveGraphqlTestServer({ |
| 328 | schema: makeGreetingGraphqlSchema(), |
| 329 | auth: { |
| 330 | validateAuthorization: oauth.acceptsAuthorizationHeader, |
| 331 | wwwAuthenticate: `Bearer resource_metadata="${oauth.protectedResourceMetadataUrl}/graphql"`, |
| 332 | }, |
| 333 | }); |
| 334 | yield* Effect.promise(() => runSmoke(oauth, graph)); |
| 335 | }), |
| 336 | ), |
| 337 | ); |
| 338 | }; |
| 339 | |
| 340 | await main(); |
no test coverage detected