You'll now be extending the to-do application you started building in the previous chapter and start providing it with the ability to test itself.
In the root of the application, you have a file named package.json
that you already changed to introduce some modules that your application depends on. Now you need to add a new section that specifies the dependencies on other modules during the development and testing phase. This section is named devDependencies
and is only installed by NPM if the NODE_ENV
environment variable is not set to production
. This is a good place to introduce the dependencies on modules that need to be there for running your tests.
First you need to add the mocha
and zombie
modules:
{ "description": "To-do App", "version": "0.0.0", "private": true, "dependencies": { "union": "0.3.0", "flatiron": "0.2.8", "plates": "0.4.x", "node-static": "0.6.0", "nano": "3.3.0", "flatware-cookie-parser": "0.1.x", ...