79336138

Date: 2025-01-07 13:23:35
Score: 2.5
Natty:
Report link

Jest works by replacing or spying on properties of objects (like fs.statSync when fs is imported as a whole). The issue with a named import is that there's no object or property available to mock

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: javierfdezsua