Published inSimonTestDon’t test the code in your Angular componentsTest the user experience instead.Nov 5, 2020Nov 5, 2020
TypeScript Handbook SummaryThis is an abridged (and slightly opinionated) version of TypeScrip’s official handbook .May 4, 2020May 4, 2020
Published inSimonTestTesting the Tour of Heroes — Messages ComponentTLDR; Don’t trust code coverage metrics.Apr 14, 2020Apr 14, 2020
Published inSimonTestTesting the Tour of Heroes — Heroes ComponentTLDR: Use RxJS utility functions like of to mock the observable dependencies. Start with the use cases for the component. Make your tests…Apr 8, 2020Apr 8, 2020
Published inThe StartupShould you create extra components for testing in Angular?TLDR: Use test components sporadically so you can sleep better at night. Using it as the default test strategy makes your test files…Mar 31, 2020Mar 31, 2020
Published inSimonTestTesting the Tour of Heroes — Hero Search ComponentWrite tests against use cases, not implementations. Always make your tests fail to make sure they’re actually testing something.Mar 21, 2020Mar 21, 2020
Published inSimonTestTesting the Tour of Heros — HeroDetailComponentAs with almost every test you’ll ever write, the best way is to start with the list of things the component can do. In our case there are…Mar 1, 2020Mar 1, 2020
Published inSimonTestMake your Angular tests flyTLDR; We got a test suite of 3K+ tests to run from over 5 mins down to 15 secs with the following optimizations:Jan 5, 20203Jan 5, 20203
Published inSimonTestTesting the Tour of Heroes 03 (DashboardComponent)The dashboard component provides a good opportunity to reinforce the point that you should test what the component does, not how it does…Oct 25, 2019Oct 25, 2019