Simple play icon Course
Skills Expanded

Testing JavaScript with Jasmine 2 and TypeScript

by Tony Curtis

This course serves as an introduction to using TypeScript with Jasmine for writing units tests in JavaScript.

What you'll learn

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.

Table of contents

Course Overview
1min

Course FAQ

What are Jasmine and TypeScript?

Jasmine is a great testing framework with an intuitive syntax. TypeScript is a typed superset of JavaScript.

What are Jasmine and TypeScript used for?

Jasmine helps you to optimize your time, organize your code, isolate your units, and communicate results. TypeScript gives you immediate feedback on your code, like a trusty pair programmer.

Who is this course for?

This course is for anyone wanting to get into the future of JavaScript with TypeScript, which allows you to use current and proposed ECMAScript language enhancements.

What will I learn in this course?

In this course you'll learn how to write fantastic unit tests in Jasmine, and how to use TypeScript to turbocharge your testing productivity.

What prerequisites do I need?

You don't need to be familiar with Jasmine or TypeScript to dive into this course. Just a general knowledge of JavaScript will do.

What software is required?

We'll be using Visual Studio Code, an open source, multi-platform code editor that's particularly adept at optimizing TypeScript; however, many popular IDEs and editors can utilize TypeScript definitions in the edit window.

About the author

Tony Curtis is a Technical Program Manager at Health Catalyst in Salt Lake City, Utah. He has been developing software professionally since 1995. Tony has developed primarily in object-oriented languages and spent the majority of his career in the medical industry. For the past few years he has been working with the .NET Framework, but more recently has transitioned to JavaScript and specifically AngularJS web development. He is passionate about unit testing, and software craftsmanship. Tony lov... more

Ready to upskill? Get started