title: How to fix: TypeError: projects.map is not a function
body: <p>I have a problem with testing array. Please check screenshot
  <a href="https://ibb.co/0Dx26vf" rel="nofollow noreferrer">https://ibb.co/0Dx26vf</a></p>
  
  <ul>
  <li>I tried to install a different version of Jest, but I get the same 
  error.</li>
  <li>I use CRA without npm run jest(that is not a problem)</li>
  </ul>
  
  <pre><code>    beforeEach(() =&gt; {
        dashboard.find('.review-number').simulate('click')
      })
  
      it('Call the `addFeedback` callback', () =&gt; {
        expect(mockRemove).toHaveBeenCalledWith('1', '1')
      })
    })
  </code></pre>
  
  <p>Here you go component:</p>
  
  <pre><code>          &lt;Row&gt;
              {projects &amp;&amp; projects.map((project, i) =&gt; {
                return (
  
                  &lt;Col sm={4} key={i}&gt;
                    &lt;div className='mainBoxItem'&gt;
                      &lt;Link to={'/project/' + project.id} &gt;
                        &lt;div className='overflow-hidden'&gt;
                          &lt;img src={project.userImage} alt='Car' /&gt;
                        &lt;/div&gt;
                        &lt;h3&gt;{project.carType} {project.carModel}&lt;/h3&gt;
                      &lt;/Link&gt;
                      &lt;div className='flex'&gt;
                        &lt;p&gt;{project.authorFirstName}&lt;/p&gt;
                        &lt;em&gt;{moment(project.createdAt.toDate()).calendar()}&lt;/em&gt;
                      &lt;/div&gt;
                      &lt;span className='car-price'&gt;{project.carPrice} {project.Currency} / &lt;em&gt;Per Day&lt;/em&gt;&lt;/span&gt;
                      &lt;span className='review-number' onClick={() =&gt; this.addFeedback(project.id, project.feedback)}&gt;+1 ({project.feedback})&lt;/span&gt;
                    &lt;/div&gt;
                  &lt;/Col&gt;
                )
              })}
            &lt;/Row&gt;
          &lt;/Container&gt;```
  
  
    [1]: https://i.stack.imgur.com/LLSxx.png
  </code></pre>