Stub 'require' to throw error using 'testdouble'

98 Views Asked by At

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

0

There are 0 best solutions below