Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 848 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 848 Bytes

GraphQL Unit Tests Project

GraphQL Unit Tests is a graphQL nodejs API with unit tests in your resolvers.

Installation

  • This application can be executed with docker.

  • Add this lines bellow in your etc/hosts file

127.0.0.1	api.local.com
127.0.0.1	mongodb.local.com
  • Copy the .env_example to .env in the root directory of application and configure your environments variables

Usage

  • Run the application containers with command bellow:
docker-compose up
  • After this steps, your application must be available in api.local.com

  • Run the unit and integration tests with command:

npm run test

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.