<?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: Amritesh</title>
    <description>The latest articles on DEV Community by Amritesh (@ammrit2312).</description>
    <link>https://dev.to/ammrit2312</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%2F529792%2Faee5d144-4cdf-472e-8300-229c94d7575e.jpeg</url>
      <title>DEV Community: Amritesh</title>
      <link>https://dev.to/ammrit2312</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ammrit2312"/>
    <language>en</language>
    <item>
      <title>Facing issue with jest working with Node18 for react</title>
      <dc:creator>Amritesh</dc:creator>
      <pubDate>Thu, 13 Apr 2023 13:17:08 +0000</pubDate>
      <link>https://dev.to/ammrit2312/facing-issue-with-jest-working-with-node18-for-react-133l</link>
      <guid>https://dev.to/ammrit2312/facing-issue-with-jest-working-with-node18-for-react-133l</guid>
      <description>&lt;p&gt;I am upgrading my code from node14 to node18 written for a react app. &lt;br&gt;
I tried mocking an api call and tried to mount it with Provider but the error comes that api call is undefined this results in error from my file. &lt;br&gt;
I get error like&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;getData)(argument).then(res =&amp;gt; {
                ^
TypeError: Cannot read properties of undefined (reading 'then')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Also after upgrading, jest is not able to find other test files.&lt;/p&gt;

</description>
      <category>react</category>
    </item>
  </channel>
</rss>
