<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shailendra Singh</title>
    <description>The latest articles on DEV Community by Shailendra Singh (@shailendraht).</description>
    <link>https://dev.to/shailendraht</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2898003%2Fd1dd6811-9e79-49bd-ae96-b6d0fb7ae3cc.jpg</url>
      <title>DEV Community: Shailendra Singh</title>
      <link>https://dev.to/shailendraht</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shailendraht"/>
    <language>en</language>
    <item>
      <title>Stop wrestling with mocks</title>
      <dc:creator>Shailendra Singh</dc:creator>
      <pubDate>Thu, 03 Apr 2025 12:04:54 +0000</pubDate>
      <link>https://dev.to/shailendraht/stop-wrestling-with-mocks-3pfo</link>
      <guid>https://dev.to/shailendraht/stop-wrestling-with-mocks-3pfo</guid>
      <description>&lt;p&gt;We devs find it really cumbersome to write mocks for our tests.&lt;/p&gt;

&lt;p&gt;Hence we built &lt;a href="//www.hypertest.co"&gt;HyperTest&lt;/a&gt; that can automatically mock external dependencies and update these mocks as they change. &lt;/p&gt;

&lt;p&gt;Devs have to never write a test or struggle with mocks ever. &lt;/p&gt;

&lt;p&gt;Here is how it works&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You initialise HyperTest SDK in your repo much like Sentry.&lt;/li&gt;
&lt;li&gt;It records traces from an environment you ask it to (using _env)&lt;/li&gt;
&lt;li&gt;We record the complete trace i.e. the request, response, outbound call and their responses&lt;/li&gt;
&lt;li&gt;You can run this trace on a new build. It mocks db/ORM queries, inter-service calls, async events or 3rd party APIs&lt;/li&gt;
&lt;li&gt;Mocks get updated as you merge code or we get newer traffic.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="//www.hypertest.co/demo"&gt;Walkthrough&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.youtube.com/watch?v=HLemYh8Zm-g" rel="noopener noreferrer"&gt;Demo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We are currently available for JS / node services. Would love to know feedback from devs here. Please give us a shout here if found this useful &lt;/p&gt;

</description>
      <category>ai</category>
      <category>testing</category>
      <category>mocks</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
