mock-require
mock-require copied to clipboard
Added a lazy flag and ensured compatible with old versions of Node.js
I needed to scan a directory and generate mock requires without knowing which order to require them in. I added a lazy flag so the order could be determined at runtime