To install Mocha and Zombie, you need to include them as development dependencies in your application manifest and then use NPM to install them.
Once these modules are installed, you can create test files for each logical component of your application inside a directory named test
. Each of these files should contain a series of tests, each of them properly contextualized inside nested describe
statements.
You should also alter the application manifest to specify the testing script so that the tests are runnable using NPM.
In the following chapters, we'll be evolving this test and introduce some more, in order to cover more use cases of our application.