title: How is toEqual() in jest interpreted for immutable objects?
body: <p>I'm expecting both of these <code>toEqual()</code> tests to pass. The first one passes, but the second one doesn't. Why?</p>
  
  <pre><code>test('something', () =&gt; {
    const m = Map({
      a: 1,
      b: 2,
    })
  
    expect(m.valueSeq()).toEqual(m.valueSeq());
    expect(m.valueSeq().filter(_ =&gt; true)).toEqual(m.valueSeq());
  });
  </code></pre>