Testing a REST API in Node JS with Express using Mocha and Chai

Published: 06 November 2019
on channel: Pragmatic Reviews
88,659
1.3k

In this video we are going to test our REST API in Node JS with Express using Mocha and Chai.
➥ Buy Me a Coffee: https://www.buymeacoffee.com/pragmatic

Mocha is a testing framework for JavaScript that runs on Node.js and the browser. You can use any assertion library, in this case we are going to use Chai to validate the http requests we make against our ExpressJS Restful API.

Assertion with Chai provides natural language assertions, expressive and readable style. Chai provides three assertion styles: Should, Expect and Assert.

Stay tuned for more!

➥ If I have helped you in any way please consider becoming a patron for just $1/month:   / pragmatic  

➥➥ Learn even more! ➥➥
NestJS Crash Course ➥ http://bit.ly/2QevL9X
TypeScript Crash Course ➥ http://bit.ly/37lJEsH
Nuxt.js Crash Course ➥ http://bit.ly/37kQiPG
Vuetify.js Crash Course ➥ http://bit.ly/2sArggU
Vue.js Crash Course ➥ http://bit.ly/37mCaFM
Automate.io Crash Course ➥ http://bit.ly/2SRGlph
Zapier Crash Course ➥ http://bit.ly/37q1BGt
SEO Crash Course ➥ http://bit.ly/2QbIhqy
Wordpress Crash Course ➥ http://bit.ly/2ZBZRr5


#Express #Mocha #Chai