<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>HttpClient Mocking on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/httpclient-mocking/</link><description>Recent content in HttpClient Mocking on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 20 Aug 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/httpclient-mocking/index.xml" rel="self" type="application/rss+xml"/><item><title>Project Chapter 15.6: Testing Core Components and Services (with Vitest)</title><link>https://ai-blog.noorshomelab.dev/angular-v21-mastery/chapter-15-6-testing-core-components-and-services/</link><pubDate>Wed, 20 Aug 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/angular-v21-mastery/chapter-15-6-testing-core-components-and-services/</guid><description>&lt;h2 id="project-chapter-156-testing-core-components-and-services-with-vitest"&gt;Project Chapter 15.6: Testing Core Components and Services (with Vitest)&lt;/h2&gt;
&lt;p&gt;We&amp;rsquo;ve built a functional user management application, leveraging many Angular v21 features. Now, it&amp;rsquo;s critical to ensure its reliability and maintainability through testing. In this chapter, we&amp;rsquo;ll write unit tests for our &lt;code&gt;UserService&lt;/code&gt; and &lt;code&gt;UserListComponent&lt;/code&gt; using &lt;strong&gt;Vitest&lt;/strong&gt;, which is the new default testing framework in Angular v21.&lt;/p&gt;
&lt;p&gt;This will put our knowledge of Vitest, &lt;code&gt;TestBed&lt;/code&gt;, mocking, and &lt;code&gt;fixture.whenStable()&lt;/code&gt; into practical use.&lt;/p&gt;</description></item></channel></rss>