Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Expose all matchers as asymmetric matchers #15102

Open
lcswillems opened this issue Jun 2, 2024 · 2 comments
Open

[Feature]: Expose all matchers as asymmetric matchers #15102

lcswillems opened this issue Jun 2, 2024 · 2 comments

Comments

@lcswillems
Copy link

馃殌 Feature Proposal

This is a copy of the issue #14700 with slight modifications.

Making all matchers available as asymmetric matchers.

Motivation

How to check if the value of a property of an object is greater than 10? There is no easy way to do in Jest.

Example

expect({ value: 11 }).toMatchObject({ value: expect.toBeGreaterThan(10) });

Pitch

This shouldn't require an additional matcher library since the goal is not to add any new matchers. It's simply a case of removing an unnecessary limitation on existing matchers.

Copy link

github-actions bot commented Jul 2, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Jul 2, 2024
@lcswillems
Copy link
Author

Should not be closed

@github-actions github-actions bot removed the Stale label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant