title: Jest Equality Matcher For Strings That Disregards Whitespace
body: <p>Jest's <code>toEqual</code> matcher takes whitespace into account when checking for equality. When formatting the expected value in tests it is impossible to do so in a way that matches a string containing newlines, tabs etc.</p>
  
  <p><strong>Does Jest offer a way to disregard whitespace when matching?</strong></p>
  
  <p><em>Note: I edited the question to make it more generic.</em></p>