Mocha

Writing my first Mocha Test

Writing my first Mocha Test

What is Mocha? Mocha is a testing library for Node.js. It is used to organize and execute unit and integration tests. How to install Mocha: You can install Mocha globally by running: $ npm install -g mocha Creating the First Project: To start exploring Mocha, create a folder for your project. We’ll call it ‘calculation’. In the calculation folder, we’ll… Read more →