summaryrefslogtreecommitdiff
path: root/deps/npm/test/tap/shrinkwrap-save-with-existing-dev-deps.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/test/tap/shrinkwrap-save-with-existing-dev-deps.js')
-rw-r--r--deps/npm/test/tap/shrinkwrap-save-with-existing-dev-deps.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/deps/npm/test/tap/shrinkwrap-save-with-existing-dev-deps.js b/deps/npm/test/tap/shrinkwrap-save-with-existing-dev-deps.js
index fcbbeeffdd..8a3f449fa8 100644
--- a/deps/npm/test/tap/shrinkwrap-save-with-existing-dev-deps.js
+++ b/deps/npm/test/tap/shrinkwrap-save-with-existing-dev-deps.js
@@ -18,7 +18,13 @@ var example_pkg = path.join(example, 'package.json')
var installed = path.join(example, 'node_modules', 'installed')
var installed_pkg = path.join(installed, 'package.json')
-var EXEC_OPTS = { cwd: example }
+// Ignore max listeners warnings until that gets fixed
+var env = Object.keys(process.env).reduce((set, key) => {
+ if (!set[key]) set[key] = process.env[key]
+ return set
+}, { NODE_NO_WARNINGS: '1' })
+
+var EXEC_OPTS = { cwd: example, env: env }
var installme_pkg_json = {
name: 'installme',