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:
authorKat Marchán <kzm@zkat.tech>2018-08-31 20:08:07 +0300
committerKat Marchán <kzm@zkat.tech>2018-12-11 02:30:29 +0300
commitb24ed5fdc3a4395628465ae5273bad54eea274c8 (patch)
tree54c1d81c6a13fd55f2a869a7a674637c9345efbc /test
parent90a069e7d4646682211f4cabe289c306ee1d5397 (diff)
publish: stop using npm-registry-client
Diffstat (limited to 'test')
-rw-r--r--test/tap/publish-config.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/tap/publish-config.js b/test/tap/publish-config.js
index 0566795db..14fd40311 100644
--- a/test/tap/publish-config.js
+++ b/test/tap/publish-config.js
@@ -47,9 +47,13 @@ test(function (t) {
// itself functions normally.
//
// Make sure that we don't sit around waiting for lock files
- child = common.npm(['publish', '--userconfig=' + pkg + '/fixture_npmrc', '--tag=beta'], {
+ child = common.npm([
+ 'publish',
+ '--userconfig=' + pkg + '/fixture_npmrc',
+ '--tag=beta',
+ '--loglevel', 'error'
+ ], {
cwd: pkg,
- stdio: 'inherit',
env: {
'npm_config_cache_lock_stale': 1000,
'npm_config_cache_lock_wait': 1000,
@@ -58,7 +62,9 @@ test(function (t) {
PATH: process.env.PATH,
USERPROFILE: osenv.home()
}
- }, function (err, code) {
+ }, function (err, code, stdout, stderr) {
+ t.comment(stdout)
+ t.comment(stderr)
t.ifError(err, 'publish command finished successfully')
t.notOk(code, 'npm install exited with code 0')
})