Maintainable Tests While Maintaining Sanity
Offered By: ng-conf via YouTube
Course Description
Overview
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
Related Courses
Single Page Web Applications with AngularJSJohns Hopkins University via Coursera Front-End JavaScript Frameworks: AngularJS
The Hong Kong University of Science and Technology via Coursera Front End Frameworks
Google via Udacity Developing Dynamic Web Applications Using Angular
Microsoft via edX AngularJS: Advanced Framework Techniques
Microsoft via edX