/Mocha-and-Chai-Tutorial

https://scotch.io/tutorials/test-a-node-restful-api-with-mocha-and-chai

Primary LanguageJavaScript

Testing with Mocha and Chai

Test a Node RESTful API with Mocha and Chai https://scotch.io/tutorials/test-a-node-restful-api-with-mocha-and-chai

To Get Started

Create a new folder called 'config' Create 3 new files in the newly created config folder

  • default.json
{
	"DBHost": "YOUR_DB_URI"
}
  • dev.json
{
	"DBHost": "YOUR_DEV_DB_URI"
}
  • test.json
{
	"DBHost": "YOUR_TEST_DB_URI"
}