diff options
-rw-r--r-- | CONTRIBUTING.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ecab88c..610daca 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -130,6 +130,16 @@ For the purposes of contributing to this repo, please update the [`test.js`](htt To run the tests: +First, we need to setup a local mocked SendGrid API server. + +Install StopLight.io's [Prism](https://stoplight.io/prism/). + +```bash +./prism run --mock --list --spec https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/oai_stoplight.json +``` + +Now we can run the tests at the root of the `sendgrid-nodejs` repo: + ```bash mocha ``` |