Skip to content

The array helpers don't work as expected if the elements are Sets #710

Closed
@florian-lackner365

Description

@florian-lackner365

List of affected functions:

  • toIncludeAllMembers
  • toIncludeAnyMembers
  • toIncludeAnyMembers

Example

test('detects that sets are different', () => {
  expect([new Set([1])]).toIncludeSameMembers([new Set([1, 2])]);
});

This test passes, but it shouldn't, because the Sets are not equal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions