cspotcode / mockery-next

Simplifying the use of mocks with Node.js
Other
1 stars 1 forks source link

Allow mocking / substituting modules that don't exist on disk #1

Open cspotcode opened 8 years ago

cspotcode commented 8 years ago

In order to resolve relative module paths, in the current implementation, those modules must actually exist. Otherwise, node's module resolution logic will throw an error.

However, this causes problems in a couple situations: