79116996

Date: 2024-10-23 08:13:44
Score: 0.5
Natty:
Report link

Descructuring module into an object does seem to resolve the issue:

import * as module from 'module';

const obj = { ...module };

Now the obj can be stubbed and spied on with sinon.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: VladimĂ­r Gorej