Jest Test "Compared values have no visual difference." : <p>I'm doing a comparison between two objects that are quite complex and attempting to use the .toEqual method in expect.</p>

<p>Here is my test:</p>

<pre><code>it('check if stepGroups data in controlData matches data in liveData', () =&gt;    {
    var controlStore = data.controlStore
    var liveStore
    return getData().then(result =&gt; {
        liveStore = new Store()
        liveStore.loadData(JSON.parse(result))
        expect(controlStore).toEqual(liveStore)  
    })
})
</code></pre>

<p>I did a diff between the expected and the the received output and they both appear to be the same.  What would still be causing this test to fail?  I was reading up on pretty-format (<a href="https://github.com/facebook/jest/issues/1622" rel="noreferrer">https://github.com/facebook/jest/issues/1622</a>).  Have you run into similar situations?</p>
