Testing
Last updated
Was this helpful?
Last updated
Was this helpful?
Gravity comes with a full suite of integration tests included to ensure your application functions as it should before releasing it.
Please set the SUPPORT_EMAIL variable in your before running tests as this email is used for testing.
The testing suite uses and , boilerplate tests are in the /test
folder.
A test calls the API endpoint and passes a data object. The response is then tested to ensure the correct status is returned and the returned data matches a specific format.
To add your tests, create a new test script and import it to the run.js
file; use the example above as a template.