Open
Description
When is possible to determine if the expect(value) is not a function when used with .toThrow(), it must be an error.
const str = "any value";
expect(str).toThrow() // Not works.
const returnStr = () => "any value";
expect(returnStr).toThrow() // Not handle, but is a valid case (if returnStr() throws an exception).
Metadata
Metadata
Assignees
Labels
No labels