Skip to content

Explored how to gauge quality, implement testing, and measure code coverage in your Node.js apps.

Notifications You must be signed in to change notification settings

rproenza86/nodejs_intermediate_testing_and_code_quality

Repository files navigation

nodejs_intermediate_testing_and_code_quality

Overview

A maintainable codebase should have clean and easy-to-manage code. In this training was explored how to gauge quality, implement testing, and measure code coverage in your Node.js apps.

To help you better understand these key concepts, walked through how to clean up a buggy restaurant booking app.

First, reviewed testing and code quality fundamentals.

Next, reviewed how to find errors by linting your code base, and explores different testing frameworks and their components.

Finally, demonstrated how to write unit and functional tests to exercise the code base, then determine what code was executed with a code coverage report.

Objectives

  • What is code quality?
  • Testing and code quality fundamentals
  • Coding conventions and standards
  • Creating and enforcing coding standards
  • Unit, integration, and functional testing
  • Test-driven development test specificatons
  • Behavior-driven development test specifications
  • Finding errors with linting
  • Extending an ESLint shareable config
  • Validating correctness with unit testing
  • Replacing and inspecting with stubs, spies, and mocks
  • Code coverage and why it matters
  • Coverage with continuous integration

About

Explored how to gauge quality, implement testing, and measure code coverage in your Node.js apps.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published