From 4a93e3968c8e2481a0fc6516e5e36e4e0de3d0c9 Mon Sep 17 00:00:00 2001 From: bastimeyer Date: Sat, 14 Mar 2015 09:58:49 +0100 Subject: [PATCH] Fix proxyquire dependency injections --- index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 1a90b0c..ab0346f 100644 --- a/index.js +++ b/index.js @@ -1,2 +1,10 @@ var proxyquire = require('proxyquire'); -module.exports = proxyquire('fs-extra', { 'ncp': require('graceful-ncp') }); \ No newline at end of file +module.exports = proxyquire('fs-extra', { + 'copy': proxyquire('fs-extra/lib/copy', { + 'ncp': require('graceful-ncp') + }), + 'move': proxyquire('fs-extra/lib/move', { + 'ncp': require('graceful-ncp') + }) +}); +