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

Unify nullable comparison #6344

Merged
merged 2 commits into from
Jul 30, 2024
Merged

Unify nullable comparison #6344

merged 2 commits into from
Jul 30, 2024

Conversation

Latropos
Copy link
Contributor

@Latropos Latropos commented Jul 29, 2024

Summary

Change the way to verify that a certain value is nullable to match the existing API.
Actually jest exposes two separate functions:

  • expect(x).toBeNull()
  • expect(x).toBeUndefined()

So I had some doubts about having expect(x).toBeNullable() instead, but I've decided to keep the existing version.

Test plan

@Latropos Latropos marked this pull request as ready for review July 29, 2024 14:45
@Latropos Latropos added this pull request to the merge queue Jul 30, 2024
Merged via the queue into main with commit a9dc639 Jul 30, 2024
5 checks passed
@Latropos Latropos deleted the acynk/unify-nullable-comparison branch July 30, 2024 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants