<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tests on Kung Fu Codes</title><link>https://kungfu.codes/tags/tests/</link><description>Recent content in Tests on Kung Fu Codes</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 25 Aug 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://kungfu.codes/tags/tests/index.xml" rel="self" type="application/rss+xml"/><item><title>A gentle introduction to dependency injection</title><link>https://kungfu.codes/codes/gentle-introduction-to-dependency-injection/</link><pubDate>Wed, 25 Aug 2021 00:00:00 +0000</pubDate><guid>https://kungfu.codes/codes/gentle-introduction-to-dependency-injection/</guid><description>&lt;h2 id="objective"&gt;Objective&lt;/h2&gt;&#10;&lt;p&gt;To test applications, We need to ensure that their parts don&amp;rsquo;t depend on each other, and this principle is the key to it.&lt;/p&gt;&#10;&lt;p&gt;The objective here is to quickly explain dependency injection and how it can help test without diving too deep into its implementation in programming languages or frameworks.&lt;/p&gt;</description></item><item><title>Spying (on) Methods with Jest</title><link>https://kungfu.codes/codes/spying-on-methods-jest/</link><pubDate>Tue, 13 Jul 2021 00:00:00 +0000</pubDate><guid>https://kungfu.codes/codes/spying-on-methods-jest/</guid><description>&lt;h3 id="how-mocks-make-it-easy-to-ensure-your-application-logic"&gt;How mocks make it easy to ensure your application logic&lt;/h3&gt;&#10;&lt;p&gt;It&amp;rsquo;s easy to test your application when your domain layer is decoupled from other:&lt;/p&gt;&#10;&lt;p&gt;For example, let&amp;rsquo;s imagine the following scenario:&lt;/p&gt;</description></item></channel></rss>