6. Code Quality
Learning Objectives
By the end of this chapter, you will be able to:
- Identify the best practices for writing clean JavaScript code
- Perform linting and add a lint command to your node project
- Use unit, integration, and end-to-end testing methods on your code
- Automate linting and tests using Git hooks
In this chapter, we will focus on improving code quality, setting up tests, and automating tests to run before a Git commit. These techniques can be used to ensure that mistakes or errors are found early on and never make it to production.