adds code


Welcome to Talking about Computer Science! Here we are going to demonstrate how to work define unit tests using the JEST library for node.js. It is presented how to configure a project using this module and then two examples of use cases, one trivial and another more advanced including a database connection (MySQL) and asynchronous call. You can download the presented code here: https://github.com/rafaelqg/jtest_example Please feel free to ask and suggest another content to be presented. Do you want to support? Just subscribe this channel. 0:00 Unit tests 1:23 project setup 4:09 simple use case 6:54 advanced you case 10:25 test yourself https://jestjs.io/docs/getting-started
Previous Post Next Post