DEV Community

Nicolas Lima
Nicolas Lima

Posted on

2

Testing Apollo Server Graph API

I often see people on community complaining about testing Graph API's, So I decided to create this little template using apollo server and jest with Typescript! I hope you can use it as a base to make something just as good as you need! The idea is to separate the application from the server, this way you can use supertest npm module to make real requests and do not need to initiate a local server!

https://github.com/deLimaNicolas/graphql-typescript-test-boilerplate

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (1)

Collapse
 
ricardo_borges profile image
Ricardo Borges

that's exactly what I needed, thanks.

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay