Testing JavaScript with Jasmine and TypeScript

This course serves as an introduction to using TypeScript with Jasmine for writing units tests in JavaScript.
Course info
Rating
(79)
Level
Intermediate
Updated
Oct 7, 2016
Duration
2h 43m
Table of contents
Course Overview
Course Introduction and Project Setup
Your First Tests with Jasmine: Revert Those Asserts
Mocking with Jasmine
How to Write Tough Tests with Jasmine
False Hopes: Which Is Worse, a False Negative or a False Positive
Description
Course info
Rating
(79)
Level
Intermediate
Updated
Oct 7, 2016
Duration
2h 43m
Description

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.

About the author
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. He is passionate about unit testing, and software craftsmanship. Tony loves spending time with his family, writing sci-fi and he very much enjoys euro-games and other eclectic games with friends, family, and co-workers.

More from the author
Developing a Team and Its Culture
Beginner
1h 18m
Feb 22, 2018
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi. I'm Tony Curtis. I've spent several years developing software for myself and for companies small and large as a consultant and an employee. I'm passionate about unit testing, and I hope to share that passion with you as you view this course. Unit tests require a significant investment, and if you're not careful you'll end up with tests that aren't very useful. I'll discuss the fundamentals for creating tests that are so robust and effective you'll weep tears of joy. We'll be testing an Angular application using Jasmine, a fantastic framework for writing solid unit tests. 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 we'll start with the motivations for unit testing, and why crafting good unit tests is so important. We'll look at basic test definition, including test set up, nested scoping, and assertions. We'll discuss dynamic mocking, and the ins and outs of testing with dependencies. We'll look at techniques for creating reliable tests, and some of the consequences when you don't. You don't need to be familiar with Jasmine or TypeScript to dive into this course. Just a general knowledge of JavaScript will do. We'll be using VS code in the course to write our code, but you can use any IDE that's compatible with TypeScript to take advantage of superior tooling support. Along the way you'll meet my dog Zeus, catch some plastic mice, go to mars, and meet some evil twins. What could be better?