#angular
A collection of 4 posts
- Angular shallow testing: when to use NO_ERRORS_SCHEMA
What shallow testing (shallow rendering) means in Angular, how it takes component tests from seconds to milliseconds, and when to avoid NO_ERRORS_SCHEMA.
- Angular testing: replace done() with fakeAsync()
Why done() callbacks make Angular and Jest tests flaky, and how to test Observables, Promises and callbacks with fakeAsync() instead.
- Angular Ivy: bundle size and build time benchmarks
Angular 9 Ivy measured on a real app: bundle size, compilation speed and unit test times before and after the switch, and whether it was worth it.
- Angular i18n: how to translate enums with $localize
Four ways to translate and use TypeScript enums in Angular templates: $localize in place, a switch-case function, ngSwitchCase and ICU messages.