79388889

Date: 2025-01-26 16:41:35
Score: 3
Natty:
Report link

Ok, after a few hours wasted, I found the root cause. When an async code is tested by .toThrow() matcher, the exception being thrown must be extending Error. The relevant issue is here: https://github.com/jestjs/jest/issues/12024

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Антон Игоревич Злыгостев