title: How to make jest not distinguish between negative zero and positive zero?
body: <p>What is the best way to make Jest pass the following test:</p>
  
  <pre><code>test('example', () =&gt; {
    expect(0).toEqual(-0);
  });
  </code></pre>
  
  <p>I don't want to distinguish negative zero and positive zero. </p>
  
  <hr>
  
  <p>Maybe I should use some other function instead of <code>.toEqual</code>? Or I should replace all blocks like this:</p>
  
  <pre><code>expect(a).toEqual(b);
  </code></pre>
  
  <p>to</p>
  
  <pre><code>expect(a === 0 ? +0 : a).toEqual(b === 0 ? +0 : b);
  </code></pre>
  
  <p>?</p>