Full-Stack Web Development with Vue.js and Node

(singke) #1
Testing an MEVN Application Chapter 9

Let's now run the test with the following command:


$ mocha test/unit/controllers/movies.spec.js

The preceding command should give us the following output:


Writing tests for Node.js server


Let's start writing the tests for the application we built for the backend part of the node


server.


We will be using the following folder structure:

Free download pdf