Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Commit 649c193

Browse files
iarnazkat
authored andcommitted
test: sorted-package-json: don't stomp on error output
PR-URL: #10903 Credit: @iarna
1 parent 94cb05e commit 649c193

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/tap/sorted-package-json.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ test("sorting dependencies", function (t) {
2727
mr({port : common.port}, function (er, s) {
2828
// underscore is already in the package.json,
2929
// but --save will trigger a rewrite with sort
30-
var child = spawn(node, [npm, "install", "--save", "[email protected]"], {
30+
var child = spawn(node, [npm, "install", "--save", "[email protected]", "--no-progress", "--loglevel=error"], {
3131
cwd: pkg,
3232
env: {
3333
"npm_config_registry": common.registry,
@@ -38,7 +38,8 @@ test("sorting dependencies", function (t) {
3838
HOME: process.env.HOME,
3939
Path: process.env.PATH,
4040
PATH: process.env.PATH
41-
}
41+
},
42+
stdio: ['ignore', 'ignore', process.stderr]
4243
})
4344

4445
child.on("close", function (code) {

0 commit comments

Comments
 (0)