-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: add expect.closeTo() API #2827
Conversation
can you retrigger pipelines? @sheremet-va |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation is missing. Can you add it, please? Other than that good job 👍🏻
}).toEqual({ | ||
title: '0.1 + 0.2', | ||
sum: expect.not.closeTo(0.4, 5), | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have a test that will actually fail?
expect(() => ...).toThrow(...)
I will! |
This would be a great addition and would help with the adoption of Vitest. Thank you. |
@sheremet-va @Dunqing any chance this could be picked up by one of you and completed? It doesn't look like the original author has time to complete this PR and Jest already has this feature as |
Feel free to open a separate PR 😄 |
I knew you were going to say that but I don't feel comfortable to take this one over |
I will take this one over |
#2809