Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 419 Bytes

File metadata and controls

8 lines (5 loc) · 419 Bytes

Apollo-Server GraphQL API example

This example demonstrates how you can create tests on an Apollo-Server application using Mocha.js. Apollo-Server is used to create a GraphQL API server and supertest is used for HTTP assertions inside the Mocha test runner.

Commands

  • No config file is needed for Mocha as the app uses default values
  • npm test - run the mocha test code