Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2014-04-29 03:30:01 +0400
committerisaacs <i@izs.me>2014-04-29 03:30:01 +0400
commit1053c97891a53c92358b75d943e7d01aed54f83a (patch)
treeb43cdfe69bdf5b25e736a3da9502938c61c27723 /test
parentc20ba1b96ca7e7bad48a279a9fb485268660bcd3 (diff)
bump tap dep, make tests stderr a bit quieter
Diffstat (limited to 'test')
-rw-r--r--test/common-tap.js1
-rw-r--r--test/tap/circular-dep.js1
-rw-r--r--test/tap/config-meta.js2
-rw-r--r--test/tap/ignore-install-link.js9
-rw-r--r--test/tap/peer-deps-invalid.js2
5 files changed, 5 insertions, 10 deletions
diff --git a/test/common-tap.js b/test/common-tap.js
index 11d47fda5..2c7dee4ec 100644
--- a/test/common-tap.js
+++ b/test/common-tap.js
@@ -2,6 +2,7 @@ var spawn = require('child_process').spawn
var port = exports.port = 1337
exports.registry = "http://localhost:" + port
+process.env.npm_config_loglevel = "error"
exports.run = run
function run (cmd, t, opts, cb) {
diff --git a/test/tap/circular-dep.js b/test/tap/circular-dep.js
index 03a4eb4ba..533f46451 100644
--- a/test/tap/circular-dep.js
+++ b/test/tap/circular-dep.js
@@ -38,6 +38,7 @@ function setup (cb) {
mr(common.port, function (s) {
server = s
npm.load({
+ loglevel: "silent",
registry: common.registry,
cache: path.resolve(pkg, "cache")
}, cb)
diff --git a/test/tap/config-meta.js b/test/tap/config-meta.js
index d787c414c..63cdd61c4 100644
--- a/test/tap/config-meta.js
+++ b/test/tap/config-meta.js
@@ -41,7 +41,6 @@ test("get files", function (t) {
test("get lines", function (t) {
FILES.forEach(function (f) {
- console.error(f)
var lines = fs.readFileSync(f, 'utf8').split('\n')
lines.forEach(function (l, i) {
var matches = l.split(/conf(?:ig)?\.get\(/g)
@@ -78,7 +77,6 @@ test("get docs", function (t) {
DOC[ d[i].replace(/^### /, '').trim() ] = true
}
t.pass("read the docs")
- console.error(DOC)
t.end()
})
diff --git a/test/tap/ignore-install-link.js b/test/tap/ignore-install-link.js
index 314b157a2..226221375 100644
--- a/test/tap/ignore-install-link.js
+++ b/test/tap/ignore-install-link.js
@@ -68,7 +68,6 @@ function clone (cb) {
if (c !== 0)
return cb(new Error('Failed to init the git repository'))
- console.log('Successfully inited the git repository')
process.chdir(linkDir)
performLink(cb)
})
@@ -80,7 +79,6 @@ function performLink (cb) {
if (c !== 0)
return cb(new Error('Failed to link ' + linkDir + ' globally'))
- console.log('Successfully linked ' + linkDir + ' globally')
performLink2(cb)
})
}
@@ -91,7 +89,6 @@ function performLink2 (cb) {
if (c !== 0)
return cb(new Error('Failed to link ' + linkDir + ' to local node_modules'))
- console.log('Successfully linked ' + linkDir + ' to local node_modules')
performInstall(cb)
})
}
@@ -102,7 +99,6 @@ function performInstall (cb) {
if (c !== 0)
return cb(new Error('Failed to install'))
- console.log('Successfully installed')
cb()
})
}
@@ -111,7 +107,8 @@ function createChild (cwd, cmd, args) {
var env = {
HOME: process.env.HOME,
Path: process.env.PATH,
- PATH: process.env.PATH
+ PATH: process.env.PATH,
+ npm_config_loglevel: "silent"
}
if (process.platform === "win32")
@@ -119,7 +116,7 @@ function createChild (cwd, cmd, args) {
return spawn(cmd, args, {
cwd: cwd,
- stdio: "inherit",
+ stdio: "pipe",
env: env
})
}
diff --git a/test/tap/peer-deps-invalid.js b/test/tap/peer-deps-invalid.js
index 65c9cb430..c28736550 100644
--- a/test/tap/peer-deps-invalid.js
+++ b/test/tap/peer-deps-invalid.js
@@ -26,9 +26,7 @@ test("installing dependencies that have conflicting peerDependencies", function
cache: pkg + "/cache",
registry: common.registry
}, function () {
- console.error('back from load')
npm.commands.install([], function (err) {
- console.error('back from install')
if (!err) {
t.fail("No error!")
} else {