summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElmer Thomas <elmer@thinkingserious.com>2016-08-19 07:26:57 -0700
committerElmer Thomas <elmer@thinkingserious.com>2016-08-19 07:26:57 -0700
commitffefadb1e21c95dbcd7cac5e07f91cd19a918bf1 (patch)
treeb4426f791ae7575283a8103ca7896152579fde93
parent439e1732a743098fe38b5b8d02b93ca03208b0d7 (diff)
downloadsendgrid-nodejs-ffefadb1e21c95dbcd7cac5e07f91cd19a918bf1.zip
sendgrid-nodejs-ffefadb1e21c95dbcd7cac5e07f91cd19a918bf1.tar.gz
sendgrid-nodejs-ffefadb1e21c95dbcd7cac5e07f91cd19a918bf1.tar.bz2
Update testing instructions
-rw-r--r--CONTRIBUTING.md10
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
```