Subscribe to masimplo.com

Stay up to date! Get all the latest & greatest posts delivered straight to your inbox

Testing

Automated checks, confidence, and quality gates.

Test RxJS interval and debounceTime without waiting real seconds cover image
Testing,  Code

Test RxJS interval and debounceTime without waiting real seconds

Angular fakeAsync and tick beat setTimeout waits and jasmine.clock for time-based RxJS5 observables in unit tests.

Mock Ionic ModalController to test onDidDismiss cover image
Ionic,  Testing,  Code

Mock Ionic ModalController to test onDidDismiss

A reusable PresentableControllerMock so unit tests can dismiss modals, alerts, and toasts and assert the page callback.

Guardrails beat guidelines — how to keep AI-generated code honest cover image
AI,  Code,  Testing,  Opinions

Guardrails beat guidelines — how to keep AI-generated code honest

You cannot prompt AI-generated code into being reliable. What works is what always worked with new hires — guardrails that say no.

CI was red for six weeks — and the site never noticed cover image
Testing,  Tools,  Code

CI was red for six weeks — and the site never noticed

My blog's CI has failed on every single push since June 20th. The site kept deploying fine the whole time, which is exactly the problem.