Expected behavior: expect(() => { throw undefined }).toThrow('Input validation failed')
should fail.
#7260
Labels
expect(() => { throw undefined }).toThrow('Input validation failed')
should fail.
#7260
Describe the bug
Encountered unexpected behavior where throwing
undefined
still passed the tests. This occurred because I created a mock function meant to check the error before throwing, but I forgot to implement the check.Expected behavior:
expect(() => { throw undefined }).toThrow('Input validation failed')
should fail.Reproduction
Expected behavior:
expect(() => { throw undefined }).toThrow('Input validation failed')
should fail.System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: