Skip to content

[Feature]: Expose equals from expect package.  #11867

@chyzwar

Description

@chyzwar

🚀 Feature Proposal

Slightly popular package jest-when(https://www.npmjs.com/package/jest-when) that depend on "expect" use portion of private api require('expect/build/jasmineUtils') I just raised PR to use jest as peer timkindberg/jest-when#84

We would like to ask jest to expose "equals" from jasmineUtils or provide suitable API to get current equals matcher.

Motivation

  1. I am worried that can break with ESM enforcing exports fields
  2. jest-when use private api it is withing jest project rights to break it on minor releases.
  3. Hopefully jest project consider adding jest-when functionality to core as it is useful and good API

Example

No response

Pitch

See above motivation. Either expose equals or provide jest-when compatible functionality in core.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions