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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expect(value, MESSAGE) is not documented #6337

Open
fregante opened this issue Aug 13, 2024 · 0 comments
Open

expect(value, MESSAGE) is not documented #6337

fregante opened this issue Aug 13, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@fregante
Copy link
Contributor

fregante commented Aug 13, 2024

Describe the bug

This works but it's not documented anywhere:

expect(false, 'my custom error message').toBe(true);

I can only find it in the types, added in 2022.

I can't find it in Jest' docs either: https://jestjs.io/docs/expect#expectvalue

Demo

Screenshot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants