Issue
The test below should fail, but it is passing:
it('should fail', () => {
const actual = new Set('a');
const expected = new Set('b');
expect(actual).toEqual(expected);
});
Background & Question
I'm using the expect
package from npm. I'm using Babel 5 to use Set. I'm using Node 5, so the Set being used should be native.
Am I doing something wrong, or does this look like a bug in the expect
package in the way it handles Sets? I've cross posted an issue on the package as I'm not sure.