Piotr Lewandowski
AboutWriting

#angular

A collection of 4 posts

  • 2021
    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.

  • 2021
    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.

  • 2020
    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.

  • 2019
    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.

Copyright © 2017 - 2026 Piotr Lewandowski