Summary
In this chapter, you learned to test your MEAN application. You learned about testing in general and the common TDD/BDD testing paradigms. You then used the Mocha test framework and created controller and model unit tests, where you utilized different assertion libraries. Then, we discussed the methods of testing AngularJS, where you learned the difference between unit and E2E testing. We then proceeded to unit test your AngularJS application using the Jasmine test framework and the Karma test runner. Then, you learned how to create and run E2E tests using Protractor. After you've built and tested your real-time MEAN application, in the next chapter, you'll learn how to dramatically improve your development cycle time using some popular automation tools.