/JavaScript-Testing-Best-Practices

JavaScript Testing Best Practices, published by [Packt]

Primary LanguageJavaScriptMIT LicenseMIT

JavaScript Testing Best Practices

This is the code repository for JavaScript Testing Best Practices [Video], published by Packt. It contains all the supporting project files necessary to work through the video course from start to finish.

About the Video Course

JavaScript brings vast amounts of freedom to both frontend and backend developers. However, that freedom comes at a cost: the need to continually screen your applications for bugs and possible optimizations. The presence of multiple testing frameworks such as Jasmine and Mocha confuses newcomers and experienced JavaScript devs when it comes to deciding which one is the best tool for the job. In this course, you will delve into different aspects and specifics of JavaScript testing. You will enhance your skills by mastering many topics that have been a source of confusion in the past—such as integration testing, E2E testing, and Behavioral Driven Development. You will learn how to break down your code into systems that you can challenge individually in an isolated environment, thus catching bugs early before they reach production. With the testing skills you've acquired, you will examine the most available testing frameworks and tools (including Jasmine, Mocha, Chai, and Jest) to find the one that suits you best. Having the right tool for the job will help you work with Test-Driven and Behavioral-Driven Development on all application layers.

What You Will Learn

  • Master different testing types such as unit testing, behavioral testing, smoke testing, and more
  • Work with the most widespread JavaScript testing tools such as Jasmine, Mocha, and Jest
  • Master all Test-Driven Development best practices
  • Write tests in a comprehensible manner and set up the foundations for BDD
  • Organize and split your code in a way that allows efficient testing
  • Mock dependencies so you can focus on what really matters
  • Write a framework-agnostic, end-to-end testing suite for your frontend applications
  • Learn and apply industry best practices while also learning when it's necessary to break the rules of testing

Instructions and Navigation

Assumed Knowledge

This task-based learning guide will help users and developers adapt to new core standards and best practices in testing applications. This course is framework-agnostic and covers most JavaScript frameworks along with different testing layers—such as testing frameworks, BDD, and frontend E2E testing.

Technical Requirements

Setup and Installation

Minimum Hardware Requirements

For successful completion of this course, students will require the computer systems with at least the following:

· OS: Windows, Linux, MacOS · Processor: Dual Core Processor 1.2Ghz or greater · Memory: 4GB · Storage: Enough to install a browser, NodeJS, Visual Studio Code and a few dependencies

Recommended Hardware Requirements For an optimal experience with hands-on labs and other practical activities, we recommend the following configuration: · OS: Windows, Linux, MacOS · Processor: QuadCore Processor 1.6Ghz or greater · Memory: 8GB Ram · Storage: Enough to install a browser, NodeJS, Visual Studio Code and a few dependencies

Software Requirements · OS: Windows 10, Linux, MacOS · Browser: Google Chrome Provide links/instructions so that the customer can easily find out where to download the required software.

NodeJS: https://nodejs.org/en/ Visual Studio Code: https://code.visualstudio.com/ Google Chrome: https://www.google.com/chrome/

An Azure account or the ability to create one.

Related Products