You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
Ideally, we would be able to also have require.resolve return something different than the actual implementation.
I.e. I'm trying to check for the absence of a module. And in my code, after mocking via mockery.registerMock('koa-bodyparser', null);
the require.resolve('koa-bodyparser') still returns the actual path, where require('koa-bodyparser') returns null.
To allow the best of both ways, this could be an config option to mockery.
Thanks!
The text was updated successfully, but these errors were encountered:
Ideally, we would be able to also have
require.resolve
return something different than the actual implementation.I.e. I'm trying to check for the absence of a module. And in my code, after mocking via
mockery.registerMock('koa-bodyparser', null);
the
require.resolve('koa-bodyparser')
still returns the actual path, whererequire('koa-bodyparser')
returnsnull
.To allow the best of both ways, this could be an config option to mockery.
Thanks!
The text was updated successfully, but these errors were encountered: