From the course: Angular: Ecosystems

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Testing and debugging

Testing and debugging - Angular Tutorial

From the course: Angular: Ecosystems

Testing and debugging

- The Angular framework was built from the ground up to make testing and debugging very easy. The three types of testing you'll do most often are code linting, unit testing, and end-to-end testing. Code linting is the process of checking files for readability, consistency, and syntax. Linters never run your code. They just read over every line of file and check them against a known set of rules about how the code should look. If the code looks the way it's supposed to, the file passes. If the code looks odd, then the file fails, and you'll get a warning about the errors. While you can always lint your code manually, using Angular's official command line tool, code editors like Visual Studio Code and WebStorm have plugins that let you automatically lint code as you write it. This makes it very easy to catch errors before they become an issue. Unit testing is the process of checking small chunks of code to make sure they…

Contents