-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Labels
p2-nice-to-haveNot breaking anything but nice to have (priority)Not breaking anything but nice to have (priority)
Description
Clear and concise description of the problem
Sometimes we don't care whether a value is undefined or null, we just want to test that it is nullish.
Suggested solution
I am proposing a new assertion, toBeNullish(). This would test value == null, i.e. that the value is either null or undefined.
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
p2-nice-to-haveNot breaking anything but nice to have (priority)Not breaking anything but nice to have (priority)
Type
Projects
Status
Approved