title: How to gitignore snapshot folders?
body: <p>I am starting to learn more about Jest and testing such as snapshot testing. The way I have my components in react configured is...</p>
  
  <pre><code>- src
    - components
      - Component1
        - index.js
        - __tests__
          - Component1.test.js
          - __snapshots__
    - Component2
        - index.js
        - __tests__
          - Component2.test.js
          - __snapshots__
  </code></pre>
  
  <p>and so on.</p>
  
  <p>I'm wondering what would be the line to write in my <code>.gitignore</code> to ignore the <code>__snapshots__</code> folder with this structure.</p>
  
  <p>Currently I have this (which is wrong)</p>
  
  <p><code>/src/components/*/__snapshots__/</code></p>
  
  <p>Also, is it best to keep them in version control or to ignore them? I'd still like to know what I need to put in my <code>gitignore</code>, but would like to hear thoughts about this as well!</p>
  
  <p>Thank you!</p>