-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Closed
Labels
Description
Version
28.1.2
Steps to reproduce
import { OrderedSet, List } from 'immutable';
it('works with immutable objects', () => {
const a = OrderedSet().add('newValue');
const b = List(['newValue']).toOrderedSet();
expect(Immutable.is(a, b)).toBe(true); // passes
expect(a).toEqual(b); // fails
});
Expected behavior
The test should pass
Actual behavior
The isEqual test fails. The Immutable.is(a, b) assertion passes.
Additional context
This is the same issue as #12860, but needs its own condition.
Environment
System:
OS: macOS 12.4
CPU: (10) x64 Apple M1 Pro
Binaries:
Node: 14.18.1 - /var/folders/b4/0jgrn8fx6vn5bd59pmybg6zw0000gn/T/fnm_multishells/4762_1652895535386/bin/node
Yarn: 1.22.18 - ~/workspace/zenpayroll/node_modules/.bin/yarn
npm: 8.3.1 - /opt/homebrew/bin/npm
npmPackages:
jest: ^28.1.2 => 28.1.2