<?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: Kuldeep Nageshwar</title>
    <description>The latest articles on DEV Community by Kuldeep Nageshwar (@kuldeepnageshwar17).</description>
    <link>https://dev.to/kuldeepnageshwar17</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F582387%2F807ed828-1099-47d3-83e0-609540b65d37.jpeg</url>
      <title>DEV Community: Kuldeep Nageshwar</title>
      <link>https://dev.to/kuldeepnageshwar17</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kuldeepnageshwar17"/>
    <language>en</language>
    <item>
      <title>Learn react-testing-library for test react projects </title>
      <dc:creator>Kuldeep Nageshwar</dc:creator>
      <pubDate>Fri, 19 Feb 2021 15:35:50 +0000</pubDate>
      <link>https://dev.to/kuldeepnageshwar17/learn-react-testing-library-for-test-react-projects-2d50</link>
      <guid>https://dev.to/kuldeepnageshwar17/learn-react-testing-library-for-test-react-projects-2d50</guid>
      <description>&lt;p&gt;Here I am  not going to give you the basic and usual tutorial for&lt;br&gt;
Learn to test in reacting with use of jest and react-testing-library instead I going to list some resource and trick to get you to hand dirty and make ownself perfect to give 100 % coverage on Sonarqube.&lt;br&gt;
Sonarqube is a code analysis tool to Catch bugs and vulnerabilities in your app, with thousands of automated Static Code Analysis rules. &lt;br&gt;
Sonarqube gives you an analysis of your test case as code coverage.&lt;br&gt;
you can see your code coverage on the dashboard of your Sonarqube server.&lt;/p&gt;

&lt;p&gt;while writing a test case you have right your code inside a describe blog and inside describe block you must use it or test function to write your test case.&lt;/p&gt;

&lt;h1&gt;
  
  
  first Trick
&lt;/h1&gt;

&lt;p&gt;I always get confused or stuck while writing my test case that how to select and specific element.&lt;br&gt;
So for that, you can use this testing-playground &lt;a href="https://testing-playground.com/"&gt;testin-playgorund &lt;/a&gt; given by react-testing-library.&lt;/p&gt;

&lt;h1&gt;
  
  
  second trick
&lt;/h1&gt;

&lt;p&gt;while writing test cases you have to write an assertion but some you get stuck that how we can test code so you can use the docs &lt;br&gt;
given by jest in the official documentation &lt;a href="https://jestjs.io/docs/en/expect"&gt;expect&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>javascript</category>
      <category>testing</category>
      <category>jest</category>
    </item>
  </channel>
</rss>
