mfncooper / mockery

Simplifying the use of mocks with Node.js
Other
1.1k stars 60 forks source link

Register allowed modules via regexp #38

Open fustic opened 8 years ago

fustic commented 8 years ago

I faced an issue with dozens of warnings as in this issue https://github.com/mfncooper/mockery/issues/35. The solution I propose is just allow to register modules via regexp. Which I find more or less acceptable. This way I am able to allow all babel and core-js modules with couple of lines.