GraphQL Unit Tests is a graphQL nodejs API with unit tests in your resolvers.
-
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
- 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
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.