Class YearData, Technology & EngineeringEntertainment, Media & ArtsFirst YearJuniorSeniorSophomore

Learning Unit Testing with Jasmine

Unit tests are the foundation of programming tests, the piece you should build before you create other kinds of tests or even your core code. This course gives you a guided tour with hands-on practice of Jasmine, the most widely used JavaScript unit testing tool. Instructor Dylan Israel shows you how to set up Jasmine, group your tests, and write your first test. Dylan walks through using beforeEach to configure your tests, being able to focus down or skip a test for a short period of time, and being able to listen to what happens with each third-party resource that you use. Dylan concludes with a discussion of mocks that mimic a core dependency and some less-common matchers.

Learn More