Skip to content

[Bug]: toEqual throws a TypeError #15471

@MillerSvt

Description

@MillerSvt

Version

29.7.0

Steps to reproduce

expect({file: new Blob([new Uint8Array([1, 2, 3])])}).toEqual({file: null});

Expected behavior

Test fail with valid message

Actual behavior

Test fail with error TypeError: Cannot read private member #channel from an object whose class did not declare it

Additional context

Related issues: #10167

Environment

System:
    OS: macOS 15.1
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v20.12.2/bin/yarn
    npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm
    pnpm: 9.7.0 - ~/.nvm/versions/node/v20.12.2/bin/pnpm
  npmPackages:
    jest: 29.7.0 => 29.7.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions