Skip to content

Uncalled expect(name).not.toBeFalsy; in test code #21599

@RyanCavanaugh

Description

@RyanCavanaugh

expect(name).not.toBeFalsy;

We're wondering if this was intentional or not - it's a bit odd since name definitely is falsy in this codepath, so while it looks like a simple mistaken uncalled function, this function call appears that it would throw. OTOH maybe that's why the error wasn't detected?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions