I get that .toEqual() checks equality of all fields for plain objects:
.toEqual()
expect( {"key1":"pin
Put the elements into a set. Jest knows how to match these.
expect(new Set(["pink wool", "diorite"])).toEqual(new Set(["diorite", "pink wool"]));