{"action":"opened","issue":{"url":"https://api.github.com/repos/thlorenz/proxyquire/issues/86","labels_url":"https://api.github.com/repos/thlorenz/proxyquire/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/thlorenz/proxyquire/issues/86/comments","events_url":"https://api.github.com/repos/thlorenz/proxyquire/issues/86/events","html_url":"https://github.com/thlorenz/proxyquire/issues/86","id":110997669,"number":86,"title":"Would it be possible to use `require.resolve`?","user":{"login":"LinusU","id":189580,"avatar_url":"https://avatars.githubusercontent.com/u/189580?v=3","gravatar_id":"","url":"https://api.github.com/users/LinusU","html_url":"https://github.com/LinusU","followers_url":"https://api.github.com/users/LinusU/followers","following_url":"https://api.github.com/users/LinusU/following{/other_user}","gists_url":"https://api.github.com/users/LinusU/gists{/gist_id}","starred_url":"https://api.github.com/users/LinusU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinusU/subscriptions","organizations_url":"https://api.github.com/users/LinusU/orgs","repos_url":"https://api.github.com/users/LinusU/repos","events_url":"https://api.github.com/users/LinusU/events{/privacy}","received_events_url":"https://api.github.com/users/LinusU/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-12T15:22:49Z","updated_at":"2015-10-12T15:22:49Z","closed_at":null,"body":"One thing that is a bit of a gotcha, and also quite annoying in some situations, is that proxyquire requires you to know the exact string that the required module will use to require a mocked dependency.\r\n\r\nWould it be possible to use `require.resolve` in order to use the canonical paths to the modules?"}}