Recommendations for writing integration tests?

Recommendations for writing integration tests for Apollo Server? The docs Integration testing - Apollo GraphQL Docs say Apollo Server has a built-in executeOperation method which feels more like unit testing to me, but maybe I’m wrong. Here’s a post https://thenewstack.io/automatic-testing-for-graphql-apis/ about using Jest and supertest which is more like what I’ve done with REST APIs. My use case is a GraphQL API on top of Postgres and 40+ Prisma models, with multiple user roles each having different permissions for what they can query and mutate.

2 Likes