title: How do I update the snapshots in my React/TypeScript project?
body: <p>I have a React/TypeScript project using the Jest testing framework. Sometimes, after I update my code, Jest will compare it to the snapshots and provide an alert asking me to update them. Other times, I don't get this prompt:</p>
  
  <pre><code>Would you like to update your snapshots?
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/XHPAt.png" rel="noreferrer"><img src="https://i.stack.imgur.com/XHPAt.png" alt="Alert: Would you like to update your snapshots?"></a></p>
  
  <p>If I don’t get this prompt, I can update each individual line by hand, but this is tedious and error prone. </p>
  
  <p><br></p>
  
  <p><strong>How do I automatically update my snapshots?</strong></p>