Making sure you're using the correct query
Explains the importance of using the *ByRole query in Testing Library for accessible, robust tests and how to find fallback queries.
Tim Deschryver is a software developer and cloud architect specializing in Azure, DevOps, and web application security.
216 articles from this blog
Explains the importance of using the *ByRole query in Testing Library for accessible, robust tests and how to find fallback queries.
A guide to implementing periodic data polling in an Angular application using NgRx Effects and RxJS timer.
A developer's first impressions and experience trying out Deno 1.0, covering setup, built-in tools, and initial pros and cons.
Explains the risks of committing focused tests and provides multiple technical solutions to prevent it, including VS Code extensions, linter rules, and pre-commit hooks.
A developer shares how to use the URLSearchParams API to easily read, set, and delete URL query parameters in JavaScript.
Explores using the global NgRx Store as a local component store by dynamically creating and managing state slices tied to component lifecycle.
A developer argues for starting with larger, monolithic components in Angular to avoid premature abstraction and complexity, then refactoring for performance or reusability.
Explains the difference between Angular's canActivate and canActivateChild route guards, including implementation and use cases.
A guide on converting deprecated TSLint rules to ESLint using the @typescript-eslint toolkit for TypeScript projects.
Explains a common RxJS Observable initialization pitfall with WebSocket streams and provides solutions using higher-order observables.
A guide to writing integration tests for C# Web APIs using Microsoft.AspNetCore.Mvc.Testing, xUnit, and FluentAssertions.
A guide to generating automated tests for a React app using XState and Cypress, focusing on decoupling test logic from the state machine.
Explains why LINQ Join is faster than nested loops or Select for merging data in C#, focusing on performance with large datasets.
A guide to integrating the axe accessibility testing library with Cypress to automate accessibility checks in web applications.
Explains flagged enums in TypeScript for efficiently storing and transmitting collections of boolean values using bitwise operations.
Explores integrating RxJS with Svelte's reactivity system for a more powerful reactive architecture, with code examples.
A developer shares techniques to optimize Angular app performance by reducing unnecessary change detection cycles in a complex scheduling application.
Learn how to use JavaScript object destructuring to remove a property immutably, creating a new object without the unwanted key.
A guide to setting up and writing component tests for Svelte applications using Jest and the Svelte Testing Library.
A guide to implementing print-specific CSS in Angular applications, covering component-scoped styles, hiding elements, and creating separate print components.