diff options
author | Elmer Thomas <elmer@thinkingserious.com> | 2016-08-19 07:26:57 -0700 |
---|---|---|
committer | Elmer Thomas <elmer@thinkingserious.com> | 2016-08-19 07:26:57 -0700 |
commit | ffefadb1e21c95dbcd7cac5e07f91cd19a918bf1 (patch) | |
tree | b4426f791ae7575283a8103ca7896152579fde93 | |
parent | 439e1732a743098fe38b5b8d02b93ca03208b0d7 (diff) | |
download | sendgrid-nodejs-ffefadb1e21c95dbcd7cac5e07f91cd19a918bf1.zip sendgrid-nodejs-ffefadb1e21c95dbcd7cac5e07f91cd19a918bf1.tar.gz sendgrid-nodejs-ffefadb1e21c95dbcd7cac5e07f91cd19a918bf1.tar.bz2 |
Update testing instructions
-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 ``` |