Setting Up to Test Node.js Apps
I recently jumped back into making sure I test my code and this video captures the setting up of everything I use to do exactly that. We step through using tools like mocha, chai and supertest to evaluate our Node.js API code and gain confidence it will behave as expected. mocha: https://mochajs.org/ chai: https://www.chaijs.com/ supertest: https://www.npmjs.com/package/supertest istanbul/nyc: https://istanbul.js.org/ VS Code Mocha Test Explorer: https://marketplace.visualstudio.com/items?itemName=hbenl.vscode-mocha-test-adapter&WT.mc_id=youtube-social-brcl Brian live streams programming weekly on Twitch. Join on Wednesdays at 10 AM ET and Fridays at 12:30 PM ET. Twitch: https://twitch.tv/clarkio Get connected online: Twitter: https://twitter.com/_clarkio Instagram: https://instagram.com/_clarkio Twitch: https://twitch.tv/clarkio Website: https://www.clarkio.com GitHub: https://github.com/clarkio
I recently jumped back into making sure I test my code and this video captures the setting up of everything I use to do exactly that. We step through using tools like mocha, chai and supertest to evaluate our Node.js API code and gain confidence it will behave as expected. mocha: https://mochajs.org/ chai: https://www.chaijs.com/ supertest: https://www.npmjs.com/package/supertest istanbul/nyc: https://istanbul.js.org/ VS Code Mocha Test Explorer: https://marketplace.visualstudio.com/items?itemName=hbenl.vscode-mocha-test-adapter&WT.mc_id=youtube-social-brcl Brian live streams programming weekly on Twitch. Join on Wednesdays at 10 AM ET and Fridays at 12:30 PM ET. Twitch: https://twitch.tv/clarkio Get connected online: Twitter: https://twitter.com/_clarkio Instagram: https://instagram.com/_clarkio Twitch: https://twitch.tv/clarkio Website: https://www.clarkio.com GitHub: https://github.com/clarkio