Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Pluralsight

Testing JavaScript with Jasmine 2 and TypeScript

via Pluralsight

Overview

This course serves as an introduction to writing fantastic unit tests in Jasmine, and how to use TypeScript to turbocharge your testing productivity.

TypeScript will transport us into the future of JavaScript, transforming our authoring experience, and allowing us to use current and proposed ECMAScript language enhancements. In this course, Testing JavaScript with Jasmine and TypeScript, you'll start with the motivations for unit testing, and why crafting good unit tests is so important. Next, you'll look at basic test definition including test setup, nested scoping, and assertions. You'll also learn about dynamic mocking and the ins and outs of testing with dependencies. Finally, you'll look at techniques for creating reliable tests, and some of the consequences when you don't. By the end of this course, you'll feel confident in leveraging TypeScript to maximize your productivity with Jasmine.

Syllabus

  • Course Overview 1min
  • Course Introduction and Project Setup 16mins
  • Your First Tests with Jasmine: Revert Those Asserts 40mins
  • Mocking with Jasmine 34mins
  • How to Write Tough Tests with Jasmine 44mins
  • False Hopes: Which Is Worse, a False Negative or a False Positive 25mins

Taught by

Tony Curtis

Reviews

3.1 rating at Pluralsight based on 93 ratings

Start your review of Testing JavaScript with Jasmine 2 and TypeScript

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.