title: Why aren't jest tests passed while using react fragments?
body: <p>I'm having an issue while testing my <strong>react</strong> app with <strong>jest</strong>.</p>
  
  <p>The problem is that when i use react fragments in a component which i want to test , Jest throws an error .
  for example :</p>
  
  <pre><code>&lt;&gt;
    My Component
  &lt;/&gt;
  </code></pre>
  
  <p>But when i use &lt;<strong>div</strong>> instead of <strong>&lt;></strong> the tests get passed! But it will ruin the component's shape.</p>
  
  <p>Are there any other solutions?</p>