Automated Testing

As we come to the end of this book, we'll wrap up by discussing the details of working within an all JavaScript testing environment. While Angular-CLI features a robust built-in testing toolkit right out of the box, in this chapter we will explore how to use the Mocha test runner and Chai assertion library to run automated testing across the backend of our web application. We'll also explore how to hook additional testing tools, such as the ESLint JavaScript linter, into our testing framework.

The following are the recipes covered in the chapter:

  • Creating unit tests for Node.js using the Mocha testing library
  • Creating integration tests for Express REST APIs
  • Integrating an ESLint test suite into your Mocha tests
  • Cross-browser and device testing with BrowserSync
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.138.202