<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: The Complete Guide to NgRx Testing (2020)	</title>
	<atom:link href="https://christianlydemann.com/the-complete-guide-to-ngrx-testing/feed/" rel="self" type="application/rss+xml" />
	<link>https://christianlydemann.com/the-complete-guide-to-ngrx-testing/</link>
	<description>Advanced Angular Training Made Simple</description>
	<lastBuildDate>Sun, 02 Jan 2022 06:50:00 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.4</generator>
	<item>
		<title>
		By: Aakash Goplani		</title>
		<link>https://christianlydemann.com/the-complete-guide-to-ngrx-testing/#comment-132279</link>

		<dc:creator><![CDATA[Aakash Goplani]]></dc:creator>
		<pubDate>Sun, 02 Jan 2022 06:50:00 +0000</pubDate>
		<guid isPermaLink="false">https://christianlydemann.com/?p=1220#comment-132279</guid>

					<description><![CDATA[How do we test selectors with props?

&lt;code&gt;
const someSelector = (props: string) =&#062; createSelector(
  someRootSelector,
  (state) =&#062; {
    // some computation with state using props
  }
);

store.select(someSelector(&#039;hello&#039;)).subscribe(...);
&lt;/code&gt;

Here just using `overriderSelector` is not sufficient as it is resulting in undefined. Any recommendations on how to test this scenario?]]></description>
			<content:encoded><![CDATA[<p>How do we test selectors with props?</p>
<p><code><br />
const someSelector = (props: string) =&gt; createSelector(<br />
  someRootSelector,<br />
  (state) =&gt; {<br />
    // some computation with state using props<br />
  }<br />
);</p>
<p>store.select(someSelector('hello')).subscribe(...);<br />
</code></p>
<p>Here just using `overriderSelector` is not sufficient as it is resulting in undefined. Any recommendations on how to test this scenario?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Christian Lydemann		</title>
		<link>https://christianlydemann.com/the-complete-guide-to-ngrx-testing/#comment-382</link>

		<dc:creator><![CDATA[Christian Lydemann]]></dc:creator>
		<pubDate>Tue, 26 Mar 2019 19:59:00 +0000</pubDate>
		<guid isPermaLink="false">https://christianlydemann.com/?p=1220#comment-382</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://christianlydemann.com/the-complete-guide-to-ngrx-testing/#comment-380&quot;&gt;Rahul Wasnik&lt;/a&gt;.

Good to hear!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://christianlydemann.com/the-complete-guide-to-ngrx-testing/#comment-380">Rahul Wasnik</a>.</p>
<p>Good to hear!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rahul Wasnik		</title>
		<link>https://christianlydemann.com/the-complete-guide-to-ngrx-testing/#comment-380</link>

		<dc:creator><![CDATA[Rahul Wasnik]]></dc:creator>
		<pubDate>Sat, 23 Mar 2019 05:54:00 +0000</pubDate>
		<guid isPermaLink="false">https://christianlydemann.com/?p=1220#comment-380</guid>

					<description><![CDATA[Thank you Christian. After having searched the web for over a day, I came across your post on how to test angular ngrx effects and I could finally understand how to use the jasmine marbles library to test ngrx effects.]]></description>
			<content:encoded><![CDATA[<p>Thank you Christian. After having searched the web for over a day, I came across your post on how to test angular ngrx effects and I could finally understand how to use the jasmine marbles library to test ngrx effects.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Poul Hansen		</title>
		<link>https://christianlydemann.com/the-complete-guide-to-ngrx-testing/#comment-375</link>

		<dc:creator><![CDATA[Poul Hansen]]></dc:creator>
		<pubDate>Sat, 23 Feb 2019 15:28:00 +0000</pubDate>
		<guid isPermaLink="false">https://christianlydemann.com/?p=1220#comment-375</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://christianlydemann.com/the-complete-guide-to-ngrx-testing/#comment-374&quot;&gt;Christian Lydemann&lt;/a&gt;.

Awesome with the update! 

I agree with the facades, and have used something similar in projects too. But seeing as you´d need/want to test those anyways, the mockStore becomes pretty valuable in things like integration tests.

I´d love to talk more testing if you´re free one day]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://christianlydemann.com/the-complete-guide-to-ngrx-testing/#comment-374">Christian Lydemann</a>.</p>
<p>Awesome with the update! </p>
<p>I agree with the facades, and have used something similar in projects too. But seeing as you´d need/want to test those anyways, the mockStore becomes pretty valuable in things like integration tests.</p>
<p>I´d love to talk more testing if you´re free one day</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Christian Lydemann		</title>
		<link>https://christianlydemann.com/the-complete-guide-to-ngrx-testing/#comment-374</link>

		<dc:creator><![CDATA[Christian Lydemann]]></dc:creator>
		<pubDate>Sat, 23 Feb 2019 15:04:00 +0000</pubDate>
		<guid isPermaLink="false">https://christianlydemann.com/?p=1220#comment-374</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://christianlydemann.com/the-complete-guide-to-ngrx-testing/#comment-372&quot;&gt;Poul Hansen&lt;/a&gt;.

Hi Poul,

Thank you for that. You are right about the selector functions itself should be tested in isolation. I have now updated the post with a selector test that uses projector to test in isolation.
It is nice with the mockStore compared to stubbing the whole store for every test. The benefits with using these facades is that you don&#039;t need to deal with the mockStore at all, which I find eliminates the most boilerplate.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://christianlydemann.com/the-complete-guide-to-ngrx-testing/#comment-372">Poul Hansen</a>.</p>
<p>Hi Poul,</p>
<p>Thank you for that. You are right about the selector functions itself should be tested in isolation. I have now updated the post with a selector test that uses projector to test in isolation.<br />
It is nice with the mockStore compared to stubbing the whole store for every test. The benefits with using these facades is that you don&#8217;t need to deal with the mockStore at all, which I find eliminates the most boilerplate.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Poul Hansen		</title>
		<link>https://christianlydemann.com/the-complete-guide-to-ngrx-testing/#comment-372</link>

		<dc:creator><![CDATA[Poul Hansen]]></dc:creator>
		<pubDate>Thu, 21 Feb 2019 19:13:00 +0000</pubDate>
		<guid isPermaLink="false">https://christianlydemann.com/?p=1220#comment-372</guid>

					<description><![CDATA[Ohoy Christian

I got a question regarding the selectors.

You mention reducers as pure functions, but so are selectors?
in ngrx you can easily test selectors with the &lt;code&gt;.projector() function&lt;/code&gt;.

In your example, you´re testing your class TodoListSelector, which is a facade / layer on top of the ngrx selectors. But you´re not really testing the selector itself.

Also, if you hadn´t seen, ngrx introduced the mockStore with version 7, so testing components / classes interacting with the store becomes a lot easier!

Nonetheless, nice reading about more Angular testing!]]></description>
			<content:encoded><![CDATA[<p>Ohoy Christian</p>
<p>I got a question regarding the selectors.</p>
<p>You mention reducers as pure functions, but so are selectors?<br />
in ngrx you can easily test selectors with the <code>.projector() function</code>.</p>
<p>In your example, you´re testing your class TodoListSelector, which is a facade / layer on top of the ngrx selectors. But you´re not really testing the selector itself.</p>
<p>Also, if you hadn´t seen, ngrx introduced the mockStore with version 7, so testing components / classes interacting with the store becomes a lot easier!</p>
<p>Nonetheless, nice reading about more Angular testing!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 0/1325 objects using Memcache
Page Caching using Disk: Enhanced 
Minified using Disk
Database Caching 1/704 queries in 0.267 seconds using Disk

Served from: christianlydemann.com @ 2026-02-22 17:09:13 by W3 Total Cache
-->