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

Scrimba

Introduction to Unit Testing

via Scrimba

Overview

Code with confidence and lower your stress levels by learning how to test your code as you write it.
  • Introduction to Jasmine
  • The 3 parts of testing
  • The testing setup
  • Grouping with describe
  • Setting up data
  • Skipping
  • Focussing
  • Spies
  • Mocks
  • Debugging
  • Additional matchers
  • What next?

Syllabus

  • Introduction to Unit Testing
    • 1. Introduction
    • 2. Introduction to Jasmine
    • 3. Frontend Career Path
    • 4. Setting Up Jasmine from Scratch
    • 5. Understanding the 3 parts of testing
    • 6. Testing Setup Breakdown
    • 7. Grouping with describe
    • 8. Grouping with describe (Challenge)
    • 9. Our first test
    • 10. Our first test (Challenge)
    • 11. Setting Up Data with beforeEach()
    • 12. Setting Up Our Data with beforeEach (Challenge)
    • 13. Skipping and Focusing Introduction
    • 14. Skipping and Focusing (Challenge)
    • 15. Unit Testing: Spies 🕵️
    • 16. Spy Challenge 🕵️
    • 17. Mocks + Debug with me! 🪲
    • 18. Mocks Challenge
    • 19. Additional matchers: toBeDefined() & toEqual()
    • 20. Additional Matchers Challenge
    • 21. Final Challenge
    • 22. Outro

Reviews

Start your review of Introduction to Unit Testing

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.