Chapter 4

Testing JavaScript

Learning Objectives

By the end of this chapter, you will be able to do the following:

  • Analyze the benefit of tests
  • Explain the various forms of code testing
  • Build code-testing environments
  • Implement tests for your JavaScript code

This chapter will cover the concepts of testing, test frameworks, and how to work with the different ways to effectively testing code.

Introduction

In the first chapter, we covered many of the new and powerful features released in ES6. We discussed the evolution of JavaScript and highlighted the key additions in ES6. We discussed scope rules, variable declaration, arrow functions, template literals, enhanced object properties, destructuring assignment, classes and modules, transpiling, ...

Get Advanced JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.