Improve the quality of your Angular component snapshots with Vitest
A guide to improving Angular component snapshot tests in Vitest by capturing DOM elements instead of the entire fixture for clearer, more useful snapshots.
Tim Deschryver is a software developer and cloud architect specializing in Azure, DevOps, and web application security.
210 articles from this blog
A guide to improving Angular component snapshot tests in Vitest by capturing DOM elements instead of the entire fixture for clearer, more useful snapshots.
Learn how to customize ASP.NET's default OpenAPI schema name generation to resolve naming conflicts between models in different namespaces.
Explains how to use FusionCache's Backplane feature to synchronize HybridCache instances across multiple application instances in .NET.
Explains the new named global query filters feature in Entity Framework Core 10, enabling multiple, selectively disableable filters.
Explains how to implement secure cookie-based authentication in an Angular frontend, comparing it to the Authorization Code flow with PKCE.
A guide to writing strongly typed integration tests for ASP.NET Web APIs using the Kiota client generator and OpenAPI specifications.
A tutorial on refactoring an Angular form to use the new experimental Signal Forms API, comparing it to Template-Driven and Reactive Forms.
Explains how to use Angular's new bindings API with Angular Testing Library to test component inputs and outputs.
Explains how to forward authenticated user requests from a .NET BFF to a downstream API using YARP and OAuth 2.0 token exchange.
A guide to implementing secure cookie-based authentication for a YARP Backend for Frontend (BFF) in a .NET Aspire application.
A guide to writing isolated integration tests using TestContainers to manage external dependencies like databases in Docker containers.
A developer shares how using VS Code with GitHub Copilot as a single workspace for full-stack projects improves workflow and productivity.
Learn how to integrate Playwright tests into a .NET Aspire dashboard to run them on-demand, avoiding the need for an IDE or command line.
Explains how to use data annotation validation for incoming models in ASP.NET 10 Minimal APIs, highlighting differences from Controllers.
Exploring how to use Playwright's AI features, including the Model Context Protocol (MCP), to automate and improve the process of writing end-to-end tests.
A guide on integrating YARP as a Backend for Frontend (BFF) within a .NET Aspire project to improve security and performance.
A guide to writing resilient Angular component tests when using the new HttpResource API, focusing on proper mocking techniques with HttpTestingController.
A developer shares insights and challenges encountered while creating their first Azure Function, comparing IDE experiences and model choices.
Learn how to customize GitHub Copilot's auto-generated commit messages using VS Code settings for consistent formatting.
A guide on using domain_hint and login_hint parameters to automatically select the correct Microsoft Entra tenant during authentication, improving user experience.