1

I want to stub the 'require' call to a module to throw error. Is there a way to do it using 'testdouble' or 'proxyrequire'?

Lavish
  • 11
  • 3
  • Yes, there are dedicated solutions, for example _proxyquire_, and general solutions that allow remapping graphs relative to arbitrarily specific packages, for example _SystemJS_. – Aluan Haddad Feb 03 '18 at 05:53

0 Answers0