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.