()
| 34 | }); |
| 35 | |
| 36 | async function createApolloServer() { |
| 37 | const builder = await getPostGraphileBuilder(pool, [dbSchema], { |
| 38 | replaceAllPlugins: plugins, |
| 39 | subscriptions: true, |
| 40 | dynamicJson: true, |
| 41 | }); |
| 42 | |
| 43 | const schema = builder.buildSchema(); |
| 44 | |
| 45 | return new ApolloServer({ |
| 46 | schema, |
| 47 | context: { |
| 48 | pgClient: pool, |
| 49 | }, |
| 50 | }); |
| 51 | } |
| 52 | |
| 53 | afterAll(async () => { |
| 54 | await pool.end(); |
no test coverage detected