Recommendations for writing integration tests?

Recommendations for writing integration tests for Apollo Server? The docs Integration testing - Apollo Server - 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 Automatic Testing for GraphQL APIs – The New Stack 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.

1 Like