How to globally register Injection Tokens within the Angular TestBed
A guide to globally registering Angular Injection Tokens in the TestBed to simplify test setups and avoid NullInjectorError.
Tim Deschryver is a software developer and cloud architect specializing in Azure, DevOps, and web application security.
216 articles from this blog
A guide to globally registering Angular Injection Tokens in the TestBed to simplify test setups and avoid NullInjectorError.
Explores ASP.NET 8's new IExceptionHandler to convert exceptions into standardized Problem Details responses for better API error reporting.
A developer shares lesser-known Entity Framework features like AutoInclude and HasQueryFilter to improve code efficiency and avoid common pitfalls.
Guide to configuring the angular-auth-oidc-client library using Angular's new functional APIs for providers, interceptors, and guards.
A guide to using Zod schema validation with Playwright for robust API testing, focusing on response shape over content.
Explores using .NET Minimal API endpoints as the application layer, advocating for the REPR pattern to simplify project structure and reduce unnecessary layers.
Explores the new UI mode in Playwright v1.32, a visual test runner that improves debugging and the overall testing workflow.
A guide on refactoring .NET HTTP clients to use Typed HTTP Clients, covering pitfalls of HttpClient and best practices for consuming REST APIs.
How to resolve circular dependency errors in Angular Standalone Components using the forwardRef function.
How to use Hangfire's DisableConcurrentExecution attribute to prevent a recurring .NET background job from running if the previous instance is still active.
A guide on securing Angular SPAs by shifting authentication to a Duende BFF backend, moving away from the Implicit flow to the more secure PKCE flow.
Explains Playwright's built-in test retries, auto-waiting locators, and explicit Retry API for custom conditions in test automation.
A guide to implementing a Backend for Frontend (BFF) architecture with .NET, Duende, and Auth0 to enhance SPA security by moving token handling server-side.
A tutorial on how to attach files like downloads and screenshots to Playwright test reports using the testInfo.attach method.
Entity Framework Core 8 introduces raw SQL queries that can return unmapped types, a highly anticipated feature for .NET developers.
Learn how to use Playwright's grep functionality and tags to organize and selectively run subsets of your test suite for efficiency.
A guide to using Playwright's new authentication API for testing with multiple user roles, featuring configuration updates and code examples.
Explains how Angular standalone components and the Angular Testing Library simplify and improve component testing by reducing setup complexity.
A guide to automatically assign team reviewers to Azure DevOps pull requests using a PowerShell script and the Azure DevOps API within a pipeline.
A guide on using Zod to simplify and type-safe the parsing of route and query parameters in Angular applications.