Skip to content

expect toBeNullish #7904

@MetRonnie

Description

@MetRonnie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    p2-nice-to-haveNot breaking anything but nice to have (priority)

    Projects

    Status

    Approved

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions