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

YouTube

Maintainable Tests While Maintaining Sanity

ng-conf via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Discover effective strategies for maintaining sanity while writing maintainable tests in this 21-minute conference talk from EnterpriseNG 2021. Learn why, how, and what to mock, understand the importance of avoiding NO_ERRORS_SCHEMA, and grasp the connection between NgModule and TestBed. Gain insights on configuring an Angular TestBed from scratch, laying the foundation for fast and lean spec files, and setting up TestBed for components with various dependencies using ng-mocks and other utilities. Acquire the knowledge to confidently approach unknown codebases, making TestBed configuration and unit testing an enjoyable process. Focus on the crucial aspects of testing specific behaviors rather than struggling with setup, ultimately improving your ability to create robust Angular applications.

Syllabus

Introduction
About me
Emergency
Mocking
Problems
General advice
Empty as mock
Antipattern
Resources

Taught by

ng-conf

Reviews

Start your review of Maintainable Tests While Maintaining Sanity

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.