SimoninSimonTestDon’t test the code in your Angular componentsTest the user experience instead.4 min read·Nov 5, 2020----
SimonTypeScript Handbook SummaryThis is an abridged (and slightly opinionated) version of TypeScrip’s official handbook .8 min read·May 4, 2020----
SimoninSimonTestTesting the Tour of Heroes — Messages ComponentTLDR; Don’t trust code coverage metrics.2 min read·Apr 14, 2020----
SimoninSimonTestTesting 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…3 min read·Apr 8, 2020----
SimoninThe 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…3 min read·Mar 31, 2020----
SimoninSimonTestTesting 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.4 min read·Mar 21, 2020----
SimoninSimonTestTesting 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…3 min read·Mar 1, 2020----
SimoninSimonTestMake 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:3 min read·Jan 5, 2020--3--3
SimoninSimonTestTesting 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…4 min read·Oct 25, 2019----