Full-Stack Web Development with Vue.js and Node

(singke) #1
Testing an MEVN Application Chapter 9

After adding the e2e script, we should be able to run the test with the following command:


$ npm run e2e

Now, all the tests should pass, and the output should look like this:


Summary


In this chapter, you learned how to write unit tests and we discussed the different


technologies you can use to write them, such as chai, mocha, and sinon. You also learned


to write tests for controllers, models, and Vue component.


In the next chapter, you will learn about continuous integration and how to deploy your
apps to Heroku using GitHub.

Free download pdf