From dfcd0c1e2331c1f4b6573466b50505772eddaf22 Mon Sep 17 00:00:00 2001 From: Gar Date: Tue, 13 Apr 2021 10:07:46 -0700 Subject: tap@15.0.2 PR-URL: https://github.com/npm/cli/pull/3069 Credit: @isaacs Close: #3069 Reviewed-by: @ruyadorno, @nlf --- tap-snapshots/smoke-tests-index.js-TAP.test.js | 686 -------- tap-snapshots/smoke-tests/index.js.test.cjs | 686 ++++++++ tap-snapshots/test-lib-config.js-TAP.test.js | 150 -- tap-snapshots/test-lib-dist-tag.js-TAP.test.js | 256 --- tap-snapshots/test-lib-fund.js-TAP.test.js | 94 -- tap-snapshots/test-lib-init.js-TAP.test.js | 19 - tap-snapshots/test-lib-link.js-TAP.test.js | 30 - tap-snapshots/test-lib-ls.js-TAP.test.js | 602 -------- tap-snapshots/test-lib-outdated.js-TAP.test.js | 154 -- tap-snapshots/test-lib-owner.js-TAP.test.js | 20 - tap-snapshots/test-lib-profile.js-TAP.test.js | 104 -- tap-snapshots/test-lib-publish.js-TAP.test.js | 20 - tap-snapshots/test-lib-search.js-TAP.test.js | 20 - tap-snapshots/test-lib-stars.js-TAP.test.js | 15 - tap-snapshots/test-lib-team.js-TAP.test.js | 85 - .../test-lib-utils-cmd-list.js-TAP.test.js | 209 --- ...test-lib-utils-config-definition.js-TAP.test.js | 264 ---- ...est-lib-utils-config-definitions.js-TAP.test.js | 157 -- ...st-lib-utils-config-describe-all.js-TAP.test.js | 1389 ----------------- .../test-lib-utils-config-index.js-TAP.test.js | 133 -- .../test-lib-utils-error-handler.js-TAP.test.js | 23 - .../test-lib-utils-error-message.js-TAP.test.js | 1268 --------------- .../test-lib-utils-explain-dep.js-TAP.test.js | 201 --- .../test-lib-utils-explain-eresolve.js-TAP.test.js | 717 --------- .../test-lib-utils-npm-usage.js-TAP.test.js | 953 ------------ .../test-lib-utils-open-url.js-TAP.test.js | 25 - .../test-lib-utils-reify-finish.js-TAP.test.js | 15 - .../test-lib-utils-reify-output.js-TAP.test.js | 1634 -------------------- tap-snapshots/test-lib-utils-tar.js-TAP.test.js | 33 - .../test-lib-utils-update-notifier.js-TAP.test.js | 102 -- tap-snapshots/test-lib-view.js-TAP.test.js | 529 ------- tap-snapshots/test-tap-repo.js-TAP.test.js | 21 - tap-snapshots/test/lib/config.js.test.cjs | 150 ++ tap-snapshots/test/lib/dist-tag.js.test.cjs | 256 +++ tap-snapshots/test/lib/fund.js.test.cjs | 94 ++ tap-snapshots/test/lib/init.js.test.cjs | 19 + tap-snapshots/test/lib/link.js.test.cjs | 30 + tap-snapshots/test/lib/ls.js.test.cjs | 602 ++++++++ tap-snapshots/test/lib/outdated.js.test.cjs | 154 ++ tap-snapshots/test/lib/owner.js.test.cjs | 20 + tap-snapshots/test/lib/profile.js.test.cjs | 104 ++ tap-snapshots/test/lib/publish.js.test.cjs | 20 + tap-snapshots/test/lib/search.js.test.cjs | 20 + tap-snapshots/test/lib/stars.js.test.cjs | 15 + tap-snapshots/test/lib/team.js.test.cjs | 85 + tap-snapshots/test/lib/utils/cmd-list.js.test.cjs | 209 +++ .../test/lib/utils/config/definition.js.test.cjs | 264 ++++ .../test/lib/utils/config/definitions.js.test.cjs | 157 ++ .../test/lib/utils/config/describe-all.js.test.cjs | 1389 +++++++++++++++++ .../test/lib/utils/config/index.js.test.cjs | 133 ++ .../test/lib/utils/error-handler.js.test.cjs | 23 + .../test/lib/utils/error-message.js.test.cjs | 1525 ++++++++++++++++++ .../test/lib/utils/explain-dep.js.test.cjs | 201 +++ .../test/lib/utils/explain-eresolve.js.test.cjs | 717 +++++++++ tap-snapshots/test/lib/utils/npm-usage.js.test.cjs | 953 ++++++++++++ tap-snapshots/test/lib/utils/open-url.js.test.cjs | 25 + .../test/lib/utils/reify-finish.js.test.cjs | 15 + .../test/lib/utils/reify-output.js.test.cjs | 1634 ++++++++++++++++++++ tap-snapshots/test/lib/utils/tar.js.test.cjs | 33 + .../test/lib/utils/update-notifier.js.test.cjs | 102 ++ tap-snapshots/test/lib/view.js.test.cjs | 529 +++++++ 61 files changed, 10164 insertions(+), 9928 deletions(-) delete mode 100644 tap-snapshots/smoke-tests-index.js-TAP.test.js create mode 100644 tap-snapshots/smoke-tests/index.js.test.cjs delete mode 100644 tap-snapshots/test-lib-config.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-dist-tag.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-fund.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-init.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-link.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-ls.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-outdated.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-owner.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-profile.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-publish.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-search.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-stars.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-team.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-utils-cmd-list.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-utils-config-definition.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-utils-config-definitions.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-utils-config-describe-all.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-utils-config-index.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-utils-error-handler.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-utils-error-message.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-utils-explain-dep.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-utils-explain-eresolve.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-utils-npm-usage.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-utils-open-url.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-utils-reify-finish.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-utils-reify-output.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-utils-tar.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-utils-update-notifier.js-TAP.test.js delete mode 100644 tap-snapshots/test-lib-view.js-TAP.test.js delete mode 100644 tap-snapshots/test-tap-repo.js-TAP.test.js create mode 100644 tap-snapshots/test/lib/config.js.test.cjs create mode 100644 tap-snapshots/test/lib/dist-tag.js.test.cjs create mode 100644 tap-snapshots/test/lib/fund.js.test.cjs create mode 100644 tap-snapshots/test/lib/init.js.test.cjs create mode 100644 tap-snapshots/test/lib/link.js.test.cjs create mode 100644 tap-snapshots/test/lib/ls.js.test.cjs create mode 100644 tap-snapshots/test/lib/outdated.js.test.cjs create mode 100644 tap-snapshots/test/lib/owner.js.test.cjs create mode 100644 tap-snapshots/test/lib/profile.js.test.cjs create mode 100644 tap-snapshots/test/lib/publish.js.test.cjs create mode 100644 tap-snapshots/test/lib/search.js.test.cjs create mode 100644 tap-snapshots/test/lib/stars.js.test.cjs create mode 100644 tap-snapshots/test/lib/team.js.test.cjs create mode 100644 tap-snapshots/test/lib/utils/cmd-list.js.test.cjs create mode 100644 tap-snapshots/test/lib/utils/config/definition.js.test.cjs create mode 100644 tap-snapshots/test/lib/utils/config/definitions.js.test.cjs create mode 100644 tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs create mode 100644 tap-snapshots/test/lib/utils/config/index.js.test.cjs create mode 100644 tap-snapshots/test/lib/utils/error-handler.js.test.cjs create mode 100644 tap-snapshots/test/lib/utils/error-message.js.test.cjs create mode 100644 tap-snapshots/test/lib/utils/explain-dep.js.test.cjs create mode 100644 tap-snapshots/test/lib/utils/explain-eresolve.js.test.cjs create mode 100644 tap-snapshots/test/lib/utils/npm-usage.js.test.cjs create mode 100644 tap-snapshots/test/lib/utils/open-url.js.test.cjs create mode 100644 tap-snapshots/test/lib/utils/reify-finish.js.test.cjs create mode 100644 tap-snapshots/test/lib/utils/reify-output.js.test.cjs create mode 100644 tap-snapshots/test/lib/utils/tar.js.test.cjs create mode 100644 tap-snapshots/test/lib/utils/update-notifier.js.test.cjs create mode 100644 tap-snapshots/test/lib/view.js.test.cjs (limited to 'tap-snapshots') diff --git a/tap-snapshots/smoke-tests-index.js-TAP.test.js b/tap-snapshots/smoke-tests-index.js-TAP.test.js deleted file mode 100644 index 6fabc5cc3..000000000 --- a/tap-snapshots/smoke-tests-index.js-TAP.test.js +++ /dev/null @@ -1,686 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`smoke-tests/index.js TAP npm (no args) > should have expected no args output 1`] = ` -npm - -Usage: - -npm install install all the dependencies in your project -npm install add the dependency to your project -npm test run this project's tests -npm run run the script named -npm -h quick help on -npm -l display usage info for all commands -npm help search for help on -npm help npm more involved overview - -All commands: - - access, adduser, audit, bin, bugs, cache, ci, completion, - config, dedupe, deprecate, diff, dist-tag, docs, doctor, - edit, exec, explain, explore, find-dupes, fund, get, help, - hook, init, install, install-ci-test, install-test, link, - ll, login, logout, ls, org, outdated, owner, pack, ping, - prefix, profile, prune, publish, rebuild, repo, restart, - root, run-script, search, set, set-script, shrinkwrap, star, - stars, start, stop, team, test, token, uninstall, unpublish, - unstar, update, version, view, whoami - -Specify configs in the ini-formatted file: - {CWD}/smoke-tests/index/.npmrc -or on the command line via: npm --key=value - -More configuration info: npm help config -Configuration fields: npm help 7 config - -npm {CWD} - -` - -exports[`smoke-tests/index.js TAP npm diff > should have expected diff output 1`] = ` -diff --git a/package.json b/package.json -index v1.0.4..v1.1.1 100644 ---- a/package.json -+++ b/package.json -@@ -1,15 +1,21 @@ - { - "name": "abbrev", -- "version": "1.0.4", -+ "version": "1.1.1", - "description": "Like ruby's abbrev module, but in js", - "author": "Isaac Z. Schlueter ", -- "main": "./lib/abbrev.js", -+ "main": "abbrev.js", - "scripts": { -- "test": "node lib/abbrev.js" -+ "test": "tap test.js --100", -+ "preversion": "npm test", -+ "postversion": "npm publish", -+ "postpublish": "git push origin --all; git push origin --tags" - }, - "repository": "http://github.com/isaacs/abbrev-js", -- "license": { -- "type": "MIT", -- "url": "https://github.com/isaacs/abbrev-js/raw/master/LICENSE" -- } -+ "license": "ISC", -+ "devDependencies": { -+ "tap": "^10.1" -+ }, -+ "files": [ -+ "abbrev.js" -+ ] - } -diff --git a/LICENSE b/LICENSE -index v1.0.4..v1.1.1 100644 ---- a/LICENSE -+++ b/LICENSE -@@ -1,4 +1,27 @@ --Copyright 2009, 2010, 2011 Isaac Z. Schlueter. -+This software is dual-licensed under the ISC and MIT licenses. -+You may use this software under EITHER of the following licenses. -+ -+---------- -+ -+The ISC License -+ -+Copyright (c) Isaac Z. Schlueter and Contributors -+ -+Permission to use, copy, modify, and/or distribute this software for any -+purpose with or without fee is hereby granted, provided that the above -+copyright notice and this permission notice appear in all copies. -+ -+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -+ -+---------- -+ -+Copyright Isaac Z. Schlueter and Contributors - All rights reserved. - - Permission is hereby granted, free of charge, to any person -diff --git a/lib/abbrev.js b/lib/abbrev.js -deleted file mode 100644 -index v1.0.4..v1.1.1 ---- a/lib/abbrev.js -+++ b/lib/abbrev.js -@@ -1,111 +0,0 @@ -- --module.exports = exports = abbrev.abbrev = abbrev -- --abbrev.monkeyPatch = monkeyPatch -- --function monkeyPatch () { -- Object.defineProperty(Array.prototype, 'abbrev', { -- value: function () { return abbrev(this) }, -- enumerable: false, configurable: true, writable: true -- }) -- -- Object.defineProperty(Object.prototype, 'abbrev', { -- value: function () { return abbrev(Object.keys(this)) }, -- enumerable: false, configurable: true, writable: true -- }) --} -- --function abbrev (list) { -- if (arguments.length !== 1 || !Array.isArray(list)) { -- list = Array.prototype.slice.call(arguments, 0) -- } -- for (var i = 0, l = list.length, args = [] ; i < l ; i ++) { -- args[i] = typeof list[i] === "string" ? list[i] : String(list[i]) -- } -- -- // sort them lexicographically, so that they're next to their nearest kin -- args = args.sort(lexSort) -- -- // walk through each, seeing how much it has in common with the next and previous -- var abbrevs = {} -- , prev = "" -- for (var i = 0, l = args.length ; i < l ; i ++) { -- var current = args[i] -- , next = args[i + 1] || "" -- , nextMatches = true -- , prevMatches = true -- if (current === next) continue -- for (var j = 0, cl = current.length ; j < cl ; j ++) { -- var curChar = current.charAt(j) -- nextMatches = nextMatches && curChar === next.charAt(j) -- prevMatches = prevMatches && curChar === prev.charAt(j) -- if (!nextMatches && !prevMatches) { -- j ++ -- break -- } -- } -- prev = current -- if (j === cl) { -- abbrevs[current] = current -- continue -- } -- for (var a = current.substr(0, j) ; j <= cl ; j ++) { -- abbrevs[a] = current -- a += current.charAt(j) -- } -- } -- return abbrevs --} -- --function lexSort (a, b) { -- return a === b ? 0 : a > b ? 1 : -1 --} -- -- --// tests --if (module === require.main) { -- --var assert = require("assert") --var util = require("util") -- --console.log("running tests") --function test (list, expect) { -- var actual = abbrev(list) -- assert.deepEqual(actual, expect, -- "abbrev("+util.inspect(list)+") === " + util.inspect(expect) + "/n"+ -- "actual: "+util.inspect(actual)) -- actual = abbrev.apply(exports, list) -- assert.deepEqual(abbrev.apply(exports, list), expect, -- "abbrev("+list.map(JSON.stringify).join(",")+") === " + util.inspect(expect) + "/n"+ -- "actual: "+util.inspect(actual)) --} -- --test([ "ruby", "ruby", "rules", "rules", "rules" ], --{ rub: 'ruby' --, ruby: 'ruby' --, rul: 'rules' --, rule: 'rules' --, rules: 'rules' --}) --test(["fool", "foom", "pool", "pope"], --{ fool: 'fool' --, foom: 'foom' --, poo: 'pool' --, pool: 'pool' --, pop: 'pope' --, pope: 'pope' --}) --test(["a", "ab", "abc", "abcd", "abcde", "acde"], --{ a: 'a' --, ab: 'ab' --, abc: 'abc' --, abcd: 'abcd' --, abcde: 'abcde' --, ac: 'acde' --, acd: 'acde' --, acde: 'acde' --}) -- --console.log("pass") -- --} -/ No newline at end of file -diff --git a/abbrev.js b/abbrev.js -new file mode 100644 -index v1.0.4..v1.1.1 ---- a/abbrev.js -+++ b/abbrev.js -@@ -0,0 +1,61 @@ -+module.exports = exports = abbrev.abbrev = abbrev -+ -+abbrev.monkeyPatch = monkeyPatch -+ -+function monkeyPatch () { -+ Object.defineProperty(Array.prototype, 'abbrev', { -+ value: function () { return abbrev(this) }, -+ enumerable: false, configurable: true, writable: true -+ }) -+ -+ Object.defineProperty(Object.prototype, 'abbrev', { -+ value: function () { return abbrev(Object.keys(this)) }, -+ enumerable: false, configurable: true, writable: true -+ }) -+} -+ -+function abbrev (list) { -+ if (arguments.length !== 1 || !Array.isArray(list)) { -+ list = Array.prototype.slice.call(arguments, 0) -+ } -+ for (var i = 0, l = list.length, args = [] ; i < l ; i ++) { -+ args[i] = typeof list[i] === "string" ? list[i] : String(list[i]) -+ } -+ -+ // sort them lexicographically, so that they're next to their nearest kin -+ args = args.sort(lexSort) -+ -+ // walk through each, seeing how much it has in common with the next and previous -+ var abbrevs = {} -+ , prev = "" -+ for (var i = 0, l = args.length ; i < l ; i ++) { -+ var current = args[i] -+ , next = args[i + 1] || "" -+ , nextMatches = true -+ , prevMatches = true -+ if (current === next) continue -+ for (var j = 0, cl = current.length ; j < cl ; j ++) { -+ var curChar = current.charAt(j) -+ nextMatches = nextMatches && curChar === next.charAt(j) -+ prevMatches = prevMatches && curChar === prev.charAt(j) -+ if (!nextMatches && !prevMatches) { -+ j ++ -+ break -+ } -+ } -+ prev = current -+ if (j === cl) { -+ abbrevs[current] = current -+ continue -+ } -+ for (var a = current.substr(0, j) ; j <= cl ; j ++) { -+ abbrevs[a] = current -+ a += current.charAt(j) -+ } -+ } -+ return abbrevs -+} -+ -+function lexSort (a, b) { -+ return a === b ? 0 : a > b ? 1 : -1 -+} - -` - -exports[`smoke-tests/index.js TAP npm explain > should have expected explain output 1`] = ` -abbrev@1.0.4 -node_modules/abbrev - abbrev@"^1.0.4" from the root project - -` - -exports[`smoke-tests/index.js TAP npm fund > should have expected fund output 1`] = ` -project@1.0.0 -\`-- https://github.com/sponsors/isaacs - \`-- promise-all-reject-late@1.0.1 - - -` - -exports[`smoke-tests/index.js TAP npm init > should have successful npm init result 1`] = ` -Wrote to {CWD}/smoke-tests/index/project/package.json: - -{ - "name": "project", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo /"Error: no test specified/" && exit 1" - }, - "keywords": [], - "author": "", - "license": "ISC" -} - - - -` - -exports[`smoke-tests/index.js TAP npm install dev dep > should have expected dev dep added lockfile result 1`] = ` -{ - "name": "project", - "version": "1.0.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "version": "1.0.0", - "license": "ISC", - "dependencies": { - "abbrev": "^1.0.4" - }, - "devDependencies": { - "promise-all-reject-late": "^1.0.1" - } - }, - "node_modules/abbrev": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.4.tgz", - "integrity": "sha1-vVWuXkE7oXIu5Mq6H26hBBSlns0=" - }, - "node_modules/promise-all-reject-late": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz", - "integrity": "sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - } - }, - "dependencies": { - "abbrev": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.4.tgz", - "integrity": "sha1-vVWuXkE7oXIu5Mq6H26hBBSlns0=" - }, - "promise-all-reject-late": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz", - "integrity": "sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==", - "dev": true - } - } -} - -` - -exports[`smoke-tests/index.js TAP npm install dev dep > should have expected dev dep added package.json result 1`] = ` -{ - "name": "project", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo /"Error: no test specified/" && exit 1" - }, - "keywords": [], - "author": "", - "license": "ISC", - "dependencies": { - "abbrev": "^1.0.4" - }, - "devDependencies": { - "promise-all-reject-late": "^1.0.1" - } -} - -` - -exports[`smoke-tests/index.js TAP npm install dev dep > should have expected dev dep added reify output 1`] = ` - -added 1 package - -1 package is looking for funding - run \`npm fund\` for details - -` - -exports[`smoke-tests/index.js TAP npm install prodDep@version > should have expected install reify output 1`] = ` - -added 1 package - -` - -exports[`smoke-tests/index.js TAP npm install prodDep@version > should have expected lockfile result 1`] = ` -{ - "name": "project", - "version": "1.0.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "version": "1.0.0", - "license": "ISC", - "dependencies": { - "abbrev": "^1.0.4" - } - }, - "node_modules/abbrev": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.4.tgz", - "integrity": "sha1-vVWuXkE7oXIu5Mq6H26hBBSlns0=" - } - }, - "dependencies": { - "abbrev": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.4.tgz", - "integrity": "sha1-vVWuXkE7oXIu5Mq6H26hBBSlns0=" - } - } -} - -` - -exports[`smoke-tests/index.js TAP npm install prodDep@version > should have expected package.json result 1`] = ` -{ - "name": "project", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo /"Error: no test specified/" && exit 1" - }, - "keywords": [], - "author": "", - "license": "ISC", - "dependencies": { - "abbrev": "^1.0.4" - } -} - -` - -exports[`smoke-tests/index.js TAP npm ls > should have expected ls output 1`] = ` -project@1.0.0 {CWD}/smoke-tests/index/project -+-- abbrev@1.0.4 -\`-- promise-all-reject-late@1.0.1 - - -` - -exports[`smoke-tests/index.js TAP npm outdated > should have expected outdated output 1`] = ` -Package Current Wanted Latest Location Depended by -abbrev 1.0.4 1.1.1 1.1.1 node_modules/abbrev project - -` - -exports[`smoke-tests/index.js TAP npm prefix > should have expected prefix output 1`] = ` -{CWD}/smoke-tests/index/project - -` - -exports[`smoke-tests/index.js TAP npm run-script > should have expected run-script output 1`] = ` - -> project@1.0.0 hello -> echo Hello - -Hello - -` - -exports[`smoke-tests/index.js TAP npm set-script > should have expected script added package.json result 1`] = ` -{ - "name": "project", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo /"Error: no test specified/" && exit 1", - "hello": "echo Hello" - }, - "keywords": [], - "author": "", - "license": "ISC", - "dependencies": { - "abbrev": "^1.0.4" - }, - "devDependencies": { - "promise-all-reject-late": "^1.0.1" - } -} - -` - -exports[`smoke-tests/index.js TAP npm set-script > should have expected set-script output 1`] = ` - -` - -exports[`smoke-tests/index.js TAP npm uninstall > should have expected uninstall lockfile result 1`] = ` -{ - "name": "project", - "version": "1.0.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "version": "1.0.0", - "license": "ISC", - "dependencies": { - "abbrev": "^1.0.4" - } - }, - "node_modules/abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" - } - }, - "dependencies": { - "abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" - } - } -} - -` - -exports[`smoke-tests/index.js TAP npm uninstall > should have expected uninstall package.json result 1`] = ` -{ - "name": "project", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo /"Error: no test specified/" && exit 1", - "hello": "echo Hello" - }, - "keywords": [], - "author": "", - "license": "ISC", - "dependencies": { - "abbrev": "^1.0.4" - } -} - -` - -exports[`smoke-tests/index.js TAP npm uninstall > should have expected uninstall reify output 1`] = ` - -removed 1 package - -` - -exports[`smoke-tests/index.js TAP npm update dep > should have expected update lockfile result 1`] = ` -{ - "name": "project", - "version": "1.0.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "version": "1.0.0", - "license": "ISC", - "dependencies": { - "abbrev": "^1.0.4" - }, - "devDependencies": { - "promise-all-reject-late": "^1.0.1" - } - }, - "node_modules/abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" - }, - "node_modules/promise-all-reject-late": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz", - "integrity": "sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - } - }, - "dependencies": { - "abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" - }, - "promise-all-reject-late": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz", - "integrity": "sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==", - "dev": true - } - } -} - -` - -exports[`smoke-tests/index.js TAP npm update dep > should have expected update package.json result 1`] = ` -{ - "name": "project", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo /"Error: no test specified/" && exit 1", - "hello": "echo Hello" - }, - "keywords": [], - "author": "", - "license": "ISC", - "dependencies": { - "abbrev": "^1.0.4" - }, - "devDependencies": { - "promise-all-reject-late": "^1.0.1" - } -} - -` - -exports[`smoke-tests/index.js TAP npm update dep > should have expected update reify output 1`] = ` - -changed 1 package - -1 package is looking for funding - run \`npm fund\` for details - -` - -exports[`smoke-tests/index.js TAP npm view > should have expected view output 1`] = ` - -abbrev@1.0.4 | MIT | deps: none | versions: 8 -Like ruby's abbrev module, but in js -https://github.com/isaacs/abbrev-js#readme - -dist -.tarball: https://registry.npmjs.org/abbrev/-/abbrev-1.0.4.tgz -.shasum: bd55ae5e413ba1722ee4caba1f6ea10414a59ecd - -maintainers: -- nlf <quitlahok@gmail.com> -- ruyadorno <ruyadorno@hotmail.com> -- darcyclarke <darcy@darcyclarke.me> -- adam_baldwin <evilpacket@gmail.com> -- isaacs <i@izs.me> - -dist-tags: -latest: 1.1.1 - -published over a year ago by isaacs <i@izs.me> - -` diff --git a/tap-snapshots/smoke-tests/index.js.test.cjs b/tap-snapshots/smoke-tests/index.js.test.cjs new file mode 100644 index 000000000..89c0cb20b --- /dev/null +++ b/tap-snapshots/smoke-tests/index.js.test.cjs @@ -0,0 +1,686 @@ +/* IMPORTANT + * This snapshot file is auto-generated, but designed for humans. + * It should be checked into source control and tracked carefully. + * Re-generate by setting TAP_SNAPSHOT=1 and running tests. + * Make sure to inspect the output below. Do not ignore changes! + */ +'use strict' +exports[`smoke-tests/index.js TAP npm (no args) > should have expected no args output 1`] = ` +npm + +Usage: + +npm install install all the dependencies in your project +npm install add the dependency to your project +npm test run this project's tests +npm run run the script named +npm -h quick help on +npm -l display usage info for all commands +npm help search for help on +npm help npm more involved overview + +All commands: + + access, adduser, audit, bin, bugs, cache, ci, completion, + config, dedupe, deprecate, diff, dist-tag, docs, doctor, + edit, exec, explain, explore, find-dupes, fund, get, help, + hook, init, install, install-ci-test, install-test, link, + ll, login, logout, ls, org, outdated, owner, pack, ping, + prefix, profile, prune, publish, rebuild, repo, restart, + root, run-script, search, set, set-script, shrinkwrap, star, + stars, start, stop, team, test, token, uninstall, unpublish, + unstar, update, version, view, whoami + +Specify configs in the ini-formatted file: + {CWD}/smoke-tests/tap-testdir-index/.npmrc +or on the command line via: npm --key=value + +More configuration info: npm help config +Configuration fields: npm help 7 config + +npm {CWD} + +` + +exports[`smoke-tests/index.js TAP npm diff > should have expected diff output 1`] = ` +diff --git a/package.json b/package.json +index v1.0.4..v1.1.1 100644 +--- a/package.json ++++ b/package.json +@@ -1,15 +1,21 @@ + { + "name": "abbrev", +- "version": "1.0.4", ++ "version": "1.1.1", + "description": "Like ruby's abbrev module, but in js", + "author": "Isaac Z. Schlueter ", +- "main": "./lib/abbrev.js", ++ "main": "abbrev.js", + "scripts": { +- "test": "node lib/abbrev.js" ++ "test": "tap test.js --100", ++ "preversion": "npm test", ++ "postversion": "npm publish", ++ "postpublish": "git push origin --all; git push origin --tags" + }, + "repository": "http://github.com/isaacs/abbrev-js", +- "license": { +- "type": "MIT", +- "url": "https://github.com/isaacs/abbrev-js/raw/master/LICENSE" +- } ++ "license": "ISC", ++ "devDependencies": { ++ "tap": "^10.1" ++ }, ++ "files": [ ++ "abbrev.js" ++ ] + } +diff --git a/LICENSE b/LICENSE +index v1.0.4..v1.1.1 100644 +--- a/LICENSE ++++ b/LICENSE +@@ -1,4 +1,27 @@ +-Copyright 2009, 2010, 2011 Isaac Z. Schlueter. ++This software is dual-licensed under the ISC and MIT licenses. ++You may use this software under EITHER of the following licenses. ++ ++---------- ++ ++The ISC License ++ ++Copyright (c) Isaac Z. Schlueter and Contributors ++ ++Permission to use, copy, modify, and/or distribute this software for any ++purpose with or without fee is hereby granted, provided that the above ++copyright notice and this permission notice appear in all copies. ++ ++THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES ++WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF ++MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ++ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ++WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ++ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR ++IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ++ ++---------- ++ ++Copyright Isaac Z. Schlueter and Contributors + All rights reserved. + + Permission is hereby granted, free of charge, to any person +diff --git a/lib/abbrev.js b/lib/abbrev.js +deleted file mode 100644 +index v1.0.4..v1.1.1 +--- a/lib/abbrev.js ++++ b/lib/abbrev.js +@@ -1,111 +0,0 @@ +- +-module.exports = exports = abbrev.abbrev = abbrev +- +-abbrev.monkeyPatch = monkeyPatch +- +-function monkeyPatch () { +- Object.defineProperty(Array.prototype, 'abbrev', { +- value: function () { return abbrev(this) }, +- enumerable: false, configurable: true, writable: true +- }) +- +- Object.defineProperty(Object.prototype, 'abbrev', { +- value: function () { return abbrev(Object.keys(this)) }, +- enumerable: false, configurable: true, writable: true +- }) +-} +- +-function abbrev (list) { +- if (arguments.length !== 1 || !Array.isArray(list)) { +- list = Array.prototype.slice.call(arguments, 0) +- } +- for (var i = 0, l = list.length, args = [] ; i < l ; i ++) { +- args[i] = typeof list[i] === "string" ? list[i] : String(list[i]) +- } +- +- // sort them lexicographically, so that they're next to their nearest kin +- args = args.sort(lexSort) +- +- // walk through each, seeing how much it has in common with the next and previous +- var abbrevs = {} +- , prev = "" +- for (var i = 0, l = args.length ; i < l ; i ++) { +- var current = args[i] +- , next = args[i + 1] || "" +- , nextMatches = true +- , prevMatches = true +- if (current === next) continue +- for (var j = 0, cl = current.length ; j < cl ; j ++) { +- var curChar = current.charAt(j) +- nextMatches = nextMatches && curChar === next.charAt(j) +- prevMatches = prevMatches && curChar === prev.charAt(j) +- if (!nextMatches && !prevMatches) { +- j ++ +- break +- } +- } +- prev = current +- if (j === cl) { +- abbrevs[current] = current +- continue +- } +- for (var a = current.substr(0, j) ; j <= cl ; j ++) { +- abbrevs[a] = current +- a += current.charAt(j) +- } +- } +- return abbrevs +-} +- +-function lexSort (a, b) { +- return a === b ? 0 : a > b ? 1 : -1 +-} +- +- +-// tests +-if (module === require.main) { +- +-var assert = require("assert") +-var util = require("util") +- +-console.log("running tests") +-function test (list, expect) { +- var actual = abbrev(list) +- assert.deepEqual(actual, expect, +- "abbrev("+util.inspect(list)+") === " + util.inspect(expect) + "/n"+ +- "actual: "+util.inspect(actual)) +- actual = abbrev.apply(exports, list) +- assert.deepEqual(abbrev.apply(exports, list), expect, +- "abbrev("+list.map(JSON.stringify).join(",")+") === " + util.inspect(expect) + "/n"+ +- "actual: "+util.inspect(actual)) +-} +- +-test([ "ruby", "ruby", "rules", "rules", "rules" ], +-{ rub: 'ruby' +-, ruby: 'ruby' +-, rul: 'rules' +-, rule: 'rules' +-, rules: 'rules' +-}) +-test(["fool", "foom", "pool", "pope"], +-{ fool: 'fool' +-, foom: 'foom' +-, poo: 'pool' +-, pool: 'pool' +-, pop: 'pope' +-, pope: 'pope' +-}) +-test(["a", "ab", "abc", "abcd", "abcde", "acde"], +-{ a: 'a' +-, ab: 'ab' +-, abc: 'abc' +-, abcd: 'abcd' +-, abcde: 'abcde' +-, ac: 'acde' +-, acd: 'acde' +-, acde: 'acde' +-}) +- +-console.log("pass") +- +-} +/ No newline at end of file +diff --git a/abbrev.js b/abbrev.js +new file mode 100644 +index v1.0.4..v1.1.1 +--- a/abbrev.js ++++ b/abbrev.js +@@ -0,0 +1,61 @@ ++module.exports = exports = abbrev.abbrev = abbrev ++ ++abbrev.monkeyPatch = monkeyPatch ++ ++function monkeyPatch () { ++ Object.defineProperty(Array.prototype, 'abbrev', { ++ value: function () { return abbrev(this) }, ++ enumerable: false, configurable: true, writable: true ++ }) ++ ++ Object.defineProperty(Object.prototype, 'abbrev', { ++ value: function () { return abbrev(Object.keys(this)) }, ++ enumerable: false, configurable: true, writable: true ++ }) ++} ++ ++function abbrev (list) { ++ if (arguments.length !== 1 || !Array.isArray(list)) { ++ list = Array.prototype.slice.call(arguments, 0) ++ } ++ for (var i = 0, l = list.length, args = [] ; i < l ; i ++) { ++ args[i] = typeof list[i] === "string" ? list[i] : String(list[i]) ++ } ++ ++ // sort them lexicographically, so that they're next to their nearest kin ++ args = args.sort(lexSort) ++ ++ // walk through each, seeing how much it has in common with the next and previous ++ var abbrevs = {} ++ , prev = "" ++ for (var i = 0, l = args.length ; i < l ; i ++) { ++ var current = args[i] ++ , next = args[i + 1] || "" ++ , nextMatches = true ++ , prevMatches = true ++ if (current === next) continue ++ for (var j = 0, cl = current.length ; j < cl ; j ++) { ++ var curChar = current.charAt(j) ++ nextMatches = nextMatches && curChar === next.charAt(j) ++ prevMatches = prevMatches && curChar === prev.charAt(j) ++ if (!nextMatches && !prevMatches) { ++ j ++ ++ break ++ } ++ } ++ prev = current ++ if (j === cl) { ++ abbrevs[current] = current ++ continue ++ } ++ for (var a = current.substr(0, j) ; j <= cl ; j ++) { ++ abbrevs[a] = current ++ a += current.charAt(j) ++ } ++ } ++ return abbrevs ++} ++ ++function lexSort (a, b) { ++ return a === b ? 0 : a > b ? 1 : -1 ++} + +` + +exports[`smoke-tests/index.js TAP npm explain > should have expected explain output 1`] = ` +abbrev@1.0.4 +node_modules/abbrev + abbrev@"^1.0.4" from the root project + +` + +exports[`smoke-tests/index.js TAP npm fund > should have expected fund output 1`] = ` +project@1.0.0 +\`-- https://github.com/sponsors/isaacs + \`-- promise-all-reject-late@1.0.1 + + +` + +exports[`smoke-tests/index.js TAP npm init > should have successful npm init result 1`] = ` +Wrote to {CWD}/smoke-tests/tap-testdir-index/project/package.json: + +{ + "name": "project", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo /"Error: no test specified/" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC" +} + + + +` + +exports[`smoke-tests/index.js TAP npm install dev dep > should have expected dev dep added lockfile result 1`] = ` +{ + "name": "project", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "abbrev": "^1.0.4" + }, + "devDependencies": { + "promise-all-reject-late": "^1.0.1" + } + }, + "node_modules/abbrev": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.4.tgz", + "integrity": "sha1-vVWuXkE7oXIu5Mq6H26hBBSlns0=" + }, + "node_modules/promise-all-reject-late": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz", + "integrity": "sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + } + }, + "dependencies": { + "abbrev": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.4.tgz", + "integrity": "sha1-vVWuXkE7oXIu5Mq6H26hBBSlns0=" + }, + "promise-all-reject-late": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz", + "integrity": "sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==", + "dev": true + } + } +} + +` + +exports[`smoke-tests/index.js TAP npm install dev dep > should have expected dev dep added package.json result 1`] = ` +{ + "name": "project", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo /"Error: no test specified/" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "abbrev": "^1.0.4" + }, + "devDependencies": { + "promise-all-reject-late": "^1.0.1" + } +} + +` + +exports[`smoke-tests/index.js TAP npm install dev dep > should have expected dev dep added reify output 1`] = ` + +added 1 package + +1 package is looking for funding + run \`npm fund\` for details + +` + +exports[`smoke-tests/index.js TAP npm install prodDep@version > should have expected install reify output 1`] = ` + +added 1 package + +` + +exports[`smoke-tests/index.js TAP npm install prodDep@version > should have expected lockfile result 1`] = ` +{ + "name": "project", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "abbrev": "^1.0.4" + } + }, + "node_modules/abbrev": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.4.tgz", + "integrity": "sha1-vVWuXkE7oXIu5Mq6H26hBBSlns0=" + } + }, + "dependencies": { + "abbrev": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.4.tgz", + "integrity": "sha1-vVWuXkE7oXIu5Mq6H26hBBSlns0=" + } + } +} + +` + +exports[`smoke-tests/index.js TAP npm install prodDep@version > should have expected package.json result 1`] = ` +{ + "name": "project", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo /"Error: no test specified/" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "abbrev": "^1.0.4" + } +} + +` + +exports[`smoke-tests/index.js TAP npm ls > should have expected ls output 1`] = ` +project@1.0.0 {CWD}/smoke-tests/tap-testdir-index/project ++-- abbrev@1.0.4 +\`-- promise-all-reject-late@1.0.1 + + +` + +exports[`smoke-tests/index.js TAP npm outdated > should have expected outdated output 1`] = ` +Package Current Wanted Latest Location Depended by +abbrev 1.0.4 1.1.1 1.1.1 node_modules/abbrev project + +` + +exports[`smoke-tests/index.js TAP npm prefix > should have expected prefix output 1`] = ` +{CWD}/smoke-tests/tap-testdir-index/project + +` + +exports[`smoke-tests/index.js TAP npm run-script > should have expected run-script output 1`] = ` + +> project@1.0.0 hello +> echo Hello + +Hello + +` + +exports[`smoke-tests/index.js TAP npm set-script > should have expected script added package.json result 1`] = ` +{ + "name": "project", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo /"Error: no test specified/" && exit 1", + "hello": "echo Hello" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "abbrev": "^1.0.4" + }, + "devDependencies": { + "promise-all-reject-late": "^1.0.1" + } +} + +` + +exports[`smoke-tests/index.js TAP npm set-script > should have expected set-script output 1`] = ` + +` + +exports[`smoke-tests/index.js TAP npm uninstall > should have expected uninstall lockfile result 1`] = ` +{ + "name": "project", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "abbrev": "^1.0.4" + } + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" + } + }, + "dependencies": { + "abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" + } + } +} + +` + +exports[`smoke-tests/index.js TAP npm uninstall > should have expected uninstall package.json result 1`] = ` +{ + "name": "project", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo /"Error: no test specified/" && exit 1", + "hello": "echo Hello" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "abbrev": "^1.0.4" + } +} + +` + +exports[`smoke-tests/index.js TAP npm uninstall > should have expected uninstall reify output 1`] = ` + +removed 1 package + +` + +exports[`smoke-tests/index.js TAP npm update dep > should have expected update lockfile result 1`] = ` +{ + "name": "project", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "abbrev": "^1.0.4" + }, + "devDependencies": { + "promise-all-reject-late": "^1.0.1" + } + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" + }, + "node_modules/promise-all-reject-late": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz", + "integrity": "sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + } + }, + "dependencies": { + "abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" + }, + "promise-all-reject-late": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz", + "integrity": "sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==", + "dev": true + } + } +} + +` + +exports[`smoke-tests/index.js TAP npm update dep > should have expected update package.json result 1`] = ` +{ + "name": "project", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo /"Error: no test specified/" && exit 1", + "hello": "echo Hello" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "abbrev": "^1.0.4" + }, + "devDependencies": { + "promise-all-reject-late": "^1.0.1" + } +} + +` + +exports[`smoke-tests/index.js TAP npm update dep > should have expected update reify output 1`] = ` + +changed 1 package + +1 package is looking for funding + run \`npm fund\` for details + +` + +exports[`smoke-tests/index.js TAP npm view > should have expected view output 1`] = ` + +abbrev@1.0.4 | MIT | deps: none | versions: 8 +Like ruby's abbrev module, but in js +https://github.com/isaacs/abbrev-js#readme + +dist +.tarball: https://registry.npmjs.org/abbrev/-/abbrev-1.0.4.tgz +.shasum: bd55ae5e413ba1722ee4caba1f6ea10414a59ecd + +maintainers: +- nlf <quitlahok@gmail.com> +- ruyadorno <ruyadorno@hotmail.com> +- darcyclarke <darcy@darcyclarke.me> +- adam_baldwin <evilpacket@gmail.com> +- isaacs <i@izs.me> + +dist-tags: +latest: 1.1.1 + +published over a year ago by isaacs <i@izs.me> + +` diff --git a/tap-snapshots/test-lib-config.js-TAP.test.js b/tap-snapshots/test-lib-config.js-TAP.test.js deleted file mode 100644 index d62969145..000000000 --- a/tap-snapshots/test-lib-config.js-TAP.test.js +++ /dev/null @@ -1,150 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/config.js TAP config edit --global > should write global config file 1`] = ` -;;;; -; npm globalconfig file: /etc/npmrc -; this is a simple ini-formatted file -; lines that start with semi-colons are comments -; run \`npm help 7 config\` for documentation of the various options -; -; Configs like \`@scope:registry\` map a scope to a given registry url. -; -; Configs like \`///:_authToken\` are auth that is restricted -; to the registry host specified. - -init.author.name=Foo - -;;;; -; all available options shown below with default values -;;;; - - -; init-author-name= -; init-version=1.0.0 -; init.author.name= -; init.version=1.0.0 - -` - -exports[`test/lib/config.js TAP config edit > should write config file 1`] = ` -;;;; -; npm userconfig file: ~/.npmrc -; this is a simple ini-formatted file -; lines that start with semi-colons are comments -; run \`npm help 7 config\` for documentation of the various options -; -; Configs like \`@scope:registry\` map a scope to a given registry url. -; -; Configs like \`///:_authToken\` are auth that is restricted -; to the registry host specified. - -//registry.npmjs.org/:_authToken=0000000 -init.author.name=Foo -sign-git-commit=true - -;;;; -; all available options shown below with default values -;;;; - - -; init-author-name= -; init-version=1.0.0 -; init.author.name= -; init.version=1.0.0 - -` - -exports[`test/lib/config.js TAP config edit > should write config file 2`] = ` -;;;; -; npm userconfig file: ~/.npmrc -; this is a simple ini-formatted file -; lines that start with semi-colons are comments -; run \`npm help 7 config\` for documentation of the various options -; -; Configs like \`@scope:registry\` map a scope to a given registry url. -; -; Configs like \`///:_authToken\` are auth that is restricted -; to the registry host specified. - - - -;;;; -; all available options shown below with default values -;;;; - - -; init-author-name= -; init-version=1.0.0 -; init.author.name= -; init.version=1.0.0 - -` - -exports[`test/lib/config.js TAP config get no args > should list configs on config get no args 1`] = ` -; "cli" config from command line options - -editor = "vi" -global = false -json = false -long = false - -; node bin location = /path/to/node -; cwd = {CWD} -; HOME = ~/ -; Run \`npm config ls -l\` to show all defaults. -` - -exports[`test/lib/config.js TAP config list --long > should list all configs 1`] = ` -; "default" config from default values - -init-author-name = "" -init-version = "1.0.0" -init.author.name = "" -init.version = "1.0.0" - -; "cli" config from command line options - -editor = "vi" -global = false -json = false -long = true -` - -exports[`test/lib/config.js TAP config list > should list configs 1`] = ` -; "cli" config from command line options - -editor = "vi" -global = false -json = false -long = false - -; node bin location = /path/to/node -; cwd = {CWD} -; HOME = ~/ -; Run \`npm config ls -l\` to show all defaults. -` - -exports[`test/lib/config.js TAP config list overrides > should list overridden configs 1`] = ` -; "cli" config from command line options - -editor = "vi" -global = false -init.author.name = "Bar" -json = false -long = false - -; "user" config from ~/.npmrc - -; //private-reg.npmjs.org/:_authThoken = (protected) ; overridden by cli -; init.author.name = "Foo" ; overridden by cli - -; node bin location = /path/to/node -; cwd = {CWD} -; HOME = ~/ -; Run \`npm config ls -l\` to show all defaults. -` diff --git a/tap-snapshots/test-lib-dist-tag.js-TAP.test.js b/tap-snapshots/test-lib-dist-tag.js-TAP.test.js deleted file mode 100644 index ea25b568b..000000000 --- a/tap-snapshots/test-lib-dist-tag.js-TAP.test.js +++ /dev/null @@ -1,256 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/dist-tag.js TAP add missing args > should exit usage error message 1`] = ` -npm dist-tag - -Modify package distribution tags - -Usage: -npm dist-tag add @ [] -npm dist-tag rm -npm dist-tag ls [] - -Options: -[-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] - -alias: dist-tags - -Run "npm help dist-tag" for more info -` - -exports[`test/lib/dist-tag.js TAP add missing pkg name > should exit usage error message 1`] = ` -npm dist-tag - -Modify package distribution tags - -Usage: -npm dist-tag add @ [] -npm dist-tag rm -npm dist-tag ls [] - -Options: -[-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] - -alias: dist-tags - -Run "npm help dist-tag" for more info -` - -exports[`test/lib/dist-tag.js TAP add new tag > should return success msg 1`] = ` -+c: @scoped/another@7.7.7 -` - -exports[`test/lib/dist-tag.js TAP add using valid semver range as name > should return success msg 1`] = ` -dist-tag add 1.0.0 to @scoped/another@7.7.7 - -` - -exports[`test/lib/dist-tag.js TAP borked cmd usage > should show usage error 1`] = ` -npm dist-tag - -Modify package distribution tags - -Usage: -npm dist-tag add @ [] -npm dist-tag rm -npm dist-tag ls [] - -Options: -[-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] - -alias: dist-tags - -Run "npm help dist-tag" for more info -` - -exports[`test/lib/dist-tag.js TAP ls in current package > should list available tags for current package 1`] = ` -a: 0.0.1 -b: 0.5.0 -latest: 1.0.0 -` - -exports[`test/lib/dist-tag.js TAP ls on missing name in current package > should throw usage error message 1`] = ` -npm dist-tag - -Modify package distribution tags - -Usage: -npm dist-tag add @ [] -npm dist-tag rm -npm dist-tag ls [] - -Options: -[-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] - -alias: dist-tags - -Run "npm help dist-tag" for more info -` - -exports[`test/lib/dist-tag.js TAP ls on missing package > should log no dist-tag found msg 1`] = ` -dist-tag ls Couldn't get dist-tag data for foo@latest - -` - -exports[`test/lib/dist-tag.js TAP ls on missing package > should throw error message 1`] = ` -Error: No dist-tags found for foo -` - -exports[`test/lib/dist-tag.js TAP ls on named package > should list tags for the specified package 1`] = ` -a: 0.0.2 -b: 0.6.0 -latest: 2.0.0 -` - -exports[`test/lib/dist-tag.js TAP no args in current package > should default to listing available tags for current package 1`] = ` -a: 0.0.1 -b: 0.5.0 -latest: 1.0.0 -` - -exports[`test/lib/dist-tag.js TAP only named package arg > should default to listing tags for the specified package 1`] = ` -a: 0.0.2 -b: 0.6.0 -latest: 2.0.0 -` - -exports[`test/lib/dist-tag.js TAP remove existing tag > should log remove info 1`] = ` -dist-tag del c from @scoped/another - -` - -exports[`test/lib/dist-tag.js TAP remove existing tag > should return success msg 1`] = ` --c: @scoped/another@7.7.7 -` - -exports[`test/lib/dist-tag.js TAP remove missing pkg name > should exit usage error message 1`] = ` -npm dist-tag - -Modify package distribution tags - -Usage: -npm dist-tag add @ [] -npm dist-tag rm -npm dist-tag ls [] - -Options: -[-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] - -alias: dist-tags - -Run "npm help dist-tag" for more info -` - -exports[`test/lib/dist-tag.js TAP remove non-existing tag > should log error msg 1`] = ` -dist-tag del nonexistent from @scoped/another -dist-tag del nonexistent is not a dist-tag on @scoped/another - -` - -exports[`test/lib/dist-tag.js TAP set existing version > should log warn msg 1`] = ` -dist-tag add b to @scoped/another@0.6.0 -dist-tag add b is already set to version 0.6.0 - -` - -exports[`test/lib/dist-tag.js TAP workspaces no args > printed the expected output 1`] = ` -workspace-a: -latest-a: 1.0.0 -latest: 1.0.0 -workspace-b: -latest-b: 2.0.0 -latest: 2.0.0 -workspace-c: -latest-c: 3.0.0 -latest: 3.0.0 -` - -exports[`test/lib/dist-tag.js TAP workspaces no args, one failing workspace sets exitCode to 1 > printed the expected output 1`] = ` -workspace-a: -latest-a: 1.0.0 -latest: 1.0.0 -workspace-b: -latest-b: 2.0.0 -latest: 2.0.0 -workspace-c: -latest-c: 3.0.0 -latest: 3.0.0 -workspace-d: -` - -exports[`test/lib/dist-tag.js TAP workspaces no args, one workspace > printed the expected output 1`] = ` -workspace-a: -latest-a: 1.0.0 -latest: 1.0.0 -` - -exports[`test/lib/dist-tag.js TAP workspaces one arg -- . > printed the expected output 1`] = ` -workspace-a: -latest-a: 1.0.0 -latest: 1.0.0 -workspace-b: -latest-b: 2.0.0 -latest: 2.0.0 -workspace-c: -latest-c: 3.0.0 -latest: 3.0.0 -` - -exports[`test/lib/dist-tag.js TAP workspaces one arg -- .@1, ignores version spec > printed the expected output 1`] = ` -workspace-a: -latest-a: 1.0.0 -latest: 1.0.0 -workspace-b: -latest-b: 2.0.0 -latest: 2.0.0 -workspace-c: -latest-c: 3.0.0 -latest: 3.0.0 -` - -exports[`test/lib/dist-tag.js TAP workspaces one arg -- list > printed the expected output 1`] = ` -workspace-a: -latest-a: 1.0.0 -latest: 1.0.0 -workspace-b: -latest-b: 2.0.0 -latest: 2.0.0 -workspace-c: -latest-c: 3.0.0 -latest: 3.0.0 -` - -exports[`test/lib/dist-tag.js TAP workspaces two args -- list, . > printed the expected output 1`] = ` -workspace-a: -latest-a: 1.0.0 -latest: 1.0.0 -workspace-b: -latest-b: 2.0.0 -latest: 2.0.0 -workspace-c: -latest-c: 3.0.0 -latest: 3.0.0 -` - -exports[`test/lib/dist-tag.js TAP workspaces two args -- list, .@1, ignores version spec > printed the expected output 1`] = ` -workspace-a: -latest-a: 1.0.0 -latest: 1.0.0 -workspace-b: -latest-b: 2.0.0 -latest: 2.0.0 -workspace-c: -latest-c: 3.0.0 -latest: 3.0.0 -` - -exports[`test/lib/dist-tag.js TAP workspaces two args -- list, @scoped/pkg, logs a warning and ignores workspaces > printed the expected output 1`] = ` -a: 0.0.1 -b: 0.5.0 -latest: 1.0.0 -` diff --git a/tap-snapshots/test-lib-fund.js-TAP.test.js b/tap-snapshots/test-lib-fund.js-TAP.test.js deleted file mode 100644 index 7ad86ebee..000000000 --- a/tap-snapshots/test-lib-fund.js-TAP.test.js +++ /dev/null @@ -1,94 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/fund.js TAP fund a package with type and multiple sources > should print prompt select message 1`] = ` -1: Foo funding available at the following URL: http://example.com/foo -2: Lorem funding available at the following URL: http://example.com/foo-lorem -Run \`npm fund [<@scope>/] --which=1\`, for example, to open the first funding URL listed in that package - -` - -exports[`test/lib/fund.js TAP fund colors > should print output with color info 1`] = ` -test-fund-colors@1.0.0 -+-- http://example.com/a -| \`-- a@1.0.0 -\`-- http://example.com/b - | \`-- b@1.0.0, c@1.0.0 - +-- http://example.com/d - | \`-- d@1.0.0 - \`-- http://example.com/e - \`-- e@1.0.0 - - -` - -exports[`test/lib/fund.js TAP fund containing multi-level nested deps with no funding > should omit dependencies with no funding declared 1`] = ` -nested-no-funding-packages@1.0.0 -+-- https://example.com/lorem -| \`-- lorem@1.0.0 -\`-- http://example.com/donate - \`-- bar@1.0.0 - - -` - -exports[`test/lib/fund.js TAP fund in which same maintainer owns all its deps > should print stack packages together 1`] = ` -http://example.com/donate - \`-- maintainer-owns-all-deps@1.0.0, dep-foo@1.0.0, dep-sub-foo@1.0.0, dep-bar@1.0.0 - - -` - -exports[`test/lib/fund.js TAP fund pkg missing version number > should print name only 1`] = ` -http://example.com/foo - \`-- foo - - -` - -exports[`test/lib/fund.js TAP fund using nested packages with multiple sources > should prompt with all available URLs 1`] = ` -1: Funding available at the following URL: https://one.example.com -2: Funding available at the following URL: https://two.example.com -Run \`npm fund [<@scope>/] --which=1\`, for example, to open the first funding URL listed in that package - -` - -exports[`test/lib/fund.js TAP fund using nested packages with multiple sources, with a source number > should open the numbered URL 1`] = ` -Funding available at the following URL: - https://one.example.com -` - -exports[`test/lib/fund.js TAP fund using package argument > should open funding url 1`] = ` -individual funding available at the following URL: - http://example.com/donate -` - -exports[`test/lib/fund.js TAP fund using pkg name while having conflicting versions > should open greatest version 1`] = ` -Funding available at the following URL: - http://example.com/2 -` - -exports[`test/lib/fund.js TAP fund using string shorthand > should open string-only url 1`] = ` -Funding available at the following URL: - https://example.com/sponsor -` - -exports[`test/lib/fund.js TAP fund with no package containing funding > should print empty funding info 1`] = ` -no-funding-package@0.0.0 - - -` - -exports[`test/lib/fund.js TAP sub dep with fund info and a parent with no funding info > should nest sub dep as child of root 1`] = ` -test-multiple-funding-sources@1.0.0 -+-- http://example.com/b -| \`-- b@1.0.0 -\`-- http://example.com/c - \`-- c@1.0.0 - - -` diff --git a/tap-snapshots/test-lib-init.js-TAP.test.js b/tap-snapshots/test-lib-init.js-TAP.test.js deleted file mode 100644 index 25015aab6..000000000 --- a/tap-snapshots/test-lib-init.js-TAP.test.js +++ /dev/null @@ -1,19 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/init.js TAP classic npm init no args > should print helper info 1`] = ` -This utility will walk you through creating a package.json file. -It only covers the most common items, and tries to guess sensible defaults. - -See \`npm help init\` for definitive documentation on these fields -and exactly what they do. - -Use \`npm install \` afterwards to install a package and -save it as a dependency in the package.json file. - -Press ^C at any time to quit. -` diff --git a/tap-snapshots/test-lib-link.js-TAP.test.js b/tap-snapshots/test-lib-link.js-TAP.test.js deleted file mode 100644 index ab1d5c6b8..000000000 --- a/tap-snapshots/test-lib-link.js-TAP.test.js +++ /dev/null @@ -1,30 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/link.js TAP link global linked pkg to local nm when using args > should create a local symlink to global pkg 1`] = ` -{CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/my-project/node_modules/@myscope/bar -> {CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/global-prefix/lib/node_modules/@myscope/bar -{CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/my-project/node_modules/@myscope/linked -> {CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/scoped-linked -{CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/my-project/node_modules/a -> {CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/global-prefix/lib/node_modules/a -{CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/my-project/node_modules/link-me-too -> {CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/link-me-too -{CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/my-project/node_modules/test-pkg-link -> {CWD}/test/lib/link-link-global-linked-pkg-to-local-nm-when-using-args/test-pkg-link - -` - -exports[`test/lib/link.js TAP link pkg already in global space > should create a local symlink to global pkg 1`] = ` -{CWD}/test/lib/link-link-pkg-already-in-global-space/my-project/node_modules/@myscope/linked -> {CWD}/test/lib/link-link-pkg-already-in-global-space/scoped-linked - -` - -exports[`test/lib/link.js TAP link pkg already in global space when prefix is a symlink > should create a local symlink to global pkg 1`] = ` -{CWD}/test/lib/link-link-pkg-already-in-global-space-when-prefix-is-a-symlink/my-project/node_modules/@myscope/linked -> {CWD}/test/lib/link-link-pkg-already-in-global-space-when-prefix-is-a-symlink/scoped-linked - -` - -exports[`test/lib/link.js TAP link to globalDir when in current working dir of pkg and no args > should create a global link to current pkg 1`] = ` -{CWD}/test/lib/link-link-to-globalDir-when-in-current-working-dir-of-pkg-and-no-args/global-prefix/lib/node_modules/test-pkg-link -> {CWD}/test/lib/link-link-to-globalDir-when-in-current-working-dir-of-pkg-and-no-args/test-pkg-link - -` diff --git a/tap-snapshots/test-lib-ls.js-TAP.test.js b/tap-snapshots/test-lib-ls.js-TAP.test.js deleted file mode 100644 index 120a65baf..000000000 --- a/tap-snapshots/test-lib-ls.js-TAP.test.js +++ /dev/null @@ -1,602 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/ls.js TAP ls --depth=0 > should output tree containing only top-level dependencies 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls--depth-0 -+-- foo@1.0.0 -\`-- lorem@1.0.0 - -` - -exports[`test/lib/ls.js TAP ls --depth=1 > should output tree containing top-level deps and their deps only 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls--depth-1 -+-- a@1.0.0 -| \`-- b@1.0.0 -\`-- e@1.0.0 - -` - -exports[`test/lib/ls.js TAP ls --dev > should output tree containing dev deps 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls--dev -\`-- dev-dep@1.0.0 - \`-- foo@1.0.0 - \`-- bar@1.0.0 - -` - -exports[`test/lib/ls.js TAP ls --link > should output tree containing linked deps 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls--link -\`-- linked-dep@1.0.0 -> {CWD}/ls-ls--link/linked-dep - -` - -exports[`test/lib/ls.js TAP ls --long --depth=0 > should output tree containing top-level deps with descriptions 1`] = ` -test-npm-ls@1.0.0 -| {CWD}/ls-ls--long-depth-0 -| -+-- dev-dep@1.0.0 -| A DEV dep kind of dep -+-- lorem@1.0.0 -| -+-- optional-dep@1.0.0 -| Maybe a dep? -+-- peer-dep@1.0.0 -| Peer-dep description here -\`-- prod-dep@1.0.0 - A PROD dep kind of dep - -` - -exports[`test/lib/ls.js TAP ls --long > should output tree info with descriptions 1`] = ` -test-npm-ls@1.0.0 -| {CWD}/ls-ls--long -| -+-- dev-dep@1.0.0 -| | A DEV dep kind of dep -| \`-- foo@1.0.0 -| | -| \`-- bar@1.0.0 -| -+-- lorem@1.0.0 -| -+-- optional-dep@1.0.0 -| Maybe a dep? -+-- peer-dep@1.0.0 -| Peer-dep description here -\`-- prod-dep@1.0.0 - | A PROD dep kind of dep - \`-- bar@2.0.0 - A dep that bars - -` - -exports[`test/lib/ls.js TAP ls --only=development > should output tree containing only development deps 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls--only-development -\`-- dev-dep@1.0.0 - \`-- foo@1.0.0 - \`-- bar@1.0.0 - -` - -exports[`test/lib/ls.js TAP ls --only=prod > should output tree containing only prod deps 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls--only-prod -+-- lorem@1.0.0 -+-- optional-dep@1.0.0 -\`-- prod-dep@1.0.0 - \`-- bar@2.0.0 - -` - -exports[`test/lib/ls.js TAP ls --parseable --depth=0 > should output tree containing only top-level dependencies 1`] = ` -{CWD}/ls-ls-parseable--depth-0 -{CWD}/ls-ls-parseable--depth-0/node_modules/foo -{CWD}/ls-ls-parseable--depth-0/node_modules/lorem -` - -exports[`test/lib/ls.js TAP ls --parseable --depth=1 > should output parseable containing top-level deps and their deps only 1`] = ` -{CWD}/ls-ls-parseable--depth-1 -{CWD}/ls-ls-parseable--depth-1/node_modules/foo -{CWD}/ls-ls-parseable--depth-1/node_modules/lorem -{CWD}/ls-ls-parseable--depth-1/node_modules/bar -` - -exports[`test/lib/ls.js TAP ls --parseable --dev > should output tree containing dev deps 1`] = ` -{CWD}/ls-ls-parseable--dev -{CWD}/ls-ls-parseable--dev/node_modules/dev-dep -{CWD}/ls-ls-parseable--dev/node_modules/foo -{CWD}/ls-ls-parseable--dev/node_modules/bar -` - -exports[`test/lib/ls.js TAP ls --parseable --link > should output tree containing linked deps 1`] = ` -{CWD}/ls-ls-parseable--link -{CWD}/ls-ls-parseable--link/node_modules/linked-dep -` - -exports[`test/lib/ls.js TAP ls --parseable --long --depth=0 > should output tree containing top-level deps with descriptions 1`] = ` -{CWD}/ls-ls-parseable--long-depth-0:test-npm-ls@1.0.0 -{CWD}/ls-ls-parseable--long-depth-0/node_modules/dev-dep:dev-dep@1.0.0 -{CWD}/ls-ls-parseable--long-depth-0/node_modules/lorem:lorem@1.0.0 -{CWD}/ls-ls-parseable--long-depth-0/node_modules/optional-dep:optional-dep@1.0.0 -{CWD}/ls-ls-parseable--long-depth-0/node_modules/peer-dep:peer-dep@1.0.0 -{CWD}/ls-ls-parseable--long-depth-0/node_modules/prod-dep:prod-dep@1.0.0 -` - -exports[`test/lib/ls.js TAP ls --parseable --long > should output tree info with descriptions 1`] = ` -{CWD}/ls-ls-parseable--long:test-npm-ls@1.0.0 -{CWD}/ls-ls-parseable--long/node_modules/dev-dep:dev-dep@1.0.0 -{CWD}/ls-ls-parseable--long/node_modules/lorem:lorem@1.0.0 -{CWD}/ls-ls-parseable--long/node_modules/optional-dep:optional-dep@1.0.0 -{CWD}/ls-ls-parseable--long/node_modules/peer-dep:peer-dep@1.0.0 -{CWD}/ls-ls-parseable--long/node_modules/prod-dep:prod-dep@1.0.0 -{CWD}/ls-ls-parseable--long/node_modules/foo:foo@1.0.0 -{CWD}/ls-ls-parseable--long/node_modules/prod-dep/node_modules/bar:bar@2.0.0 -{CWD}/ls-ls-parseable--long/node_modules/bar:bar@1.0.0 -` - -exports[`test/lib/ls.js TAP ls --parseable --long missing/invalid/extraneous > should output parseable result containing EXTRANEOUS/INVALID labels 1`] = ` -{CWD}/ls-ls-parseable--long-missing-invalid-extraneous:test-npm-ls@1.0.0 -{CWD}/ls-ls-parseable--long-missing-invalid-extraneous/node_modules/foo:foo@1.0.0:INVALID -{CWD}/ls-ls-parseable--long-missing-invalid-extraneous/node_modules/lorem:lorem@1.0.0:EXTRANEOUS -{CWD}/ls-ls-parseable--long-missing-invalid-extraneous/node_modules/bar:bar@1.0.0 -` - -exports[`test/lib/ls.js TAP ls --parseable --long print symlink target location > should output parseable results with symlink targets 1`] = ` -{CWD}/ls-ls-parseable--long-print-symlink-target-location:test-npm-ls@1.0.0 -{CWD}/ls-ls-parseable--long-print-symlink-target-location/node_modules/dev-dep:dev-dep@1.0.0 -{CWD}/ls-ls-parseable--long-print-symlink-target-location/node_modules/linked-dep:linked-dep@1.0.0:{CWD}/ls-ls-parseable--long-print-symlink-target-location/linked-dep -{CWD}/ls-ls-parseable--long-print-symlink-target-location/node_modules/lorem:lorem@1.0.0 -{CWD}/ls-ls-parseable--long-print-symlink-target-location/node_modules/optional-dep:optional-dep@1.0.0 -{CWD}/ls-ls-parseable--long-print-symlink-target-location/node_modules/peer-dep:peer-dep@1.0.0 -{CWD}/ls-ls-parseable--long-print-symlink-target-location/node_modules/prod-dep:prod-dep@1.0.0 -{CWD}/ls-ls-parseable--long-print-symlink-target-location/node_modules/foo:foo@1.0.0 -{CWD}/ls-ls-parseable--long-print-symlink-target-location/node_modules/prod-dep/node_modules/bar:bar@2.0.0 -{CWD}/ls-ls-parseable--long-print-symlink-target-location/node_modules/bar:bar@1.0.0 -` - -exports[`test/lib/ls.js TAP ls --parseable --long with extraneous deps > should output long parseable output with extraneous info 1`] = ` -{CWD}/ls-ls-parseable--long-with-extraneous-deps:test-npm-ls@1.0.0 -{CWD}/ls-ls-parseable--long-with-extraneous-deps/node_modules/foo:foo@1.0.0 -{CWD}/ls-ls-parseable--long-with-extraneous-deps/node_modules/lorem:lorem@1.0.0:EXTRANEOUS -{CWD}/ls-ls-parseable--long-with-extraneous-deps/node_modules/bar:bar@1.0.0 -` - -exports[`test/lib/ls.js TAP ls --parseable --only=development > should output tree containing only development deps 1`] = ` -{CWD}/ls-ls-parseable--only-development -{CWD}/ls-ls-parseable--only-development/node_modules/dev-dep -{CWD}/ls-ls-parseable--only-development/node_modules/foo -{CWD}/ls-ls-parseable--only-development/node_modules/bar -` - -exports[`test/lib/ls.js TAP ls --parseable --only=prod > should output tree containing only prod deps 1`] = ` -{CWD}/ls-ls-parseable--only-prod -{CWD}/ls-ls-parseable--only-prod/node_modules/lorem -{CWD}/ls-ls-parseable--only-prod/node_modules/optional-dep -{CWD}/ls-ls-parseable--only-prod/node_modules/prod-dep -{CWD}/ls-ls-parseable--only-prod/node_modules/prod-dep/node_modules/bar -` - -exports[`test/lib/ls.js TAP ls --parseable --production > should output tree containing production deps 1`] = ` -{CWD}/ls-ls-parseable--production -{CWD}/ls-ls-parseable--production/node_modules/lorem -{CWD}/ls-ls-parseable--production/node_modules/optional-dep -{CWD}/ls-ls-parseable--production/node_modules/prod-dep -{CWD}/ls-ls-parseable--production/node_modules/prod-dep/node_modules/bar -` - -exports[`test/lib/ls.js TAP ls --parseable cycle deps > should print tree output omitting deduped ref 1`] = ` -{CWD}/ls-ls-parseable-cycle-deps -{CWD}/ls-ls-parseable-cycle-deps/node_modules/a -{CWD}/ls-ls-parseable-cycle-deps/node_modules/b -` - -exports[`test/lib/ls.js TAP ls --parseable default --depth value should be 0 > should output parseable output containing only top-level dependencies 1`] = ` -{CWD}/ls-ls-parseable-default-depth-value-should-be-0 -{CWD}/ls-ls-parseable-default-depth-value-should-be-0/node_modules/foo -{CWD}/ls-ls-parseable-default-depth-value-should-be-0/node_modules/lorem -` - -exports[`test/lib/ls.js TAP ls --parseable empty location > should print empty result 1`] = ` -{CWD}/ls-ls-parseable-empty-location -` - -exports[`test/lib/ls.js TAP ls --parseable extraneous deps > should output containing problems info 1`] = ` -{CWD}/ls-ls-parseable-extraneous-deps -{CWD}/ls-ls-parseable-extraneous-deps/node_modules/foo -{CWD}/ls-ls-parseable-extraneous-deps/node_modules/lorem -{CWD}/ls-ls-parseable-extraneous-deps/node_modules/bar -` - -exports[`test/lib/ls.js TAP ls --parseable from and resolved properties > should not be printed in tree output 1`] = ` -{CWD}/ls-ls-parseable-from-and-resolved-properties -{CWD}/ls-ls-parseable-from-and-resolved-properties/node_modules/simple-output -` - -exports[`test/lib/ls.js TAP ls --parseable global > should print parseable output for global deps 1`] = ` -{CWD}/ls-ls-parseable-global -{CWD}/ls-ls-parseable-global/node_modules/a -{CWD}/ls-ls-parseable-global/node_modules/b -{CWD}/ls-ls-parseable-global/node_modules/b/node_modules/c -` - -exports[`test/lib/ls.js TAP ls --parseable json read problems > should print empty result 1`] = ` -{CWD}/ls-ls-parseable-json-read-problems -` - -exports[`test/lib/ls.js TAP ls --parseable missing package.json > should log all extraneous deps on error msg 1`] = ` -extraneous: bar@1.0.0 {CWD}/ls-ls-parseable-missing-package-json/node_modules/bar -extraneous: foo@1.0.0 {CWD}/ls-ls-parseable-missing-package-json/node_modules/foo -extraneous: lorem@1.0.0 {CWD}/ls-ls-parseable-missing-package-json/node_modules/lorem -` - -exports[`test/lib/ls.js TAP ls --parseable missing package.json > should output parseable missing name/version of top-level package 1`] = ` -{CWD}/ls-ls-parseable-missing-package-json -{CWD}/ls-ls-parseable-missing-package-json/node_modules/bar -{CWD}/ls-ls-parseable-missing-package-json/node_modules/foo -{CWD}/ls-ls-parseable-missing-package-json/node_modules/lorem -` - -exports[`test/lib/ls.js TAP ls --parseable missing/invalid/extraneous > should output parseable containing top-level deps and their deps only 1`] = ` -{CWD}/ls-ls-parseable-missing-invalid-extraneous -{CWD}/ls-ls-parseable-missing-invalid-extraneous/node_modules/foo -{CWD}/ls-ls-parseable-missing-invalid-extraneous/node_modules/lorem -{CWD}/ls-ls-parseable-missing-invalid-extraneous/node_modules/bar -` - -exports[`test/lib/ls.js TAP ls --parseable no args > should output parseable representation of dependencies structure 1`] = ` -{CWD}/ls-ls-parseable-no-args -{CWD}/ls-ls-parseable-no-args/node_modules/foo -{CWD}/ls-ls-parseable-no-args/node_modules/lorem -{CWD}/ls-ls-parseable-no-args/node_modules/bar -` - -exports[`test/lib/ls.js TAP ls --parseable resolved points to git ref > should output tree containing git refs 1`] = ` -{CWD}/ls-ls-parseable-resolved-points-to-git-ref -{CWD}/ls-ls-parseable-resolved-points-to-git-ref/node_modules/abbrev -` - -exports[`test/lib/ls.js TAP ls --parseable unmet optional dep > should output parseable with empty entry for missing optional deps 1`] = ` -{CWD}/ls-ls-parseable-unmet-optional-dep -{CWD}/ls-ls-parseable-unmet-optional-dep/node_modules/dev-dep -{CWD}/ls-ls-parseable-unmet-optional-dep/node_modules/lorem -{CWD}/ls-ls-parseable-unmet-optional-dep/node_modules/optional-dep -{CWD}/ls-ls-parseable-unmet-optional-dep/node_modules/peer-dep -{CWD}/ls-ls-parseable-unmet-optional-dep/node_modules/prod-dep -{CWD}/ls-ls-parseable-unmet-optional-dep/node_modules/foo -{CWD}/ls-ls-parseable-unmet-optional-dep/node_modules/prod-dep/node_modules/bar -{CWD}/ls-ls-parseable-unmet-optional-dep/node_modules/bar -` - -exports[`test/lib/ls.js TAP ls --parseable unmet peer dep > should output parseable signaling missing peer dep in problems 1`] = ` -{CWD}/ls-ls-parseable-unmet-peer-dep -{CWD}/ls-ls-parseable-unmet-peer-dep/node_modules/dev-dep -{CWD}/ls-ls-parseable-unmet-peer-dep/node_modules/lorem -{CWD}/ls-ls-parseable-unmet-peer-dep/node_modules/optional-dep -{CWD}/ls-ls-parseable-unmet-peer-dep/node_modules/peer-dep -{CWD}/ls-ls-parseable-unmet-peer-dep/node_modules/prod-dep -{CWD}/ls-ls-parseable-unmet-peer-dep/node_modules/foo -{CWD}/ls-ls-parseable-unmet-peer-dep/node_modules/prod-dep/node_modules/bar -{CWD}/ls-ls-parseable-unmet-peer-dep/node_modules/bar -` - -exports[`test/lib/ls.js TAP ls --parseable using aliases > should output tree containing aliases 1`] = ` -{CWD}/ls-ls-parseable-using-aliases -{CWD}/ls-ls-parseable-using-aliases/node_modules/a -` - -exports[`test/lib/ls.js TAP ls --parseable with filter arg > should output parseable contaning only occurrences of filtered by package 1`] = ` -{CWD}/ls-ls-parseable-with-filter-arg/node_modules/lorem -` - -exports[`test/lib/ls.js TAP ls --parseable with filter arg nested dep > should output parseable contaning only occurrences of filtered package 1`] = ` -{CWD}/ls-ls-parseable-with-filter-arg-nested-dep/node_modules/bar -` - -exports[`test/lib/ls.js TAP ls --parseable with missing filter arg > should output parseable output containing no dependencies info 1`] = ` - -` - -exports[`test/lib/ls.js TAP ls --parseable with multiple filter args > should output parseable contaning only occurrences of multiple filtered packages and their ancestors 1`] = ` -{CWD}/ls-ls-parseable-with-multiple-filter-args/node_modules/lorem -{CWD}/ls-ls-parseable-with-multiple-filter-args/node_modules/bar -` - -exports[`test/lib/ls.js TAP ls --production > should output tree containing production deps 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls--production -+-- lorem@1.0.0 -+-- optional-dep@1.0.0 -\`-- prod-dep@1.0.0 - \`-- bar@2.0.0 - -` - -exports[`test/lib/ls.js TAP ls broken resolved field > should NOT print git refs in output tree 1`] = ` -npm-broken-resolved-field-test@1.0.0 {CWD}/ls-ls-broken-resolved-field -\`-- a@1.0.1 - -` - -exports[`test/lib/ls.js TAP ls colored output > should output tree containing color info 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-colored-output -+-- foo@1.0.0 invalid -| \`-- bar@1.0.0 -+-- UNMET DEPENDENCY ipsum@^1.0.0 -\`-- lorem@1.0.0 extraneous - -` - -exports[`test/lib/ls.js TAP ls cycle deps > should print tree output containing deduped ref 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-cycle-deps -\`-- a@1.0.0 - \`-- b@1.0.0 - \`-- a@1.0.0 deduped - -` - -exports[`test/lib/ls.js TAP ls cycle deps with filter args > should print tree output containing deduped ref 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-cycle-deps-with-filter-args -\`-- a@1.0.0 - \`-- b@1.0.0 - \`-- a@1.0.0 deduped - -` - -exports[`test/lib/ls.js TAP ls deduped missing dep > should output parseable signaling missing peer dep in problems 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-deduped-missing-dep -+-- a@1.0.0 -| \`-- UNMET DEPENDENCY b@^1.0.0 deduped -\`-- UNMET DEPENDENCY b@^1.0.0 - -` - -exports[`test/lib/ls.js TAP ls default --depth value should be 0 > should output tree containing only top-level dependencies 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-default-depth-value-should-be-0 -+-- foo@1.0.0 -\`-- lorem@1.0.0 - -` - -exports[`test/lib/ls.js TAP ls empty location > should print empty result 1`] = ` -{CWD}/ls-ls-empty-location -\`-- (empty) - -` - -exports[`test/lib/ls.js TAP ls extraneous deps > should output containing problems info 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-extraneous-deps -+-- foo@1.0.0 -| \`-- bar@1.0.0 -\`-- lorem@1.0.0 extraneous - -` - -exports[`test/lib/ls.js TAP ls filter pkg arg using depth option > should list a in top-level only 1`] = ` -test-pkg-arg-filter-with-depth-opt@1.0.0 {CWD}/ls-ls-filter-pkg-arg-using-depth-option -\`-- a@1.0.0 - -` - -exports[`test/lib/ls.js TAP ls filter pkg arg using depth option > should print empty results msg 1`] = ` -test-pkg-arg-filter-with-depth-opt@1.0.0 {CWD}/ls-ls-filter-pkg-arg-using-depth-option -\`-- (empty) - -` - -exports[`test/lib/ls.js TAP ls filter pkg arg using depth option > should print expected result 1`] = ` -test-pkg-arg-filter-with-depth-opt@1.0.0 {CWD}/ls-ls-filter-pkg-arg-using-depth-option -\`-- b@1.0.0 - \`-- c@1.0.0 - \`-- d@1.0.0 - -` - -exports[`test/lib/ls.js TAP ls filtering by child of missing dep > should print tree and not duplicate child of missing items 1`] = ` -filter-by-child-of-missing-dep@1.0.0 {CWD}/ls-ls-filtering-by-child-of-missing-dep -+-- b@1.0.0 extraneous -| \`-- c@1.0.0 deduped -+-- c@1.0.0 extraneous -\`-- d@1.0.0 extraneous - \`-- c@2.0.0 extraneous - -` - -exports[`test/lib/ls.js TAP ls from and resolved properties > should not be printed in tree output 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-from-and-resolved-properties -\`-- simple-output@2.1.1 - -` - -exports[`test/lib/ls.js TAP ls global > should print tree and not mark top-level items extraneous 1`] = ` -{CWD}/ls-ls-global -+-- a@1.0.0 -\`-- b@1.0.0 - \`-- c@1.0.0 - -` - -exports[`test/lib/ls.js TAP ls invalid deduped dep > should output tree signaling mismatching peer dep in problems 1`] = ` -invalid-deduped-dep@1.0.0 {CWD}/ls-ls-invalid-deduped-dep -+-- a@1.0.0 -| \`-- b@1.0.0 deduped invalid -\`-- b@1.0.0 invalid - -` - -exports[`test/lib/ls.js TAP ls invalid peer dep > should output tree signaling mismatching peer dep in problems 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-invalid-peer-dep -+-- dev-dep@1.0.0 -| \`-- foo@1.0.0 -| \`-- bar@1.0.0 -+-- lorem@1.0.0 -+-- optional-dep@1.0.0 -+-- peer-dep@1.0.0 invalid -\`-- prod-dep@1.0.0 - \`-- bar@2.0.0 - -` - -exports[`test/lib/ls.js TAP ls json read problems > should print empty result 1`] = ` -{CWD}/ls-ls-json-read-problems -\`-- (empty) - -` - -exports[`test/lib/ls.js TAP ls loading a tree containing workspaces > should filter single workspace 1`] = ` -filter-by-child-of-missing-dep@1.0.0 {CWD}/ls-ls-loading-a-tree-containing-workspaces -\`-- a@1.0.0 -> {CWD}/ls-ls-loading-a-tree-containing-workspaces/a - -` - -exports[`test/lib/ls.js TAP ls loading a tree containing workspaces > should list workspaces properly 1`] = ` -filter-by-child-of-missing-dep@1.0.0 {CWD}/ls-ls-loading-a-tree-containing-workspaces -+-- a@1.0.0 -> {CWD}/ls-ls-loading-a-tree-containing-workspaces/a -| \`-- c@1.0.0 -\`-- b@1.0.0 -> {CWD}/ls-ls-loading-a-tree-containing-workspaces/b - -` - -exports[`test/lib/ls.js TAP ls missing package.json > should log all extraneous deps on error msg 1`] = ` -extraneous: bar@1.0.0 {CWD}/ls-ls-missing-package-json/node_modules/bar -extraneous: foo@1.0.0 {CWD}/ls-ls-missing-package-json/node_modules/foo -extraneous: lorem@1.0.0 {CWD}/ls-ls-missing-package-json/node_modules/lorem -` - -exports[`test/lib/ls.js TAP ls missing package.json > should output tree missing name/version of top-level package 1`] = ` -{CWD}/ls-ls-missing-package-json -+-- bar@1.0.0 extraneous -+-- foo@1.0.0 extraneous -| \`-- bar@1.0.0 deduped -\`-- lorem@1.0.0 extraneous - -` - -exports[`test/lib/ls.js TAP ls missing/invalid/extraneous > should output tree containing missing, invalid, extraneous labels 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-missing-invalid-extraneous -+-- foo@1.0.0 invalid -| \`-- bar@1.0.0 -+-- UNMET DEPENDENCY ipsum@^1.0.0 -\`-- lorem@1.0.0 extraneous - -` - -exports[`test/lib/ls.js TAP ls no args > should output tree representation of dependencies structure 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-no-args -+-- foo@1.0.0 -| \`-- bar@1.0.0 -\`-- lorem@1.0.0 - -` - -exports[`test/lib/ls.js TAP ls print deduped symlinks > should output tree containing linked deps 1`] = ` -print-deduped-symlinks@1.0.0 {CWD}/ls-ls-print-deduped-symlinks -+-- a@1.0.0 -| \`-- b@1.0.0 deduped -> {CWD}/ls-ls-print-deduped-symlinks/b -\`-- b@1.0.0 -> {CWD}/ls-ls-print-deduped-symlinks/b - -` - -exports[`test/lib/ls.js TAP ls resolved points to git ref > should output tree containing git refs 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-resolved-points-to-git-ref -\`-- abbrev@1.1.1 (git+ssh://git@github.com/isaacs/abbrev-js.git#b8f3a2fc0c3bb8ffd8b0d0072cc6b5a3667e963c) - -` - -exports[`test/lib/ls.js TAP ls unmet optional dep > should output tree with empty entry for missing optional deps 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-unmet-optional-dep -+-- dev-dep@1.0.0 -| \`-- foo@1.0.0 -| \`-- bar@1.0.0 -+-- lorem@1.0.0 -+-- UNMET OPTIONAL DEPENDENCY missing-optional-dep@^1.0.0 -+-- optional-dep@1.0.0 invalid -+-- peer-dep@1.0.0 -\`-- prod-dep@1.0.0 - \`-- bar@2.0.0 - -` - -exports[`test/lib/ls.js TAP ls unmet peer dep > should output tree signaling missing peer dep in problems 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-unmet-peer-dep -\`-- UNMET DEPENDENCY peer-dep@* - -` - -exports[`test/lib/ls.js TAP ls using aliases > should output tree containing aliases 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-using-aliases -\`-- a@npm:b@1.0.0 - -` - -exports[`test/lib/ls.js TAP ls with args and dedupe entries > should print tree output containing deduped ref 1`] = ` -dedupe-entries@1.0.0 {CWD}/ls-ls-with-args-and-dedupe-entries -+-- @npmcli/a@1.0.0 -| \`-- @npmcli/b@1.1.2 deduped -+-- @npmcli/b@1.1.2 -\`-- @npmcli/c@1.0.0 - \`-- @npmcli/b@1.1.2 deduped - -` - -exports[`test/lib/ls.js TAP ls with args and different order of items > should print tree output containing deduped ref 1`] = ` -dedupe-entries@1.0.0 {CWD}/ls-ls-with-args-and-different-order-of-items -+-- @npmcli/a@1.0.0 -| \`-- @npmcli/c@1.0.0 deduped -+-- @npmcli/b@1.1.2 -| \`-- @npmcli/c@1.0.0 deduped -\`-- @npmcli/c@1.0.0 - -` - -exports[`test/lib/ls.js TAP ls with dot filter arg > should output tree contaning only occurrences of filtered by package and colored output 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-with-dot-filter-arg -\`-- (empty) - -` - -exports[`test/lib/ls.js TAP ls with filter arg > should output tree contaning only occurrences of filtered by package and colored output 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-with-filter-arg -\`-- lorem@1.0.0 - -` - -exports[`test/lib/ls.js TAP ls with filter arg nested dep > should output tree contaning only occurrences of filtered package and its ancestors 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-with-filter-arg-nested-dep -\`-- foo@1.0.0 - \`-- bar@1.0.0 - -` - -exports[`test/lib/ls.js TAP ls with missing filter arg > should output tree containing no dependencies info 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-with-missing-filter-arg -\`-- (empty) - -` - -exports[`test/lib/ls.js TAP ls with multiple filter args > should output tree contaning only occurrences of multiple filtered packages and their ancestors 1`] = ` -test-npm-ls@1.0.0 {CWD}/ls-ls-with-multiple-filter-args -+-- foo@1.0.0 -| \`-- bar@1.0.0 -\`-- lorem@1.0.0 - -` - -exports[`test/lib/ls.js TAP ls with no args dedupe entries > should print tree output containing deduped ref 1`] = ` -dedupe-entries@1.0.0 {CWD}/ls-ls-with-no-args-dedupe-entries -+-- @npmcli/a@1.0.0 -| \`-- @npmcli/b@1.1.2 deduped -+-- @npmcli/b@1.1.2 -\`-- @npmcli/c@1.0.0 - \`-- @npmcli/b@1.1.2 deduped - -` - -exports[`test/lib/ls.js TAP ls with no args dedupe entries and not displaying all > should print tree output containing deduped ref 1`] = ` -dedupe-entries@1.0.0 {CWD}/ls-ls-with-no-args-dedupe-entries-and-not-displaying-all -+-- @npmcli/a@1.0.0 -+-- @npmcli/b@1.1.2 -\`-- @npmcli/c@1.0.0 - -` diff --git a/tap-snapshots/test-lib-outdated.js-TAP.test.js b/tap-snapshots/test-lib-outdated.js-TAP.test.js deleted file mode 100644 index 7f245b09e..000000000 --- a/tap-snapshots/test-lib-outdated.js-TAP.test.js +++ /dev/null @@ -1,154 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/outdated.js TAP should display outdated deps outdated --all > must match snapshot 1`] = ` - -Package Current Wanted Latest Location Depended by -alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha outdated-should-display-outdated-deps -beta 1.0.0 1.0.1 1.0.1 node_modules/beta outdated-should-display-outdated-deps -gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma outdated-should-display-outdated-deps -theta MISSING 1.0.1 1.0.1 - outdated-should-display-outdated-deps -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated --json --long > must match snapshot 1`] = ` - -{ - "alpha": { - "current": "1.0.0", - "wanted": "1.0.1", - "latest": "1.0.1", - "dependent": "outdated-should-display-outdated-deps", - "location": "{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/alpha", - "type": "dependencies" - }, - "beta": { - "current": "1.0.0", - "wanted": "1.0.1", - "latest": "1.0.1", - "dependent": "outdated-should-display-outdated-deps", - "location": "{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/beta", - "type": "peerDependencies" - }, - "gamma": { - "current": "1.0.1", - "wanted": "1.0.1", - "latest": "2.0.0", - "dependent": "outdated-should-display-outdated-deps", - "location": "{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/gamma", - "type": "dependencies" - }, - "theta": { - "wanted": "1.0.1", - "latest": "1.0.1", - "dependent": "outdated-should-display-outdated-deps", - "type": "dependencies" - } -} -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated --json > must match snapshot 1`] = ` - -{ - "alpha": { - "current": "1.0.0", - "wanted": "1.0.1", - "latest": "1.0.1", - "dependent": "outdated-should-display-outdated-deps", - "location": "{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/alpha" - }, - "beta": { - "current": "1.0.0", - "wanted": "1.0.1", - "latest": "1.0.1", - "dependent": "outdated-should-display-outdated-deps", - "location": "{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/beta" - }, - "gamma": { - "current": "1.0.1", - "wanted": "1.0.1", - "latest": "2.0.0", - "dependent": "outdated-should-display-outdated-deps", - "location": "{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/gamma" - }, - "theta": { - "wanted": "1.0.1", - "latest": "1.0.1", - "dependent": "outdated-should-display-outdated-deps" - } -} -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated --long > must match snapshot 1`] = ` - -Package Current Wanted Latest Location Depended by Package Type Homepage -alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha outdated-should-display-outdated-deps dependencies -beta 1.0.0 1.0.1 1.0.1 node_modules/beta outdated-should-display-outdated-deps peerDependencies -gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma outdated-should-display-outdated-deps dependencies -theta MISSING 1.0.1 1.0.1 - outdated-should-display-outdated-deps dependencies -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated --omit=dev --omit=peer > must match snapshot 1`] = ` - -Package Current Wanted Latest Location Depended by -alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha outdated-should-display-outdated-deps -gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma outdated-should-display-outdated-deps -theta MISSING 1.0.1 1.0.1 - outdated-should-display-outdated-deps -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated --omit=dev > must match snapshot 1`] = ` - -Package Current Wanted Latest Location Depended by -alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha outdated-should-display-outdated-deps -beta 1.0.0 1.0.1 1.0.1 node_modules/beta outdated-should-display-outdated-deps -gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma outdated-should-display-outdated-deps -theta MISSING 1.0.1 1.0.1 - outdated-should-display-outdated-deps -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated --omit=prod > must match snapshot 1`] = ` - -Package Current Wanted Latest Location Depended by -alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha outdated-should-display-outdated-deps -beta 1.0.0 1.0.1 1.0.1 node_modules/beta outdated-should-display-outdated-deps -gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma outdated-should-display-outdated-deps -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated --parseable --long > must match snapshot 1`] = ` - -{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/alpha:alpha@1.0.1:alpha@1.0.0:alpha@1.0.1:outdated-should-display-outdated-deps:dependencies: -{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/beta:beta@1.0.1:beta@1.0.0:beta@1.0.1:outdated-should-display-outdated-deps:peerDependencies: -{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/gamma:gamma@1.0.1:gamma@1.0.1:gamma@2.0.0:outdated-should-display-outdated-deps:dependencies: -:theta@1.0.1:MISSING:theta@1.0.1:outdated-should-display-outdated-deps:dependencies: -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated --parseable > must match snapshot 1`] = ` - -{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/alpha:alpha@1.0.1:alpha@1.0.0:alpha@1.0.1:outdated-should-display-outdated-deps -{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/beta:beta@1.0.1:beta@1.0.0:beta@1.0.1:outdated-should-display-outdated-deps -{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/gamma:gamma@1.0.1:gamma@1.0.1:gamma@2.0.0:outdated-should-display-outdated-deps -:theta@1.0.1:MISSING:theta@1.0.1:outdated-should-display-outdated-deps -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated > must match snapshot 1`] = ` - -Package Current Wanted Latest Location Depended by -alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha outdated-should-display-outdated-deps -beta 1.0.0 1.0.1 1.0.1 node_modules/beta outdated-should-display-outdated-deps -gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma outdated-should-display-outdated-deps -theta MISSING 1.0.1 1.0.1 - outdated-should-display-outdated-deps -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated global > must match snapshot 1`] = ` - -Package Current Wanted Latest Location Depended by -alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha global -` - -exports[`test/lib/outdated.js TAP should display outdated deps outdated specific dep > must match snapshot 1`] = ` - -Package Current Wanted Latest Location Depended by -alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha outdated-should-display-outdated-deps -` diff --git a/tap-snapshots/test-lib-owner.js-TAP.test.js b/tap-snapshots/test-lib-owner.js-TAP.test.js deleted file mode 100644 index 2d92b0ae5..000000000 --- a/tap-snapshots/test-lib-owner.js-TAP.test.js +++ /dev/null @@ -1,20 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/owner.js TAP owner ls > should output owners of 1`] = ` -nlf -ruyadorno -darcyclarke -isaacs -` - -exports[`test/lib/owner.js TAP owner ls no args > should output owners of cwd package 1`] = ` -nlf -ruyadorno -darcyclarke -isaacs -` diff --git a/tap-snapshots/test-lib-profile.js-TAP.test.js b/tap-snapshots/test-lib-profile.js-TAP.test.js deleted file mode 100644 index 589755151..000000000 --- a/tap-snapshots/test-lib-profile.js-TAP.test.js +++ /dev/null @@ -1,104 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/profile.js TAP enable-2fa from token and set otp, retries on pending and verifies with qrcode > should output 2fa enablement success msgs 1`] = ` -Scan into your authenticator app: -qrcode - Or enter code: -1234 -2FA successfully enabled. Below are your recovery codes, please print these out. -You will need these to recover access to your account if you lose your authentication device. - 123456 - 789101 -` - -exports[`test/lib/profile.js TAP profile get --parseable > should output parseable result value 1`] = ` -foo -` - -exports[`test/lib/profile.js TAP profile get multiple args --parseable > should output parseable profile value results 1`] = ` -foo foo@github.com (verified) https://github.com/npm -` - -exports[`test/lib/profile.js TAP profile get multiple args comma separated > should output all keys 1`] = ` -foo foo@github.com (verified) https://github.com/npm -` - -exports[`test/lib/profile.js TAP profile get multiple args default output > should output all keys 1`] = ` -foo foo@github.com (verified) https://github.com/npm -` - -exports[`test/lib/profile.js TAP profile get no args --parseable > should output all profile info as parseable result 1`] = ` -tfa auth-and-writes -name foo -email foo@github.com -email_verified true -created 2015-02-26T01:26:37.384Z -updated 2020-08-12T16:19:35.326Z -fullname Foo Bar -homepage https://github.com -freenode foobar -twitter https://twitter.com/npmjs -github https://github.com/npm -` - -exports[`test/lib/profile.js TAP profile get no args default output > should output table with contents 1`] = ` -name: foo -email: foo@github.com (verified) -two-factor auth: auth-and-writes -fullname: Foo Bar -homepage: https://github.com -freenode: foobar -twitter: https://twitter.com/npmjs -github: https://github.com/npm -created: 2015-02-26T01:26:37.384Z -updated: 2020-08-12T16:19:35.326Z -` - -exports[`test/lib/profile.js TAP profile get no args no tfa enabled > should output expected profile values 1`] = ` -name: foo -email: foo@github.com (verified) -two-factor auth: disabled -fullname: Foo Bar -homepage: https://github.com -freenode: foobar -twitter: https://twitter.com/npmjs -github: https://github.com/npm -created: 2015-02-26T01:26:37.384Z -updated: 2020-08-12T16:19:35.326Z -` - -exports[`test/lib/profile.js TAP profile get no args profile has cidr_whitelist item > should output table with contents 1`] = ` -name: foo -email: foo@github.com (verified) -two-factor auth: auth-and-writes -fullname: Foo Bar -homepage: https://github.com -freenode: foobar -twitter: https://twitter.com/npmjs -github: https://github.com/npm -created: 2015-02-26T01:26:37.384Z -updated: 2020-08-12T16:19:35.326Z -cidr_whitelist: 192.168.1.1 -` - -exports[`test/lib/profile.js TAP profile get no args unverified email > should output table with contents 1`] = ` -name: foo -email: foo@github.com(unverified) -two-factor auth: auth-and-writes -fullname: Foo Bar -homepage: https://github.com -freenode: foobar -twitter: https://twitter.com/npmjs -github: https://github.com/npm -created: 2015-02-26T01:26:37.384Z -updated: 2020-08-12T16:19:35.326Z -` - -exports[`test/lib/profile.js TAP profile set writable key --parseable > should output parseable set key success msg 1`] = ` -fullname Lorem Ipsum -` diff --git a/tap-snapshots/test-lib-publish.js-TAP.test.js b/tap-snapshots/test-lib-publish.js-TAP.test.js deleted file mode 100644 index 172ed5b29..000000000 --- a/tap-snapshots/test-lib-publish.js-TAP.test.js +++ /dev/null @@ -1,20 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/publish.js TAP shows usage with wrong set of arguments > should print usage 1`] = ` -npm publish - -Publish a package - -Usage: -npm publish [] - -Options: -[--tag ] [--access ] [--dry-run] - -Run "npm help publish" for more info -` diff --git a/tap-snapshots/test-lib-search.js-TAP.test.js b/tap-snapshots/test-lib-search.js-TAP.test.js deleted file mode 100644 index 4b4dc75ea..000000000 --- a/tap-snapshots/test-lib-search.js-TAP.test.js +++ /dev/null @@ -1,20 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/search.js TAP empty search results > should have expected search results 1`] = ` -No matches found for "foo" -` - -exports[`test/lib/search.js TAP search --searchexclude --searchopts > should have filtered expected search results 1`] = ` -NAME | AUTHOR | DATE | VERSION | KEYWORDS -foo | =foo | prehistoric | 1.0.0 | -` - -exports[`test/lib/search.js TAP search > should have expected search results 1`] = ` -NAME | AUTHOR | DATE | VERSION | KEYWORDS -libnpm | =nlf… | 2019-07-16 | 3.0.1 | npm api package manager liblibnpmaccess | =nlf… | 2020-11-03 | 4.0.1 | @evocateur/libnpmaccess | =evocateur | 2019-07-16 | 3.1.2 | @evocateur/libnpmpublish | =evocateur | 2019-07-16 | 1.2.2 | libnpmorg | =nlf… | 2020-11-03 | 2.0.1 | libnpm npm package manager api orgs teamslibnpmsearch | =nlf… | 2020-12-08 | 3.1.0 | npm search api libnpmlibnpmteam | =nlf… | 2020-11-03 | 2.0.2 | libnpmhook | =nlf… | 2020-11-03 | 6.0.1 | npm hooks registry npm apilibnpmpublish | =nlf… | 2020-11-03 | 4.0.0 | libnpmfund | =nlf… | 2020-12-08 | 1.0.2 | npm npmcli libnpm cli git fund gitfund@npmcli/map-workspaces | =nlf… | 2020-09-30 | 1.0.1 | npm npmcli libnpm cli workspaces map-workspaceslibnpmversion | =nlf… | 2020-11-04 | 1.0.7 | @types/libnpmsearch | =types | 2019-09-26 | 2.0.1 | -` diff --git a/tap-snapshots/test-lib-stars.js-TAP.test.js b/tap-snapshots/test-lib-stars.js-TAP.test.js deleted file mode 100644 index ac628148f..000000000 --- a/tap-snapshots/test-lib-stars.js-TAP.test.js +++ /dev/null @@ -1,15 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/stars.js TAP no args > should output a list of starred packages 1`] = ` - -@npmcli/arborist -@npmcli/map-workspaces -libnpmfund -libnpmpublish -ipt -` diff --git a/tap-snapshots/test-lib-team.js-TAP.test.js b/tap-snapshots/test-lib-team.js-TAP.test.js deleted file mode 100644 index 73123ee1a..000000000 --- a/tap-snapshots/test-lib-team.js-TAP.test.js +++ /dev/null @@ -1,85 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/team.js TAP team add --parseable > should output success result for parseable add user 1`] = ` -foo npmcli:developers added -` - -exports[`test/lib/team.js TAP team add default output > should output success result for add user 1`] = ` -foo added to @npmcli:developers -` - -exports[`test/lib/team.js TAP team create --parseable > should output parseable success result for create team 1`] = ` -npmcli:newteam created -` - -exports[`test/lib/team.js TAP team create default output > should output success result for create team 1`] = ` -+@npmcli:newteam -` - -exports[`test/lib/team.js TAP team destroy --parseable > should output parseable result for destroy team 1`] = ` -npmcli:newteam deleted -` - -exports[`test/lib/team.js TAP team destroy default output > should output success result for destroy team 1`] = ` --@npmcli:newteam -` - -exports[`test/lib/team.js TAP team ls --parseable > should list users for a parseable scope:team 1`] = ` -darcyclarke -isaacs -nlf -ruyadorno -` - -exports[`test/lib/team.js TAP team ls default output > should list users for a given scope:team 1`] = ` - -@npmcli:developers has 4 users: -darcyclarke isaacs nlf ruyadorno -` - -exports[`test/lib/team.js TAP team ls no users > should list no users for a given scope 1`] = ` - -@npmcli:developers has 0 users -` - -exports[`test/lib/team.js TAP team ls single user > should list single user for a given scope 1`] = ` - -@npmcli:developers has 1 user: -foo -` - -exports[`test/lib/team.js TAP team ls --parseable > should list teams for a parseable scope 1`] = ` -npmcli:designers -npmcli:developers -npmcli:product -` - -exports[`test/lib/team.js TAP team ls default output > should list teams for a given scope 1`] = ` - -@npmcli has 3 teams: -@npmcli:designers @npmcli:developers @npmcli:product -` - -exports[`test/lib/team.js TAP team ls no teams > should list no teams for a given scope 1`] = ` - -@npmcli has 0 teams -` - -exports[`test/lib/team.js TAP team ls single team > should list single team for a given scope 1`] = ` - -@npmcli has 1 team: -@npmcli:developers -` - -exports[`test/lib/team.js TAP team rm --parseable > should output parseable result for remove user 1`] = ` -foo npmcli:newteam removed -` - -exports[`test/lib/team.js TAP team rm default output > should output success result for remove user 1`] = ` -foo removed from @npmcli:newteam -` diff --git a/tap-snapshots/test-lib-utils-cmd-list.js-TAP.test.js b/tap-snapshots/test-lib-utils-cmd-list.js-TAP.test.js deleted file mode 100644 index 832f85601..000000000 --- a/tap-snapshots/test-lib-utils-cmd-list.js-TAP.test.js +++ /dev/null @@ -1,209 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/utils/cmd-list.js TAP > must match snapshot 1`] = ` -Object { - "affordances": Object { - "add": "install", - "add-user": "adduser", - "author": "owner", - "dist-tags": "dist-tag", - "find": "search", - "hlep": "help", - "home": "docs", - "ic": "ci", - "in": "install", - "info": "view", - "innit": "init", - "ins": "install", - "inst": "install", - "insta": "install", - "instal": "install", - "install-clean": "ci", - "isnt": "install", - "isnta": "install", - "isntal": "install", - "isntall-clean": "ci", - "issues": "bugs", - "la": "ll", - "login": "adduser", - "ogr": "org", - "r": "uninstall", - "remove": "uninstall", - "rm": "uninstall", - "rum": "run-script", - "show": "view", - "sit": "cit", - "udpate": "update", - "unlink": "uninstall", - "upgrade": "update", - "urn": "run-script", - "verison": "version", - }, - "aliases": Object { - "add": "install", - "add-user": "adduser", - "author": "owner", - "c": "config", - "cit": "install-ci-test", - "clean-install": "ci", - "clean-install-test": "cit", - "create": "init", - "ddp": "dedupe", - "dist-tags": "dist-tag", - "find": "search", - "hlep": "help", - "home": "docs", - "i": "install", - "ic": "ci", - "in": "install", - "info": "view", - "innit": "init", - "ins": "install", - "inst": "install", - "insta": "install", - "instal": "install", - "install-clean": "ci", - "isnt": "install", - "isnta": "install", - "isntal": "install", - "isntall-clean": "ci", - "issues": "bugs", - "it": "install-test", - "la": "ll", - "list": "ls", - "ln": "link", - "login": "adduser", - "ogr": "org", - "r": "uninstall", - "rb": "rebuild", - "remove": "uninstall", - "rm": "uninstall", - "rum": "run-script", - "run": "run-script", - "s": "search", - "se": "search", - "show": "view", - "sit": "cit", - "t": "test", - "tst": "test", - "udpate": "update", - "un": "uninstall", - "unlink": "uninstall", - "up": "update", - "upgrade": "update", - "urn": "run-script", - "v": "view", - "verison": "version", - "why": "explain", - "x": "exec", - }, - "cmdList": Array [ - "ci", - "install-ci-test", - "install", - "install-test", - "uninstall", - "cache", - "config", - "set", - "get", - "update", - "outdated", - "prune", - "pack", - "find-dupes", - "dedupe", - "hook", - "rebuild", - "link", - "publish", - "star", - "stars", - "unstar", - "adduser", - "login", - "logout", - "unpublish", - "owner", - "access", - "team", - "deprecate", - "shrinkwrap", - "token", - "profile", - "audit", - "fund", - "org", - "help", - "ls", - "ll", - "search", - "view", - "init", - "version", - "edit", - "explore", - "docs", - "repo", - "bugs", - "root", - "prefix", - "bin", - "whoami", - "diff", - "dist-tag", - "ping", - "test", - "stop", - "start", - "restart", - "run-script", - "set-script", - "completion", - "doctor", - "exec", - "explain", - ], - "plumbing": Array [ - "birthday", - "help-search", - ], - "shellouts": Array [ - "exec", - "run-script", - "test", - "start", - "stop", - "restart", - "birthday", - ], - "shorthands": Object { - "c": "config", - "cit": "install-ci-test", - "clean-install": "ci", - "clean-install-test": "cit", - "create": "init", - "ddp": "dedupe", - "i": "install", - "it": "install-test", - "list": "ls", - "ln": "link", - "rb": "rebuild", - "run": "run-script", - "s": "search", - "se": "search", - "t": "test", - "tst": "test", - "un": "uninstall", - "up": "update", - "v": "view", - "why": "explain", - "x": "exec", - }, -} -` diff --git a/tap-snapshots/test-lib-utils-config-definition.js-TAP.test.js b/tap-snapshots/test-lib-utils-config-definition.js-TAP.test.js deleted file mode 100644 index ad506ae8e..000000000 --- a/tap-snapshots/test-lib-utils-config-definition.js-TAP.test.js +++ /dev/null @@ -1,264 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/utils/config/definition.js TAP basic definition > description of deprecated thing 1`] = ` -#### \`deprecated\` - -* Default: A number bigger than 1 -* Type: An expression of a numeric quantity using numerals -* DEPRECATED: do not use this - -it should not be used ever - -not even once. -` - -exports[`test/lib/utils/config/definition.js TAP basic definition > human-readable description 1`] = ` -#### \`key\` - -* Default: "some default value" -* Type: Number or String - -just a test thingie -` - -exports[`test/lib/utils/config/definition.js TAP long description > cols=-1 1`] = ` -#### \`walden\` - -* Default: true -* Type: Boolean - -WHEN I WROTE the -following pages, -or rather the -bulk of them, I -lived alone, in -the woods, a -mile from any -neighbor, in a -house which I -had built -myself, on the -shore of Walden -Pond, in -Concord, -Massachusetts, -and earned my -living by the -labor of my -hands only. I -lived there two -years and two -months. At -present I am a -sojourner in -civilized life -again. - -I should not -obtrude my -affairs so much -on the notice of -my readers if -very particular -inquiries had -not been made by -my townsmen -concerning my -mode of life, -which some would -call -impertinent, -though they do -not appear to me -at all -impertinent, -but, considering -the -circumstances, -very natural and -pertinent. - -\`\`\` -this.is('a', { - code: 'sample', -}) - -with (multiple) { - blocks() -} -\`\`\` - -` - -exports[`test/lib/utils/config/definition.js TAP long description > cols=0 1`] = ` -#### \`walden\` - -* Default: true -* Type: Boolean - -WHEN I WROTE the -following pages, -or rather the -bulk of them, I -lived alone, in -the woods, a -mile from any -neighbor, in a -house which I -had built -myself, on the -shore of Walden -Pond, in -Concord, -Massachusetts, -and earned my -living by the -labor of my -hands only. I -lived there two -years and two -months. At -present I am a -sojourner in -civilized life -again. - -I should not -obtrude my -affairs so much -on the notice of -my readers if -very particular -inquiries had -not been made by -my townsmen -concerning my -mode of life, -which some would -call -impertinent, -though they do -not appear to me -at all -impertinent, -but, considering -the -circumstances, -very natural and -pertinent. - -\`\`\` -this.is('a', { - code: 'sample', -}) - -with (multiple) { - blocks() -} -\`\`\` - -` - -exports[`test/lib/utils/config/definition.js TAP long description > cols=40 1`] = ` -#### \`walden\` - -* Default: true -* Type: Boolean - -WHEN I WROTE the following pages, or -rather the bulk of them, I lived -alone, in the woods, a mile from any -neighbor, in a house which I had -built myself, on the shore of Walden -Pond, in Concord, Massachusetts, and -earned my living by the labor of my -hands only. I lived there two years -and two months. At present I am a -sojourner in civilized life again. - -I should not obtrude my affairs so -much on the notice of my readers if -very particular inquiries had not -been made by my townsmen concerning -my mode of life, which some would -call impertinent, though they do not -appear to me at all impertinent, -but, considering the circumstances, -very natural and pertinent. - -\`\`\` -this.is('a', { - code: 'sample', -}) - -with (multiple) { - blocks() -} -\`\`\` - -` - -exports[`test/lib/utils/config/definition.js TAP long description > cols=9000 1`] = ` -#### \`walden\` - -* Default: true -* Type: Boolean - -WHEN I WROTE the following pages, or rather the bulk of them, I lived alone, -in the woods, a mile from any neighbor, in a house which I had built myself, -on the shore of Walden Pond, in Concord, Massachusetts, and earned my living -by the labor of my hands only. I lived there two years and two months. At -present I am a sojourner in civilized life again. - -I should not obtrude my affairs so much on the notice of my readers if very -particular inquiries had not been made by my townsmen concerning my mode of -life, which some would call impertinent, though they do not appear to me at -all impertinent, but, considering the circumstances, very natural and -pertinent. - -\`\`\` -this.is('a', { - code: 'sample', -}) - -with (multiple) { - blocks() -} -\`\`\` - -` - -exports[`test/lib/utils/config/definition.js TAP long description > cols=NaN 1`] = ` -#### \`walden\` - -* Default: true -* Type: Boolean - -WHEN I WROTE the following pages, or rather the bulk of them, I lived alone, -in the woods, a mile from any neighbor, in a house which I had built myself, -on the shore of Walden Pond, in Concord, Massachusetts, and earned my living -by the labor of my hands only. I lived there two years and two months. At -present I am a sojourner in civilized life again. - -I should not obtrude my affairs so much on the notice of my readers if very -particular inquiries had not been made by my townsmen concerning my mode of -life, which some would call impertinent, though they do not appear to me at -all impertinent, but, considering the circumstances, very natural and -pertinent. - -\`\`\` -this.is('a', { - code: 'sample', -}) - -with (multiple) { - blocks() -} -\`\`\` - -` diff --git a/tap-snapshots/test-lib-utils-config-definitions.js-TAP.test.js b/tap-snapshots/test-lib-utils-config-definitions.js-TAP.test.js deleted file mode 100644 index b3d920a0c..000000000 --- a/tap-snapshots/test-lib-utils-config-definitions.js-TAP.test.js +++ /dev/null @@ -1,157 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/utils/config/definitions.js TAP > all config keys 1`] = ` -Array [ - "_auth", - "access", - "all", - "allow-same-version", - "also", - "always-auth", - "audit", - "audit-level", - "auth-type", - "before", - "bin-links", - "browser", - "ca", - "cache", - "cache-max", - "cache-min", - "cafile", - "call", - "cert", - "ci-name", - "cidr", - "color", - "commit-hooks", - "depth", - "description", - "dev", - "diff", - "diff-ignore-all-space", - "diff-name-only", - "diff-no-prefix", - "diff-dst-prefix", - "diff-src-prefix", - "diff-text", - "diff-unified", - "dry-run", - "editor", - "engine-strict", - "fetch-retries", - "fetch-retry-factor", - "fetch-retry-maxtimeout", - "fetch-retry-mintimeout", - "fetch-timeout", - "force", - "foreground-scripts", - "format-package-lock", - "fund", - "git", - "git-tag-version", - "global", - "global-style", - "globalconfig", - "heading", - "https-proxy", - "if-present", - "ignore-scripts", - "include", - "include-staged", - "init-author-email", - "init-author-name", - "init-author-url", - "init-license", - "init-module", - "init-version", - "init.author.email", - "init.author.name", - "init.author.url", - "init.license", - "init.module", - "init.version", - "json", - "key", - "legacy-bundling", - "legacy-peer-deps", - "link", - "local-address", - "loglevel", - "logs-max", - "long", - "maxsockets", - "message", - "node-options", - "node-version", - "noproxy", - "npm-version", - "offline", - "omit", - "only", - "optional", - "otp", - "package", - "package-lock", - "package-lock-only", - "parseable", - "prefer-offline", - "prefer-online", - "prefix", - "preid", - "production", - "progress", - "proxy", - "read-only", - "rebuild-bundle", - "registry", - "save", - "save-bundle", - "save-dev", - "save-exact", - "save-optional", - "save-peer", - "save-prefix", - "save-prod", - "scope", - "script-shell", - "searchexclude", - "searchlimit", - "searchopts", - "searchstaleness", - "shell", - "shrinkwrap", - "sign-git-commit", - "sign-git-tag", - "sso-poll-frequency", - "sso-type", - "strict-peer-deps", - "strict-ssl", - "tag", - "tag-version-prefix", - "timing", - "tmp", - "umask", - "unicode", - "update-notifier", - "usage", - "user-agent", - "userconfig", - "version", - "versions", - "viewer", - "which", - "workspace", - "workspaces", - "yes", -] -` - -exports[`test/lib/utils/config/definitions.js TAP > all config keys that are shared to flatOptions 1`] = ` -Array [] -` diff --git a/tap-snapshots/test-lib-utils-config-describe-all.js-TAP.test.js b/tap-snapshots/test-lib-utils-config-describe-all.js-TAP.test.js deleted file mode 100644 index 6c2659062..000000000 --- a/tap-snapshots/test-lib-utils-config-describe-all.js-TAP.test.js +++ /dev/null @@ -1,1389 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/utils/config/describe-all.js TAP > must match snapshot 1`] = ` -#### \`_auth\` - -* Default: null -* Type: null or String - -A basic-auth string to use when authenticating against the npm registry. - -Warning: This should generally not be set via a command-line option. It is -safer to use a registry-provided authentication bearer token stored in the -~/.npmrc file by running \`npm login\`. - -#### \`access\` - -* Default: 'restricted' for scoped packages, 'public' for unscoped packages -* Type: null, "restricted", or "public" - -When publishing scoped packages, the access level defaults to \`restricted\`. -If you want your scoped package to be publicly viewable (and installable) -set \`--access=public\`. The only valid values for \`access\` are \`public\` and -\`restricted\`. Unscoped packages _always_ have an access level of \`public\`. - -#### \`all\` - -* Default: false -* Type: Boolean - -When running \`npm outdated\` and \`npm ls\`, setting \`--all\` will show all -outdated or installed packages, rather than only those directly depended -upon by the current project. - -#### \`allow-same-version\` - -* Default: false -* Type: Boolean - -Prevents throwing an error when \`npm version\` is used to set the new version -to the same value as the current version. - -#### \`always-auth\` - -* Default: false -* Type: Boolean - -Force npm to always require authentication when accessing the registry, even -for \`GET\` requests. - -#### \`audit\` - -* Default: true -* Type: Boolean - -When "true" submit audit reports alongside \`npm install\` runs to the default -registry and all registries configured for scopes. See the documentation for -[\`npm audit\`](/commands/npm-audit) for details on what is submitted. - -#### \`audit-level\` - -* Default: null -* Type: null, "info", "low", "moderate", "high", "critical", or "none" - -The minimum level of vulnerability for \`npm audit\` to exit with a non-zero -exit code. - -#### \`before\` - -* Default: null -* Type: null or Date - -If passed to \`npm install\`, will rebuild the npm tree such that only -versions that were available **on or before** the \`--before\` time get -installed. If there's no versions available for the current set of direct -dependencies, the command will error. - -If the requested version is a \`dist-tag\` and the given tag does not pass the -\`--before\` filter, the most recent version less than or equal to that tag -will be used. For example, \`foo@latest\` might install \`foo@1.2\` even though -\`latest\` is \`2.0\`. - -#### \`bin-links\` - -* Default: true -* Type: Boolean - -Tells npm to create symlinks (or \`.cmd\` shims on Windows) for package -executables. - -Set to false to have it not do this. This can be used to work around the -fact that some file systems don't support symlinks, even on ostensibly Unix -systems. - -#### \`browser\` - -* Default: OS X: \`"open"\`, Windows: \`"start"\`, Others: \`"xdg-open"\` -* Type: null, Boolean, or String - -The browser that is called by npm commands to open websites. - -Set to \`false\` to suppress browser behavior and instead print urls to -terminal. - -Set to \`true\` to use default system URL opener. - -#### \`ca\` - -* Default: null -* Type: null or String (can be set multiple times) - -The Certificate Authority signing certificate that is trusted for SSL -connections to the registry. Values should be in PEM format (Windows calls -it "Base-64 encoded X.509 (.CER)") with newlines replaced by the string -"\\n". For example: - -\`\`\`ini -ca="-----BEGIN CERTIFICATE-----\\nXXXX\\nXXXX\\n-----END CERTIFICATE-----" -\`\`\` - -Set to \`null\` to only allow "known" registrars, or to a specific CA cert to -trust only that specific signing authority. - -Multiple CAs can be trusted by specifying an array of certificates: - -\`\`\`ini -ca[]="..." -ca[]="..." -\`\`\` - -See also the \`strict-ssl\` config. - -#### \`cache\` - -* Default: Windows: \`%LocalAppData%\\npm-cache\`, Posix: \`~/.npm\` -* Type: Path - -The location of npm's cache directory. See [\`npm -cache\`](/commands/npm-cache) - -#### \`cafile\` - -* Default: null -* Type: Path - -A path to a file containing one or multiple Certificate Authority signing -certificates. Similar to the \`ca\` setting, but allows for multiple CA's, as -well as for the CA information to be stored in a file on disk. - -#### \`call\` - -* Default: "" -* Type: String - -Optional companion option for \`npm exec\`, \`npx\` that allows for specifying a -custom command to be run along with the installed packages. - -\`\`\`bash -npm exec --package yo --package generator-node --call "yo node" -\`\`\` - - -#### \`cert\` - -* Default: null -* Type: null or String - -A client certificate to pass when accessing the registry. Values should be -in PEM format (Windows calls it "Base-64 encoded X.509 (.CER)") with -newlines replaced by the string "\\n". For example: - -\`\`\`ini -cert="-----BEGIN CERTIFICATE-----\\nXXXX\\nXXXX\\n-----END CERTIFICATE-----" -\`\`\` - -It is _not_ the path to a certificate file (and there is no "certfile" -option). - -#### \`ci-name\` - -* Default: The name of the current CI system, or \`null\` when not on a known CI - platform. -* Type: null or String - -The name of a continuous integration system. If not set explicitly, npm will -detect the current CI environment using the -[\`@npmcli/ci-detect\`](http://npm.im/@npmcli/ci-detect) module. - -#### \`cidr\` - -* Default: null -* Type: null or String (can be set multiple times) - -This is a list of CIDR address to be used when configuring limited access -tokens with the \`npm token create\` command. - -#### \`color\` - -* Default: true unless the NO_COLOR environ is set to something other than '0' -* Type: "always" or Boolean - -If false, never shows colors. If \`"always"\` then always shows colors. If -true, then only prints color codes for tty file descriptors. - -#### \`commit-hooks\` - -* Default: true -* Type: Boolean - -Run git commit hooks when using the \`npm version\` command. - -#### \`depth\` - -* Default: \`Infinity\` if \`--all\` is set, otherwise \`1\` -* Type: null or Number - -The depth to go when recursing packages for \`npm ls\`. - -If not set, \`npm ls\` will show only the immediate dependencies of the root -project. If \`--all\` is set, then npm will show all dependencies by default. - -#### \`description\` - -* Default: true -* Type: Boolean - -Show the description in \`npm search\` - -#### \`diff\` - -* Default: -* Type: String (can be set multiple times) - -Define arguments to compare in \`npm diff\`. - -#### \`diff-dst-prefix\` - -* Default: "b/" -* Type: String - -Destination prefix to be used in \`npm diff\` output. - -#### \`diff-ignore-all-space\` - -* Default: false -* Type: Boolean - -Ignore whitespace when comparing lines in \`npm diff\`. - -#### \`diff-name-only\` - -* Default: false -* Type: Boolean - -Prints only filenames when using \`npm diff\`. - -#### \`diff-no-prefix\` - -* Default: false -* Type: Boolean - -Do not show any source or destination prefix in \`npm diff\` output. - -Note: this causes \`npm diff\` to ignore the \`--diff-src-prefix\` and -\`--diff-dst-prefix\` configs. - -#### \`diff-src-prefix\` - -* Default: "a/" -* Type: String - -Source prefix to be used in \`npm diff\` output. - -#### \`diff-text\` - -* Default: false -* Type: Boolean - -Treat all files as text in \`npm diff\`. - -#### \`diff-unified\` - -* Default: 3 -* Type: Number - -The number of lines of context to print in \`npm diff\`. - -#### \`dry-run\` - -* Default: false -* Type: Boolean - -Indicates that you don't want npm to make any changes and that it should -only report what it would have done. This can be passed into any of the -commands that modify your local installation, eg, \`install\`, \`update\`, -\`dedupe\`, \`uninstall\`, as well as \`pack\` and \`publish\`. - -Note: This is NOT honored by other network related commands, eg \`dist-tags\`, -\`owner\`, etc. - -#### \`editor\` - -* Default: The EDITOR or VISUAL environment variables, or 'notepad.exe' on - Windows, or 'vim' on Unix systems -* Type: String - -The command to run for \`npm edit\` and \`npm config edit\`. - -#### \`engine-strict\` - -* Default: false -* Type: Boolean - -If set to true, then npm will stubbornly refuse to install (or even consider -installing) any package that claims to not be compatible with the current -Node.js version. - -This can be overridden by setting the \`--force\` flag. - -#### \`fetch-retries\` - -* Default: 2 -* Type: Number - -The "retries" config for the \`retry\` module to use when fetching packages -from the registry. - -npm will retry idempotent read requests to the registry in the case of -network failures or 5xx HTTP errors. - -#### \`fetch-retry-factor\` - -* Default: 10 -* Type: Number - -The "factor" config for the \`retry\` module to use when fetching packages. - -#### \`fetch-retry-maxtimeout\` - -* Default: 60000 (1 minute) -* Type: Number - -The "maxTimeout" config for the \`retry\` module to use when fetching -packages. - -#### \`fetch-retry-mintimeout\` - -* Default: 10000 (10 seconds) -* Type: Number - -The "minTimeout" config for the \`retry\` module to use when fetching -packages. - -#### \`fetch-timeout\` - -* Default: 300000 (5 minutes) -* Type: Number - -The maximum amount of time to wait for HTTP requests to complete. - -#### \`force\` - -* Default: false -* Type: Boolean - -Removes various protections against unfortunate side effects, common -mistakes, unnecessary performance degradation, and malicious input. - -* Allow clobbering non-npm files in global installs. -* Allow the \`npm version\` command to work on an unclean git repository. -* Allow deleting the cache folder with \`npm cache clean\`. -* Allow installing packages that have an \`engines\` declaration requiring a - different version of npm. -* Allow installing packages that have an \`engines\` declaration requiring a - different version of \`node\`, even if \`--engine-strict\` is enabled. -* Allow \`npm audit fix\` to install modules outside your stated dependency - range (including SemVer-major changes). -* Allow unpublishing all versions of a published package. -* Allow conflicting peerDependencies to be installed in the root project. - -If you don't have a clear idea of what you want to do, it is strongly -recommended that you do not use this option! - -#### \`foreground-scripts\` - -* Default: false -* Type: Boolean - -Run all build scripts (ie, \`preinstall\`, \`install\`, and \`postinstall\`) -scripts for installed packages in the foreground process, sharing standard -input, output, and error with the main npm process. - -Note that this will generally make installs run slower, and be much noisier, -but can be useful for debugging. - -#### \`format-package-lock\` - -* Default: true -* Type: Boolean - -Format \`package-lock.json\` or \`npm-shrinkwrap.json\` as a human readable -file. - -#### \`fund\` - -* Default: true -* Type: Boolean - -When "true" displays the message at the end of each \`npm install\` -acknowledging the number of dependencies looking for funding. See [\`npm -fund\`](/commands/npm-fund) for details. - -#### \`git\` - -* Default: "git" -* Type: String - -The command to use for git commands. If git is installed on the computer, -but is not in the \`PATH\`, then set this to the full path to the git binary. - -#### \`git-tag-version\` - -* Default: true -* Type: Boolean - -Tag the commit when using the \`npm version\` command. - -#### \`global\` - -* Default: false -* Type: Boolean - -Operates in "global" mode, so that packages are installed into the \`prefix\` -folder instead of the current working directory. See -[folders](/configuring-npm/folders) for more on the differences in behavior. - -* packages are installed into the \`{prefix}/lib/node_modules\` folder, instead - of the current working directory. -* bin files are linked to \`{prefix}/bin\` -* man pages are linked to \`{prefix}/share/man\` - -#### \`global-style\` - -* Default: false -* Type: Boolean - -Causes npm to install the package into your local \`node_modules\` folder with -the same layout it uses with the global \`node_modules\` folder. Only your -direct dependencies will show in \`node_modules\` and everything they depend -on will be flattened in their \`node_modules\` folders. This obviously will -eliminate some deduping. If used with \`legacy-bundling\`, \`legacy-bundling\` -will be preferred. - -#### \`globalconfig\` - -* Default: The global --prefix setting plus 'etc/npmrc'. For example, - '/usr/local/etc/npmrc' -* Type: Path - -The config file to read for global config options. - -#### \`heading\` - -* Default: "npm" -* Type: String - -The string that starts all the debugging log output. - -#### \`https-proxy\` - -* Default: null -* Type: null or URL - -A proxy to use for outgoing https requests. If the \`HTTPS_PROXY\` or -\`https_proxy\` or \`HTTP_PROXY\` or \`http_proxy\` environment variables are set, -proxy settings will be honored by the underlying \`make-fetch-happen\` -library. - -#### \`if-present\` - -* Default: false -* Type: Boolean - -If true, npm will not exit with an error code when \`run-script\` is invoked -for a script that isn't defined in the \`scripts\` section of \`package.json\`. -This option can be used when it's desirable to optionally run a script when -it's present and fail if the script fails. This is useful, for example, when -running scripts that may only apply for some builds in an otherwise generic -CI setup. - -#### \`ignore-scripts\` - -* Default: false -* Type: Boolean - -If true, npm does not run scripts specified in package.json files. - -#### \`include\` - -* Default: -* Type: "prod", "dev", "optional", or "peer" (can be set multiple times) - -Option that allows for defining which types of dependencies to install. - -This is the inverse of \`--omit=\`. - -Dependency types specified in \`--include\` will not be omitted, regardless of -the order in which omit/include are specified on the command-line. - -#### \`include-staged\` - -* Default: false -* Type: Boolean - -Allow installing "staged" published packages, as defined by [npm RFC PR -#92](https://github.com/npm/rfcs/pull/92). - -This is experimental, and not implemented by the npm public registry. - -#### \`init-author-email\` - -* Default: "" -* Type: String - -The value \`npm init\` should use by default for the package author's email. - -#### \`init-author-name\` - -* Default: "" -* Type: String - -The value \`npm init\` should use by default for the package author's name. - -#### \`init-author-url\` - -* Default: "" -* Type: "" or URL - -The value \`npm init\` should use by default for the package author's -homepage. - -#### \`init-license\` - -* Default: "ISC" -* Type: String - -The value \`npm init\` should use by default for the package license. - -#### \`init-module\` - -* Default: "~/.npm-init.js" -* Type: Path - -A module that will be loaded by the \`npm init\` command. See the -documentation for the -[init-package-json](https://github.com/npm/init-package-json) module for -more information, or [npm init](/commands/npm-init). - -#### \`init-version\` - -* Default: "1.0.0" -* Type: SemVer string - -The value that \`npm init\` should use by default for the package version -number, if not already set in package.json. - -#### \`json\` - -* Default: false -* Type: Boolean - -Whether or not to output JSON data, rather than the normal output. - -This feature is currently experimental, and the output data structures for -many commands is either not implemented in JSON yet, or subject to change. -Only the output from \`npm ls --json\` and \`npm search --json\` are currently -valid. - -#### \`key\` - -* Default: null -* Type: null or String - -A client key to pass when accessing the registry. Values should be in PEM -format with newlines replaced by the string "\\n". For example: - -\`\`\`ini -key="-----BEGIN PRIVATE KEY-----\\nXXXX\\nXXXX\\n-----END PRIVATE KEY-----" -\`\`\` - -It is _not_ the path to a key file (and there is no "keyfile" option). - -#### \`legacy-bundling\` - -* Default: false -* Type: Boolean - -Causes npm to install the package such that versions of npm prior to 1.4, -such as the one included with node 0.8, can install the package. This -eliminates all automatic deduping. If used with \`global-style\` this option -will be preferred. - -#### \`legacy-peer-deps\` - -* Default: false -* Type: Boolean - -Causes npm to completely ignore \`peerDependencies\` when building a package -tree, as in npm versions 3 through 6. - -If a package cannot be installed because of overly strict \`peerDependencies\` -that collide, it provides a way to move forward resolving the situation. - -This differs from \`--omit=peer\`, in that \`--omit=peer\` will avoid unpacking -\`peerDependencies\` on disk, but will still design a tree such that -\`peerDependencies\` _could_ be unpacked in a correct place. - -Use of \`legacy-peer-deps\` is not recommended, as it will not enforce the -\`peerDependencies\` contract that meta-dependencies may rely on. - -#### \`link\` - -* Default: false -* Type: Boolean - -If true, then local installs will link if there is a suitable globally -installed package. - -Note that this means that local installs can cause things to be installed -into the global space at the same time. The link is only done if one of the -two conditions are met: - -* The package is not already installed globally, or -* the globally installed version is identical to the version that is being - installed locally. - -#### \`local-address\` - -* Default: null -* Type: IP Address - -The IP address of the local interface to use when making connections to the -npm registry. Must be IPv4 in versions of Node prior to 0.12. - -#### \`loglevel\` - -* Default: "notice" -* Type: "silent", "error", "warn", "notice", "http", "timing", "info", - "verbose", or "silly" - -What level of logs to report. On failure, *all* logs are written to -\`npm-debug.log\` in the current working directory. - -Any logs of a higher level than the setting are shown. The default is -"notice". - -#### \`logs-max\` - -* Default: 10 -* Type: Number - -The maximum number of log files to store. - -#### \`long\` - -* Default: false -* Type: Boolean - -Show extended information in \`npm ls\` and \`npm search\`. - -#### \`maxsockets\` - -* Default: 15 -* Type: Number - -The maximum number of connections to use per origin (protocol/host/port -combination). - -#### \`message\` - -* Default: "%s" -* Type: String - -Commit message which is used by \`npm version\` when creating version commit. - -Any "%s" in the message will be replaced with the version number. - -#### \`node-options\` - -* Default: null -* Type: null or String - -Options to pass through to Node.js via the \`NODE_OPTIONS\` environment -variable. This does not impact how npm itself is executed but it does impact -how lifecycle scripts are called. - -#### \`node-version\` - -* Default: Node.js \`process.version\` value -* Type: SemVer string - -The node version to use when checking a package's \`engines\` setting. - -#### \`noproxy\` - -* Default: The value of the NO_PROXY environment variable -* Type: String (can be set multiple times) - -Domain extensions that should bypass any proxies. - -Also accepts a comma-delimited string. - -#### \`npm-version\` - -* Default: Output of \`npm --version\` -* Type: SemVer string - -The npm version to use when checking a package's \`engines\` setting. - -#### \`offline\` - -* Default: false -* Type: Boolean - -Force offline mode: no network requests will be done during install. To -allow the CLI to fill in missing cache data, see \`--prefer-offline\`. - -#### \`omit\` - -* Default: 'dev' if the NODE_ENV environment variable is set to 'production', - otherwise empty. -* Type: "dev", "optional", or "peer" (can be set multiple times) - -Dependency types to omit from the installation tree on disk. - -Note that these dependencies _are_ still resolved and added to the -\`package-lock.json\` or \`npm-shrinkwrap.json\` file. They are just not -physically installed on disk. - -If a package type appears in both the \`--include\` and \`--omit\` lists, then -it will be included. - -If the resulting omit list includes \`'dev'\`, then the \`NODE_ENV\` environment -variable will be set to \`'production'\` for all lifecycle scripts. - -#### \`otp\` - -* Default: null -* Type: null or String - -This is a one-time password from a two-factor authenticator. It's needed -when publishing or changing package permissions with \`npm access\`. - -If not set, and a registry response fails with a challenge for a one-time -password, npm will prompt on the command line for one. - -#### \`package\` - -* Default: -* Type: String (can be set multiple times) - -The package to install for [\`npm exec\`](/commands/npm-exec) - -#### \`package-lock\` - -* Default: true -* Type: Boolean - -If set to false, then ignore \`package-lock.json\` files when installing. This -will also prevent _writing_ \`package-lock.json\` if \`save\` is true. - -When package package-locks are disabled, automatic pruning of extraneous -modules will also be disabled. To remove extraneous modules with -package-locks disabled use \`npm prune\`. - -#### \`package-lock-only\` - -* Default: false -* Type: Boolean - -If set to true, it will update only the \`package-lock.json\`, instead of -checking \`node_modules\` and downloading dependencies. - -#### \`parseable\` - -* Default: false -* Type: Boolean - -Output parseable results from commands that write to standard output. For -\`npm search\`, this will be tab-separated table format. - -#### \`prefer-offline\` - -* Default: false -* Type: Boolean - -If true, staleness checks for cached data will be bypassed, but missing data -will be requested from the server. To force full offline mode, use -\`--offline\`. - -#### \`prefer-online\` - -* Default: false -* Type: Boolean - -If true, staleness checks for cached data will be forced, making the CLI -look for updates immediately even for fresh package data. - -#### \`prefix\` - -* Default: In global mode, the folder where the node executable is installed. - In local mode, the nearest parent folder containing either a package.json - file or a node_modules folder. -* Type: Path - -The location to install global items. If set on the command line, then it -forces non-global commands to run in the specified folder. - -#### \`preid\` - -* Default: "" -* Type: String - -The "prerelease identifier" to use as a prefix for the "prerelease" part of -a semver. Like the \`rc\` in \`1.2.0-rc.8\`. - -#### \`progress\` - -* Default: \`true\` unless running in a known CI system -* Type: Boolean - -When set to \`true\`, npm will display a progress bar during time intensive -operations, if \`process.stderr\` is a TTY. - -Set to \`false\` to suppress the progress bar. - -#### \`proxy\` - -* Default: null -* Type: null, false, or URL - -A proxy to use for outgoing http requests. If the \`HTTP_PROXY\` or -\`http_proxy\` environment variables are set, proxy settings will be honored -by the underlying \`request\` library. - -#### \`read-only\` - -* Default: false -* Type: Boolean - -This is used to mark a token as unable to publish when configuring limited -access tokens with the \`npm token create\` command. - -#### \`rebuild-bundle\` - -* Default: true -* Type: Boolean - -Rebuild bundled dependencies after installation. - -#### \`registry\` - -* Default: "https://registry.npmjs.org/" -* Type: URL - -The base URL of the npm registry. - -#### \`save\` - -* Default: true -* Type: Boolean - -Save installed packages to a package.json file as dependencies. - -When used with the \`npm rm\` command, removes the dependency from -package.json. - -#### \`save-bundle\` - -* Default: false -* Type: Boolean - -If a package would be saved at install time by the use of \`--save\`, -\`--save-dev\`, or \`--save-optional\`, then also put it in the -\`bundleDependencies\` list. - -Ignore if \`--save-peer\` is set, since peerDependencies cannot be bundled. - -#### \`save-dev\` - -* Default: false -* Type: Boolean - -Save installed packages to a package.json file as \`devDependencies\`. - -#### \`save-exact\` - -* Default: false -* Type: Boolean - -Dependencies saved to package.json will be configured with an exact version -rather than using npm's default semver range operator. - -#### \`save-optional\` - -* Default: false -* Type: Boolean - -Save installed packages to a package.json file as \`optionalDependencies\`. - -#### \`save-peer\` - -* Default: false -* Type: Boolean - -Save installed packages. to a package.json file as \`peerDependencies\` - -#### \`save-prefix\` - -* Default: "^" -* Type: String - -Configure how versions of packages installed to a package.json file via -\`--save\` or \`--save-dev\` get prefixed. - -For example if a package has version \`1.2.3\`, by default its version is set -to \`^1.2.3\` which allows minor upgrades for that package, but after \`npm -config set save-prefix='~'\` it would be set to \`~1.2.3\` which only allows -patch upgrades. - -#### \`save-prod\` - -* Default: false -* Type: Boolean - -Save installed packages into \`dependencies\` specifically. This is useful if -a package already exists in \`devDependencies\` or \`optionalDependencies\`, but -you want to move it to be a non-optional production dependency. - -This is the default behavior if \`--save\` is true, and neither \`--save-dev\` -or \`--save-optional\` are true. - -#### \`scope\` - -* Default: the scope of the current project, if any, or "" -* Type: String - -Associate an operation with a scope for a scoped registry. - -Useful when logging in to a private registry for the first time: - -\`\`\`bash -npm login --scope=@mycorp --registry=https://registry.mycorp.com -\`\`\` - -This will cause \`@mycorp\` to be mapped to the registry for future -installation of packages specified according to the pattern -\`@mycorp/package\`. - -#### \`script-shell\` - -* Default: '/bin/sh' on POSIX systems, 'cmd.exe' on Windows -* Type: null or String - -The shell to use for scripts run with the \`npm run\` command. - -#### \`searchexclude\` - -* Default: "" -* Type: String - -Space-separated options that limit the results from search. - -#### \`searchlimit\` - -* Default: 20 -* Type: Number - -Number of items to limit search results to. Will not apply at all to legacy -searches. - -#### \`searchopts\` - -* Default: "" -* Type: String - -Space-separated options that are always passed to search. - -#### \`searchstaleness\` - -* Default: 900 -* Type: Number - -The age of the cache, in seconds, before another registry request is made if -using legacy search endpoint. - -#### \`shell\` - -* Default: SHELL environment variable, or "bash" on Posix, or "cmd.exe" on - Windows -* Type: String - -The shell to run for the \`npm explore\` command. - -#### \`sign-git-commit\` - -* Default: false -* Type: Boolean - -If set to true, then the \`npm version\` command will commit the new package -version using \`-S\` to add a signature. - -Note that git requires you to have set up GPG keys in your git configs for -this to work properly. - -#### \`sign-git-tag\` - -* Default: false -* Type: Boolean - -If set to true, then the \`npm version\` command will tag the version using -\`-s\` to add a signature. - -Note that git requires you to have set up GPG keys in your git configs for -this to work properly. - -#### \`strict-peer-deps\` - -* Default: false -* Type: Boolean - -If set to \`true\`, and \`--legacy-peer-deps\` is not set, then _any_ -conflicting \`peerDependencies\` will be treated as an install failure, even -if npm could reasonably guess the appropriate resolution based on non-peer -dependency relationships. - -By default, conflicting \`peerDependencies\` deep in the dependency graph will -be resolved using the nearest non-peer dependency specification, even if -doing so will result in some packages receiving a peer dependency outside -the range set in their package's \`peerDependencies\` object. - -When such and override is performed, a warning is printed, explaining the -conflict and the packages involved. If \`--strict-peer-deps\` is set, then -this warning is treated as a failure. - -#### \`strict-ssl\` - -* Default: true -* Type: Boolean - -Whether or not to do SSL key validation when making requests to the registry -via https. - -See also the \`ca\` config. - -#### \`tag\` - -* Default: "latest" -* Type: String - -If you ask npm to install a package and don't tell it a specific version, -then it will install the specified tag. - -Also the tag that is added to the package@version specified by the \`npm tag\` -command, if no explicit tag is given. - -#### \`tag-version-prefix\` - -* Default: "v" -* Type: String - -If set, alters the prefix used when tagging a new version when performing a -version increment using \`npm-version\`. To remove the prefix altogether, set -it to the empty string: \`""\`. - -Because other tools may rely on the convention that npm version tags look -like \`v1.0.0\`, _only use this property if it is absolutely necessary_. In -particular, use care when overriding this setting for public packages. - -#### \`timing\` - -* Default: false -* Type: Boolean - -If true, writes an \`npm-debug\` log to \`_logs\` and timing information to -\`_timing.json\`, both in your cache, even if the command completes -successfully. \`_timing.json\` is a newline delimited list of JSON objects. - -You can quickly view it with this [json](https://npm.im/json) command line: -\`npm exec -- json -g < ~/.npm/_timing.json\`. - -#### \`umask\` - -* Default: 0 -* Type: Octal numeric string in range 0000..0777 (0..511) - -The "umask" value to use when setting the file creation mode on files and -folders. - -Folders and executables are given a mode which is \`0o777\` masked against -this value. Other files are given a mode which is \`0o666\` masked against -this value. - -Note that the underlying system will _also_ apply its own umask value to -files and folders that are created, and npm does not circumvent this, but -rather adds the \`--umask\` config to it. - -Thus, the effective default umask value on most POSIX systems is 0o22, -meaning that folders and executables are created with a mode of 0o755 and -other files are created with a mode of 0o644. - -#### \`unicode\` - -* Default: false on windows, true on mac/unix systems with a unicode locale, - as defined by the LC_ALL, LC_CTYPE, or LANG environment variables. -* Type: Boolean - -When set to true, npm uses unicode characters in the tree output. When -false, it uses ascii characters instead of unicode glyphs. - -#### \`update-notifier\` - -* Default: true -* Type: Boolean - -Set to false to suppress the update notification when using an older version -of npm than the latest. - -#### \`usage\` - -* Default: false -* Type: Boolean - -Show short usage output about the command specified. - -#### \`user-agent\` - -* Default: "npm/{npm-version} node/{node-version} {platform} {arch} {ci}" -* Type: String - -Sets the User-Agent request header. The following fields are replaced with -their actual counterparts: - -* \`{npm-version}\` - The npm version in use -* \`{node-version}\` - The Node.js version in use -* \`{platform}\` - The value of \`process.platform\` -* \`{arch}\` - The value of \`process.arch\` -* \`{ci}\` - The value of the \`ci-name\` config, if set, prefixed with \`ci/\`, or - an empty string if \`ci-name\` is empty. - -#### \`userconfig\` - -* Default: "~/.npmrc" -* Type: Path - -The location of user-level configuration settings. - -This may be overridden by the \`npm_config_userconfig\` environment variable -or the \`--userconfig\` command line option, but may _not_ be overridden by -settings in the \`globalconfig\` file. - -#### \`version\` - -* Default: false -* Type: Boolean - -If true, output the npm version and exit successfully. - -Only relevant when specified explicitly on the command line. - -#### \`versions\` - -* Default: false -* Type: Boolean - -If true, output the npm version as well as node's \`process.versions\` map and -the version in the current working directory's \`package.json\` file if one -exists, and exit successfully. - -Only relevant when specified explicitly on the command line. - -#### \`viewer\` - -* Default: "man" on Posix, "browser" on Windows -* Type: String - -The program to use to view help content. - -Set to \`"browser"\` to view html help content in the default web browser. - -#### \`which\` - -* Default: null -* Type: null or Number - -If there are multiple funding sources, which 1-indexed source URL to open. - -#### \`workspace\` - -* Default: -* Type: String (can be set multiple times) - -Enable running a command in the context of the configured workspaces of the -current project while filtering by running only the workspaces defined by -this configuration option. - -Valid values for the \`workspace\` config are either: - Workspace names - Path -to a workspace directory - Path to a parent workspace directory (will result -to selecting all of the nested workspaces) - -This value is not exported to the environment for child processes. - -#### \`workspaces\` - -* Default: false -* Type: Boolean - -Enable running a command in the context of **all** the configured -workspaces. - -This value is not exported to the environment for child processes. - -#### \`yes\` - -* Default: null -* Type: null or Boolean - -Automatically answer "yes" to any prompts that npm might print on the -command line. - -#### \`also\` - -* Default: null -* Type: null, "dev", or "development" -* DEPRECATED: Please use --include=dev instead. - -When set to \`dev\` or \`development\`, this is an alias for \`--include=dev\`. - -#### \`auth-type\` - -* Default: "legacy" -* Type: "legacy", "sso", "saml", or "oauth" -* DEPRECATED: This method of SSO/SAML/OAuth is deprecated and will be removed - in a future version of npm in favor of web-based login. - -What authentication strategy to use with \`adduser\`/\`login\`. - -#### \`cache-max\` - -* Default: Infinity -* Type: Number -* DEPRECATED: This option has been deprecated in favor of \`--prefer-online\` - -\`--cache-max=0\` is an alias for \`--prefer-online\` - -#### \`cache-min\` - -* Default: 0 -* Type: Number -* DEPRECATED: This option has been deprecated in favor of \`--prefer-offline\`. - -\`--cache-min=9999 (or bigger)\` is an alias for \`--prefer-offline\`. - -#### \`dev\` - -* Default: false -* Type: Boolean -* DEPRECATED: Please use --include=dev instead. - -Alias for \`--include=dev\`. - -#### \`init.author.email\` - -* Default: "" -* Type: String -* DEPRECATED: Use \`--init-author-email\` instead. - -Alias for \`--init-author-email\` - -#### \`init.author.name\` - -* Default: "" -* Type: String -* DEPRECATED: Use \`--init-author-name\` instead. - -Alias for \`--init-author-name\` - -#### \`init.author.url\` - -* Default: "" -* Type: "" or URL -* DEPRECATED: Use \`--init-author-url\` instead. - -Alias for \`--init-author-url\` - -#### \`init.license\` - -* Default: "ISC" -* Type: String -* DEPRECATED: Use \`--init-license\` instead. - -Alias for \`--init-license\` - -#### \`init.module\` - -* Default: "~/.npm-init.js" -* Type: Path -* DEPRECATED: Use \`--init-module\` instead. - -Alias for \`--init-module\` - -#### \`init.version\` - -* Default: "1.0.0" -* Type: SemVer string -* DEPRECATED: Use \`--init-version\` instead. - -Alias for \`--init-version\` - -#### \`only\` - -* Default: null -* Type: null, "prod", or "production" -* DEPRECATED: Use \`--omit=dev\` to omit dev dependencies from the install. - -When set to \`prod\` or \`production\`, this is an alias for \`--omit=dev\`. - -#### \`optional\` - -* Default: null -* Type: null or Boolean -* DEPRECATED: Use \`--omit=optional\` to exclude optional dependencies, or - \`--include=optional\` to include them. - -Default value does install optional deps unless otherwise omitted. - -Alias for --include=optional or --omit=optional - -#### \`production\` - -* Default: null -* Type: null or Boolean -* DEPRECATED: Use \`--omit=dev\` instead. - -Alias for \`--omit=dev\` - -#### \`shrinkwrap\` - -* Default: true -* Type: Boolean -* DEPRECATED: Use the --package-lock setting instead. - -Alias for --package-lock - -#### \`sso-poll-frequency\` - -* Default: 500 -* Type: Number -* DEPRECATED: The --auth-type method of SSO/SAML/OAuth will be removed in a - future version of npm in favor of web-based login. - -When used with SSO-enabled \`auth-type\`s, configures how regularly the -registry should be polled while the user is completing authentication. - -#### \`sso-type\` - -* Default: "oauth" -* Type: null, "oauth", or "saml" -* DEPRECATED: The --auth-type method of SSO/SAML/OAuth will be removed in a - future version of npm in favor of web-based login. - -If \`--auth-type=sso\`, the type of SSO type to use. - -#### \`tmp\` - -* Default: The value returned by the Node.js \`os.tmpdir()\` method - -* Type: Path -* DEPRECATED: This setting is no longer used. npm stores temporary files in a - special location in the cache, and they are managed by - [\`cacache\`](http://npm.im/cacache). - -Historically, the location where temporary files were stored. No longer -relevant. -` diff --git a/tap-snapshots/test-lib-utils-config-index.js-TAP.test.js b/tap-snapshots/test-lib-utils-config-index.js-TAP.test.js deleted file mode 100644 index 1e5ca2324..000000000 --- a/tap-snapshots/test-lib-utils-config-index.js-TAP.test.js +++ /dev/null @@ -1,133 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/utils/config/index.js TAP > shorthands 1`] = ` -Object { - "?": Array [ - "--usage", - ], - "a": Array [ - "--all", - ], - "B": Array [ - "--save-bundle", - ], - "c": Array [ - "--call", - ], - "C": Array [ - "--prefix", - ], - "d": Array [ - "--loglevel", - "info", - ], - "D": Array [ - "--save-dev", - ], - "dd": Array [ - "--loglevel", - "verbose", - ], - "ddd": Array [ - "--loglevel", - "silly", - ], - "desc": Array [ - "--description", - ], - "E": Array [ - "--save-exact", - ], - "enjoy-by": Array [ - "--before", - ], - "f": Array [ - "--force", - ], - "g": Array [ - "--global", - ], - "h": Array [ - "--usage", - ], - "H": Array [ - "--usage", - ], - "help": Array [ - "--usage", - ], - "l": Array [ - "--long", - ], - "local": Array [ - "--no-global", - ], - "m": Array [ - "--message", - ], - "n": Array [ - "--no-yes", - ], - "no": Array [ - "--no-yes", - ], - "O": Array [ - "--save-optional", - ], - "p": Array [ - "--parseable", - ], - "P": Array [ - "--save-prod", - ], - "porcelain": Array [ - "--parseable", - ], - "q": Array [ - "--loglevel", - "warn", - ], - "quiet": Array [ - "--loglevel", - "warn", - ], - "readonly": Array [ - "--read-only", - ], - "reg": Array [ - "--registry", - ], - "s": Array [ - "--loglevel", - "silent", - ], - "S": Array [ - "--save", - ], - "silent": Array [ - "--loglevel", - "silent", - ], - "v": Array [ - "--version", - ], - "verbose": Array [ - "--loglevel", - "verbose", - ], - "w": Array [ - "--workspace", - ], - "ws": Array [ - "--workspaces", - ], - "y": Array [ - "--yes", - ], -} -` diff --git a/tap-snapshots/test-lib-utils-error-handler.js-TAP.test.js b/tap-snapshots/test-lib-utils-error-handler.js-TAP.test.js deleted file mode 100644 index 909051cda..000000000 --- a/tap-snapshots/test-lib-utils-error-handler.js-TAP.test.js +++ /dev/null @@ -1,23 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/utils/error-handler.js TAP handles unknown error > should have expected log contents for unknown error 1`] = ` -0 verbose code 1 -1 error foo A complete log of this run can be found in: -1 error foo {CWD}/cachefolder/_logs/expecteddate-debug.log -2 verbose stack Error: ERROR -3 verbose cwd {CWD} -4 verbose Foo 1.0.0 -5 verbose argv "/node" "{CWD}/test/lib/utils/error-handler.js" -6 verbose node v1.0.0 -7 verbose npm v1.0.0 -8 error foo code ERROR -9 error foo ERR ERROR -10 error foo ERR ERROR -11 verbose exit 1 - -` diff --git a/tap-snapshots/test-lib-utils-error-message.js-TAP.test.js b/tap-snapshots/test-lib-utils-error-message.js-TAP.test.js deleted file mode 100644 index bcf514449..000000000 --- a/tap-snapshots/test-lib-utils-error-message.js-TAP.test.js +++ /dev/null @@ -1,1268 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/utils/error-message.js TAP 404 name with error > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "404", - "", - ], - Array [ - "404", - "", - "'node_modules' is not in the npm registry.", - ], - Array [ - "404", - "This package name is not valid, because", - "", - ], - Array [ - "404", - " 1. node_modules is a blacklisted name", - ], - Array [ - "404", - "\\nNote that you can also install from a", - ], - Array [ - "404", - "tarball, folder, http url, or git url.", - ], - ], - "summary": Array [ - Array [ - "404", - "not found", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP 404 name with warning > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "404", - "", - ], - Array [ - "404", - "", - "'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' is not in the npm registry.", - ], - Array [ - "404", - "This package name is not valid, because", - "", - ], - Array [ - "404", - " 1. name can no longer contain more than 214 characters", - ], - Array [ - "404", - "\\nNote that you can also install from a", - ], - Array [ - "404", - "tarball, folder, http url, or git url.", - ], - ], - "summary": Array [ - Array [ - "404", - "not found", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP 404 no package id > must match snapshot 1`] = ` -Object { - "detail": Array [], - "summary": Array [ - Array [ - "404", - "not found", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP 404 you should publish it > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "404", - "", - ], - Array [ - "404", - "", - "'yolo' is not in the npm registry.", - ], - Array [ - "404", - "You should bug the author to publish it (or use the name yourself!)", - ], - Array [ - "404", - "\\nNote that you can also install from a", - ], - Array [ - "404", - "tarball, folder, http url, or git url.", - ], - ], - "summary": Array [ - Array [ - "404", - "not found", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP bad engine with config loaded > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "notsup", - "Not compatible with your version of node/npm: some@package\\nRequired: undefined\\nActual: {\\"npm\\":\\"123.69.420-npm\\",\\"node\\":\\"99.99.99\\"}", - ], - ], - "summary": Array [ - Array [ - "engine", - "foo", - ], - Array [ - "engine", - "Not compatible with your version of node/npm: some@package", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP bad platform array os/arch > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "notsup", - "Valid OS: !yours,mine\\nValid Arch: x420,x69\\nActual OS: posix\\nActual Arch: x64", - ], - ], - "summary": Array [ - Array [ - "notsup", - "Unsupported platform for lodash@1.0.0: wanted {\\"os\\":\\"!yours,mine\\",\\"arch\\":\\"x420,x69\\"} (current: {\\"os\\":\\"posix\\",\\"arch\\":\\"x64\\"})", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP bad platform string os/arch > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "notsup", - "Valid OS: !yours\\nValid Arch: x420\\nActual OS: posix\\nActual Arch: x64", - ], - ], - "summary": Array [ - Array [ - "notsup", - "Unsupported platform for lodash@1.0.0: wanted {\\"os\\":\\"!yours\\",\\"arch\\":\\"x420\\"} (current: {\\"os\\":\\"posix\\",\\"arch\\":\\"x64\\"})", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP default message > must match snapshot 1`] = ` -Object { - "detail": Array [], - "summary": Array [ - Array [ - "", - "error object", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP default message > must match snapshot 2`] = ` -Object { - "detail": Array [], - "summary": Array [ - Array [ - "", - "error string", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP default message > must match snapshot 3`] = ` -Object { - "detail": Array [ - Array [ - "signal", - "SIGYOLO", - ], - Array [ - "command", - "some command", - "a", - "r", - "g", - "s", - ], - Array [ - "", - "stdout", - ], - Array [ - "", - "stderr", - ], - ], - "summary": Array [ - Array [ - "", - "cmd err", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":false,"loaded":false,"cachePath":false,"cacheDest":false} > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "\\nThe operation was rejected by your operating system.\\nIt is likely you do not have the permissions to access this file as the current user\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", - ], - ], - "summary": Array [ - Array [ - "", - Error: whoopsie { - "code": "EACCES", - "dest": "/not/cache/dir/dest", - "path": "/not/cache/dir/path", - }, - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":false,"loaded":false,"cachePath":false,"cacheDest":false} > must match snapshot 2`] = ` -Array [] -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":false,"loaded":false,"cachePath":false,"cacheDest":true} > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "\\nThe operation was rejected by your operating system.\\nIt is likely you do not have the permissions to access this file as the current user\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", - ], - ], - "summary": Array [ - Array [ - "", - Error: whoopsie { - "code": "EACCES", - "dest": "/some/cache/dir/dest", - "path": "/not/cache/dir/path", - }, - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":false,"loaded":false,"cachePath":false,"cacheDest":true} > must match snapshot 2`] = ` -Array [] -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":false,"loaded":false,"cachePath":true,"cacheDest":false} > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "\\nThe operation was rejected by your operating system.\\nIt is likely you do not have the permissions to access this file as the current user\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", - ], - ], - "summary": Array [ - Array [ - "", - Error: whoopsie { - "code": "EACCES", - "dest": "/not/cache/dir/dest", - "path": "/some/cache/dir/path", - }, - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":false,"loaded":false,"cachePath":true,"cacheDest":false} > must match snapshot 2`] = ` -Array [] -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":false,"loaded":false,"cachePath":true,"cacheDest":true} > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "\\nThe operation was rejected by your operating system.\\nIt is likely you do not have the permissions to access this file as the current user\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", - ], - ], - "summary": Array [ - Array [ - "", - Error: whoopsie { - "code": "EACCES", - "dest": "/some/cache/dir/dest", - "path": "/some/cache/dir/path", - }, - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":false,"loaded":false,"cachePath":true,"cacheDest":true} > must match snapshot 2`] = ` -Array [] -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":false,"loaded":true,"cachePath":false,"cacheDest":false} > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "\\nThe operation was rejected by your operating system.\\nIt is likely you do not have the permissions to access this file as the current user\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", - ], - ], - "summary": Array [ - Array [ - "", - Error: whoopsie { - "code": "EACCES", - "dest": "/not/cache/dir/dest", - "path": "/not/cache/dir/path", - }, - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":false,"loaded":true,"cachePath":false,"cacheDest":false} > must match snapshot 2`] = ` -Array [] -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":false,"loaded":true,"cachePath":false,"cacheDest":true} > must match snapshot 1`] = ` -Object { - "detail": Array [], - "summary": Array [ - Array [ - "", - "\\nYour cache folder contains root-owned files, due to a bug in\\nprevious versions of npm which has since been addressed.\\n\\nTo permanently fix this problem, please run:\\n sudo chown -R 69:420 \\"/some/cache/dir\\"", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":false,"loaded":true,"cachePath":false,"cacheDest":true} > must match snapshot 2`] = ` -Array [ - Array [ - "dummy stack trace", - ], -] -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":false,"loaded":true,"cachePath":true,"cacheDest":false} > must match snapshot 1`] = ` -Object { - "detail": Array [], - "summary": Array [ - Array [ - "", - "\\nYour cache folder contains root-owned files, due to a bug in\\nprevious versions of npm which has since been addressed.\\n\\nTo permanently fix this problem, please run:\\n sudo chown -R 69:420 \\"/some/cache/dir\\"", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":false,"loaded":true,"cachePath":true,"cacheDest":false} > must match snapshot 2`] = ` -Array [ - Array [ - "dummy stack trace", - ], -] -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":false,"loaded":true,"cachePath":true,"cacheDest":true} > must match snapshot 1`] = ` -Object { - "detail": Array [], - "summary": Array [ - Array [ - "", - "\\nYour cache folder contains root-owned files, due to a bug in\\nprevious versions of npm which has since been addressed.\\n\\nTo permanently fix this problem, please run:\\n sudo chown -R 69:420 \\"/some/cache/dir\\"", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":false,"loaded":true,"cachePath":true,"cacheDest":true} > must match snapshot 2`] = ` -Array [ - Array [ - "dummy stack trace", - ], -] -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":true,"loaded":false,"cachePath":false,"cacheDest":false} > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "\\nThe operation was rejected by your operating system.\\nIt's possible that the file was already in use (by a text editor or antivirus),\\nor that you lack permissions to access it.\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", - ], - ], - "summary": Array [ - Array [ - "", - Error: whoopsie { - "code": "EACCES", - "dest": "/not/cache/dir/dest", - "path": "/not/cache/dir/path", - }, - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":true,"loaded":false,"cachePath":false,"cacheDest":false} > must match snapshot 2`] = ` -Array [] -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":true,"loaded":false,"cachePath":false,"cacheDest":true} > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "\\nThe operation was rejected by your operating system.\\nIt's possible that the file was already in use (by a text editor or antivirus),\\nor that you lack permissions to access it.\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", - ], - ], - "summary": Array [ - Array [ - "", - Error: whoopsie { - "code": "EACCES", - "dest": "/some/cache/dir/dest", - "path": "/not/cache/dir/path", - }, - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":true,"loaded":false,"cachePath":false,"cacheDest":true} > must match snapshot 2`] = ` -Array [] -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":true,"loaded":false,"cachePath":true,"cacheDest":false} > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "\\nThe operation was rejected by your operating system.\\nIt's possible that the file was already in use (by a text editor or antivirus),\\nor that you lack permissions to access it.\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", - ], - ], - "summary": Array [ - Array [ - "", - Error: whoopsie { - "code": "EACCES", - "dest": "/not/cache/dir/dest", - "path": "/some/cache/dir/path", - }, - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":true,"loaded":false,"cachePath":true,"cacheDest":false} > must match snapshot 2`] = ` -Array [] -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":true,"loaded":false,"cachePath":true,"cacheDest":true} > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "\\nThe operation was rejected by your operating system.\\nIt's possible that the file was already in use (by a text editor or antivirus),\\nor that you lack permissions to access it.\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", - ], - ], - "summary": Array [ - Array [ - "", - Error: whoopsie { - "code": "EACCES", - "dest": "/some/cache/dir/dest", - "path": "/some/cache/dir/path", - }, - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":true,"loaded":false,"cachePath":true,"cacheDest":true} > must match snapshot 2`] = ` -Array [] -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":true,"loaded":true,"cachePath":false,"cacheDest":false} > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "\\nThe operation was rejected by your operating system.\\nIt's possible that the file was already in use (by a text editor or antivirus),\\nor that you lack permissions to access it.\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", - ], - ], - "summary": Array [ - Array [ - "", - Error: whoopsie { - "code": "EACCES", - "dest": "/not/cache/dir/dest", - "path": "/not/cache/dir/path", - }, - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":true,"loaded":true,"cachePath":false,"cacheDest":false} > must match snapshot 2`] = ` -Array [] -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":true,"loaded":true,"cachePath":false,"cacheDest":true} > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "\\nThe operation was rejected by your operating system.\\nIt's possible that the file was already in use (by a text editor or antivirus),\\nor that you lack permissions to access it.\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", - ], - ], - "summary": Array [ - Array [ - "", - Error: whoopsie { - "code": "EACCES", - "dest": "/some/cache/dir/dest", - "path": "/not/cache/dir/path", - }, - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":true,"loaded":true,"cachePath":false,"cacheDest":true} > must match snapshot 2`] = ` -Array [] -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":true,"loaded":true,"cachePath":true,"cacheDest":false} > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "\\nThe operation was rejected by your operating system.\\nIt's possible that the file was already in use (by a text editor or antivirus),\\nor that you lack permissions to access it.\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", - ], - ], - "summary": Array [ - Array [ - "", - Error: whoopsie { - "code": "EACCES", - "dest": "/not/cache/dir/dest", - "path": "/some/cache/dir/path", - }, - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":true,"loaded":true,"cachePath":true,"cacheDest":false} > must match snapshot 2`] = ` -Array [] -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":true,"loaded":true,"cachePath":true,"cacheDest":true} > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "\\nThe operation was rejected by your operating system.\\nIt's possible that the file was already in use (by a text editor or antivirus),\\nor that you lack permissions to access it.\\n\\nIf you believe this might be a permissions issue, please double-check the\\npermissions of the file and its containing directories, or try running\\nthe command again as root/Administrator.", - ], - ], - "summary": Array [ - Array [ - "", - Error: whoopsie { - "code": "EACCES", - "dest": "/some/cache/dir/dest", - "path": "/some/cache/dir/path", - }, - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eacces/eperm {"windows":true,"loaded":true,"cachePath":true,"cacheDest":true} > must match snapshot 2`] = ` -Array [] -` - -exports[`test/lib/utils/error-message.js TAP enoent without a file > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "enoent", - "This is related to npm not being able to find a file.\\n", - ], - ], - "summary": Array [ - Array [ - "enoent", - "foo", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP enolock without a command > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "Try creating one first with: npm i --package-lock-only", - ], - Array [ - "", - "Original error: foo", - ], - ], - "summary": Array [ - Array [ - "", - "This command requires an existing lockfile.", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eotp/e401 401, no auth headers > must match snapshot 1`] = ` -Object { - "detail": Array [], - "summary": Array [ - Array [ - "", - "nope", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eotp/e401 401, no message > must match snapshot 1`] = ` -Object { - "detail": Array [], - "summary": Array [ - Array [ - "", - Object { - "code": "E401", - }, - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eotp/e401 one-time pass challenge code > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "You can provide a one-time password by passing --otp= to the command you ran.\\nIf you already provided a one-time password then it is likely that you either typoed\\nit, or it timed out. Please try again.", - ], - ], - "summary": Array [ - Array [ - "", - "This operation requires a one-time password from your authenticator.", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eotp/e401 one-time pass challenge message > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "You can provide a one-time password by passing --otp= to the command you ran.\\nIf you already provided a one-time password then it is likely that you either typoed\\nit, or it timed out. Please try again.", - ], - ], - "summary": Array [ - Array [ - "", - "This operation requires a one-time password from your authenticator.", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eotp/e401 www-authenticate challenges Basic realm=by, charset="UTF-8", challenge="your friends" > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "If you were trying to login, change your password, create an\\nauthentication token or enable two-factor authentication then\\nthat means you likely typed your password in incorrectly.\\nPlease try again, or recover your password at:\\n https://www.npmjs.com/forgot\\n\\nIf you were doing some other operation then your saved credentials are\\nprobably out of date. To correct this please try logging in again with:\\n npm login", - ], - ], - "summary": Array [ - Array [ - "", - "Incorrect or missing password.", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eotp/e401 www-authenticate challenges Bearer realm=do, charset="UTF-8", challenge="yourself" > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "To correct this please trying logging in again with:\\n npm login", - ], - ], - "summary": Array [ - Array [ - "", - "Unable to authenticate, your authentication token seems to be invalid.", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eotp/e401 www-authenticate challenges PickACardAnyCard realm=friday, charset="UTF-8" > must match snapshot 1`] = ` -Object { - "detail": Array [], - "summary": Array [ - Array [ - "", - "challenge!", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP eotp/e401 www-authenticate challenges WashYourHands, charset="UTF-8" > must match snapshot 1`] = ` -Object { - "detail": Array [], - "summary": Array [ - Array [ - "", - "challenge!", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP explain ERESOLVE errors > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "", - ], - Array [ - "", - "explanation", - ], - ], - "summary": Array [ - Array [ - "ERESOLVE", - "could not resolve", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 1`] = ` -Object { - "detail": Array [], - "summary": Array [ - Array [ - "audit", - "foo", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 10`] = ` -Object { - "detail": Array [ - Array [ - "network", - "This is a problem related to network connectivity.\\nIn most cases you are behind a proxy or have bad network settings.\\n\\nIf you are behind a proxy, please make sure that the\\n'proxy' config is set properly. See: 'npm help config'", - ], - ], - "summary": Array [ - Array [ - "network", - "foo", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 11`] = ` -Object { - "detail": Array [ - Array [ - "network", - "This is a problem related to network connectivity.\\nIn most cases you are behind a proxy or have bad network settings.\\n\\nIf you are behind a proxy, please make sure that the\\n'proxy' config is set properly. See: 'npm help config'", - ], - ], - "summary": Array [ - Array [ - "network", - "foo", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 12`] = ` -Object { - "detail": Array [ - Array [ - "network", - "This is a problem related to network connectivity.\\nIn most cases you are behind a proxy or have bad network settings.\\n\\nIf you are behind a proxy, please make sure that the\\n'proxy' config is set properly. See: 'npm help config'", - ], - ], - "summary": Array [ - Array [ - "network", - "foo", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 13`] = ` -Object { - "detail": Array [ - Array [ - "notsup", - "Not compatible with your version of node/npm: some@package\\nRequired: undefined\\nActual: {\\"npm\\":\\"123.69.420-npm\\",\\"node\\":\\"123.69.420-node\\"}", - ], - ], - "summary": Array [ - Array [ - "engine", - "foo", - ], - Array [ - "engine", - "Not compatible with your version of node/npm: some@package", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 14`] = ` -Object { - "detail": Array [ - Array [ - "nospc", - "There appears to be insufficient space on your system to finish.\\nClear up some disk space and try again.", - ], - ], - "summary": Array [ - Array [ - "nospc", - "foo", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 15`] = ` -Object { - "detail": Array [ - Array [ - "rofs", - "Often virtualized file systems, or other file systems\\nthat don't support symlinks, give this error.", - ], - ], - "summary": Array [ - Array [ - "rofs", - "foo", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 16`] = ` -Object { - "detail": Array [ - Array [ - "enoent", - "This is related to npm not being able to find a file.\\n\\nCheck if the file '/some/file' is present.", - ], - ], - "summary": Array [ - Array [ - "enoent", - "foo", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 17`] = ` -Object { - "detail": Array [ - Array [ - "typeerror", - "This is an error with npm itself. Please report this error at:\\n https://github.com/npm/cli/issues", - ], - ], - "summary": Array [ - Array [ - "typeerror", - "dummy stack trace", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 18`] = ` -Object { - "detail": Array [ - Array [ - "typeerror", - "This is an error with npm itself. Please report this error at:\\n https://github.com/npm/cli/issues", - ], - ], - "summary": Array [ - Array [ - "typeerror", - "dummy stack trace", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 19`] = ` -Object { - "detail": Array [ - Array [ - "typeerror", - "This is an error with npm itself. Please report this error at:\\n https://github.com/npm/cli/issues", - ], - ], - "summary": Array [ - Array [ - "typeerror", - "dummy stack trace", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 2`] = ` -Object { - "detail": Array [ - Array [ - "audit", - "Try creating one first with: npm i --package-lock-only", - ], - Array [ - "audit", - "Original error: foo", - ], - ], - "summary": Array [ - Array [ - "audit", - "This command requires an existing lockfile.", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 20`] = ` -Object { - "detail": Array [ - Array [ - "typeerror", - "This is an error with npm itself. Please report this error at:\\n https://github.com/npm/cli/issues", - ], - ], - "summary": Array [ - Array [ - "typeerror", - "dummy stack trace", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 21`] = ` -Object { - "detail": Array [ - Array [ - "notarget", - "In most cases you or one of your dependencies are requesting\\na package version that doesn't exist.", - ], - ], - "summary": Array [ - Array [ - "notarget", - "foo", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 22`] = ` -Object { - "detail": Array [ - Array [ - "403", - "In most cases, you or one of your dependencies are requesting\\na package version that is forbidden by your security policy, or\\non a server you do not have access to.", - ], - ], - "summary": Array [ - Array [ - "403", - "foo", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 3`] = ` -Object { - "detail": Array [ - Array [ - "", - "\\nIf you are behind a proxy, please make sure that the\\n'proxy' config is set properly. See: 'npm help config'", - ], - ], - "summary": Array [ - Array [ - "", - Error: foo { - "code": "ECONNREFUSED", - "file": "/some/file", - "path": "/some/path", - "pkgid": "some@package", - }, - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 4`] = ` -Object { - "detail": Array [ - Array [ - "", - "\\nFailed using git.\\nPlease check if you have git installed and in your PATH.", - ], - ], - "summary": Array [ - Array [ - "", - "foo", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 5`] = ` -Object { - "detail": Array [ - Array [ - "publish fail", - "Update the 'version' field in package.json and try again.", - ], - Array [ - "publish fail", - "", - ], - Array [ - "publish fail", - "To automatically increment version numbers, see:", - ], - Array [ - "publish fail", - " npm help version", - ], - ], - "summary": Array [ - Array [ - "publish fail", - "Cannot publish over existing version.", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 6`] = ` -Object { - "detail": Array [ - Array [ - "git", - "Refusing to remove it. Update manually,\\nor move it out of the way first.", - ], - ], - "summary": Array [ - Array [ - "git", - "foo", - ], - Array [ - "git", - " /some/path", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 7`] = ` -Object { - "detail": Array [ - Array [ - "", - "Remove the existing file and try again, or run npm", - ], - Array [ - "", - "with --force to overwrite files recklessly.", - ], - ], - "summary": Array [ - Array [ - "", - "foo", - ], - Array [ - "", - "File exists: /some/path", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 8`] = ` -Object { - "detail": Array [ - Array [ - "need auth", - "You need to authorize this machine using \`npm adduser\`", - ], - ], - "summary": Array [ - Array [ - "need auth", - "foo", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP just simple messages > must match snapshot 9`] = ` -Object { - "detail": Array [ - Array [ - "network", - "This is a problem related to network connectivity.\\nIn most cases you are behind a proxy or have bad network settings.\\n\\nIf you are behind a proxy, please make sure that the\\n'proxy' config is set properly. See: 'npm help config'", - ], - ], - "summary": Array [ - Array [ - "network", - "foo", - ], - ], -} -` - -exports[`test/lib/utils/error-message.js TAP replace message/stack sensistive info > must match snapshot 1`] = ` -Object { - "detail": Array [], - "summary": Array [ - Array [ - "audit", - "Error at registry: https://user:***@registry.npmjs.org/", - ], - ], -} -` - -exports[`v TAP json parse json somewhere else > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "JSON.parse", - "Failed to parse JSON data.\\nNote: package.json must be actual JSON, not just JavaScript.", - ], - ], - "summary": Array [ - Array [ - "JSON.parse", - "not json", - ], - ], -} -` - -exports[`v TAP json parse just regular bad json in package.json > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "JSON.parse", - "Failed to parse JSON data.\\nNote: package.json must be actual JSON, not just JavaScript.", - ], - ], - "summary": Array [ - Array [ - "JSON.parse", - "not json", - ], - ], -} -` - -exports[`v TAP json parse merge conflict in package.json > must match snapshot 1`] = ` -Object { - "detail": Array [ - Array [ - "", - "Merge conflict detected in your package.json.\\n\\nPlease resolve the package.json conflict and retry the command:\\n\\n$ arg v", - ], - ], - "summary": Array [], -} -` diff --git a/tap-snapshots/test-lib-utils-explain-dep.js-TAP.test.js b/tap-snapshots/test-lib-utils-explain-dep.js-TAP.test.js deleted file mode 100644 index 7e77081f9..000000000 --- a/tap-snapshots/test-lib-utils-explain-dep.js-TAP.test.js +++ /dev/null @@ -1,201 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/utils/explain-dep.js TAP > ellipses test one 1`] = ` -manydep@1.0.0 - manydep@"1.0.0" from prod-dep@1.2.3 - node_modules/prod-dep - prod-dep@"1.x" from the root project - 7 more (optdep, extra-neos, deep-dev, peer, the root project, ...) -` - -exports[`test/lib/utils/explain-dep.js TAP > ellipses test two 1`] = ` -manydep@1.0.0 - manydep@"1.0.0" from prod-dep@1.2.3 - node_modules/prod-dep - prod-dep@"1.x" from the root project - 6 more (optdep, extra-neos, deep-dev, peer, the root project, a package with a pretty long name) -` - -exports[`test/lib/utils/explain-dep.js TAP bundled > explain color deep 1`] = ` -bundle-of-joy@1.0.0 bundled -node_modules/bundle-of-joy - bundled prod-dep@"1.x" from the root project -` - -exports[`test/lib/utils/explain-dep.js TAP bundled > explain nocolor shallow 1`] = ` -bundle-of-joy@1.0.0 bundled -node_modules/bundle-of-joy - bundled prod-dep@"1.x" from the root project -` - -exports[`test/lib/utils/explain-dep.js TAP bundled > print color 1`] = ` -bundle-of-joy@1.0.0 bundled -node_modules/bundle-of-joy -` - -exports[`test/lib/utils/explain-dep.js TAP bundled > print nocolor 1`] = ` -bundle-of-joy@1.0.0 bundled -node_modules/bundle-of-joy -` - -exports[`test/lib/utils/explain-dep.js TAP deepDev > explain color deep 1`] = ` -deep-dev@2.3.4 dev -node_modules/deep-dev - deep-dev@"2.x" from metadev@3.4.5 - node_modules/dev/node_modules/metadev - metadev@"3.x" from topdev@4.5.6 - node_modules/topdev - dev topdev@"4.x" from the root project -` - -exports[`test/lib/utils/explain-dep.js TAP deepDev > explain nocolor shallow 1`] = ` -deep-dev@2.3.4 dev -node_modules/deep-dev - deep-dev@"2.x" from metadev@3.4.5 - node_modules/dev/node_modules/metadev - metadev@"3.x" from topdev@4.5.6 - node_modules/topdev -` - -exports[`test/lib/utils/explain-dep.js TAP deepDev > print color 1`] = ` -deep-dev@2.3.4 dev -node_modules/deep-dev -` - -exports[`test/lib/utils/explain-dep.js TAP deepDev > print nocolor 1`] = ` -deep-dev@2.3.4 dev -node_modules/deep-dev -` - -exports[`test/lib/utils/explain-dep.js TAP extraneous > explain color deep 1`] = ` -extra-neos@1337.420.69-lol extraneous -node_modules/extra-neos -` - -exports[`test/lib/utils/explain-dep.js TAP extraneous > explain nocolor shallow 1`] = ` -extra-neos@1337.420.69-lol extraneous -node_modules/extra-neos -` - -exports[`test/lib/utils/explain-dep.js TAP extraneous > print color 1`] = ` -extra-neos@1337.420.69-lol extraneous -node_modules/extra-neos -` - -exports[`test/lib/utils/explain-dep.js TAP extraneous > print nocolor 1`] = ` -extra-neos@1337.420.69-lol extraneous -node_modules/extra-neos -` - -exports[`test/lib/utils/explain-dep.js TAP manyDeps > explain color deep 1`] = ` -manydep@1.0.0 - manydep@"1.0.0" from prod-dep@1.2.3 - node_modules/prod-dep - prod-dep@"1.x" from the root project - optional manydep@"1.x" from optdep@1.0.0 optional - node_modules/optdep - optional optdep@"1.0.0" from the root project - manydep@"1.0.x" from extra-neos@1337.420.69-lol extraneous - node_modules/extra-neos - dev manydep@"*" from deep-dev@2.3.4 dev - node_modules/deep-dev - deep-dev@"2.x" from metadev@3.4.5 - node_modules/dev/node_modules/metadev - metadev@"3.x" from topdev@4.5.6 - node_modules/topdev - dev topdev@"4.x" from the root project - peer manydep@">1.0.0-beta <1.0.1" from peer@1.0.0 peer - node_modules/peer - peer peer@"1.0.0" from the root project - manydep@">1.0.0-beta <1.0.1" from the root project - manydep@"1" from a package with a pretty long name@1.2.3 - manydep@"1" from another package with a pretty long name@1.2.3 - manydep@"1" from yet another a package with a pretty long name@1.2.3 -` - -exports[`test/lib/utils/explain-dep.js TAP manyDeps > explain nocolor shallow 1`] = ` -manydep@1.0.0 - manydep@"1.0.0" from prod-dep@1.2.3 - node_modules/prod-dep - prod-dep@"1.x" from the root project - 8 more (optdep, extra-neos, deep-dev, peer, the root project, ...) -` - -exports[`test/lib/utils/explain-dep.js TAP manyDeps > print color 1`] = ` -manydep@1.0.0 -` - -exports[`test/lib/utils/explain-dep.js TAP manyDeps > print nocolor 1`] = ` -manydep@1.0.0 -` - -exports[`test/lib/utils/explain-dep.js TAP optional > explain color deep 1`] = ` -optdep@1.0.0 optional -node_modules/optdep - optional optdep@"1.0.0" from the root project -` - -exports[`test/lib/utils/explain-dep.js TAP optional > explain nocolor shallow 1`] = ` -optdep@1.0.0 optional -node_modules/optdep - optional optdep@"1.0.0" from the root project -` - -exports[`test/lib/utils/explain-dep.js TAP optional > print color 1`] = ` -optdep@1.0.0 optional -node_modules/optdep -` - -exports[`test/lib/utils/explain-dep.js TAP optional > print nocolor 1`] = ` -optdep@1.0.0 optional -node_modules/optdep -` - -exports[`test/lib/utils/explain-dep.js TAP peer > explain color deep 1`] = ` -peer@1.0.0 peer -node_modules/peer - peer peer@"1.0.0" from the root project -` - -exports[`test/lib/utils/explain-dep.js TAP peer > explain nocolor shallow 1`] = ` -peer@1.0.0 peer -node_modules/peer - peer peer@"1.0.0" from the root project -` - -exports[`test/lib/utils/explain-dep.js TAP peer > print color 1`] = ` -peer@1.0.0 peer -node_modules/peer -` - -exports[`test/lib/utils/explain-dep.js TAP peer > print nocolor 1`] = ` -peer@1.0.0 peer -node_modules/peer -` - -exports[`test/lib/utils/explain-dep.js TAP prodDep > explain color deep 1`] = ` -prod-dep@1.2.3 -node_modules/prod-dep - prod-dep@"1.x" from the root project -` - -exports[`test/lib/utils/explain-dep.js TAP prodDep > explain nocolor shallow 1`] = ` -prod-dep@1.2.3 -node_modules/prod-dep - prod-dep@"1.x" from the root project -` - -exports[`test/lib/utils/explain-dep.js TAP prodDep > print color 1`] = ` -prod-dep@1.2.3 -node_modules/prod-dep -` - -exports[`test/lib/utils/explain-dep.js TAP prodDep > print nocolor 1`] = ` -prod-dep@1.2.3 -node_modules/prod-dep -` diff --git a/tap-snapshots/test-lib-utils-explain-eresolve.js-TAP.test.js b/tap-snapshots/test-lib-utils-explain-eresolve.js-TAP.test.js deleted file mode 100644 index e06668015..000000000 --- a/tap-snapshots/test-lib-utils-explain-eresolve.js-TAP.test.js +++ /dev/null @@ -1,717 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/utils/explain-eresolve.js TAP chain-conflict > explain with color 1`] = ` -While resolving: project@1.2.3 -Found: @isaacs/testing-peer-dep-conflict-chain-d@2.0.0 -node_modules/@isaacs/testing-peer-dep-conflict-chain-d - @isaacs/testing-peer-dep-conflict-chain-d@"2" from the root project - -Could not resolve dependency: -peer @isaacs/testing-peer-dep-conflict-chain-d@"1" from @isaacs/testing-peer-dep-conflict-chain-c@1.0.0 -node_modules/@isaacs/testing-peer-dep-conflict-chain-c - @isaacs/testing-peer-dep-conflict-chain-c@"1" from the root project -` - -exports[`test/lib/utils/explain-eresolve.js TAP chain-conflict > explain with no color, depth of 6 1`] = ` -While resolving: project@1.2.3 -Found: @isaacs/testing-peer-dep-conflict-chain-d@2.0.0 -node_modules/@isaacs/testing-peer-dep-conflict-chain-d - @isaacs/testing-peer-dep-conflict-chain-d@"2" from the root project - -Could not resolve dependency: -peer @isaacs/testing-peer-dep-conflict-chain-d@"1" from @isaacs/testing-peer-dep-conflict-chain-c@1.0.0 -node_modules/@isaacs/testing-peer-dep-conflict-chain-c - @isaacs/testing-peer-dep-conflict-chain-c@"1" from the root project -` - -exports[`test/lib/utils/explain-eresolve.js TAP chain-conflict > report 1`] = ` -# npm resolution error report - -\${TIME} - -While resolving: project@1.2.3 -Found: @isaacs/testing-peer-dep-conflict-chain-d@2.0.0 -node_modules/@isaacs/testing-peer-dep-conflict-chain-d - @isaacs/testing-peer-dep-conflict-chain-d@"2" from the root project - -Could not resolve dependency: -peer @isaacs/testing-peer-dep-conflict-chain-d@"1" from @isaacs/testing-peer-dep-conflict-chain-c@1.0.0 -node_modules/@isaacs/testing-peer-dep-conflict-chain-c - @isaacs/testing-peer-dep-conflict-chain-c@"1" from the root project - -Fix the upstream dependency conflict, or retry -this command with --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -Raw JSON explanation object: - -{ - "name": "chain-conflict", - "json": true -} - -` - -exports[`test/lib/utils/explain-eresolve.js TAP chain-conflict > report with color 1`] = ` -While resolving: project@1.2.3 -Found: @isaacs/testing-peer-dep-conflict-chain-d@2.0.0 -node_modules/@isaacs/testing-peer-dep-conflict-chain-d - @isaacs/testing-peer-dep-conflict-chain-d@"2" from the root project - -Could not resolve dependency: -peer @isaacs/testing-peer-dep-conflict-chain-d@"1" from @isaacs/testing-peer-dep-conflict-chain-c@1.0.0 -node_modules/@isaacs/testing-peer-dep-conflict-chain-c - @isaacs/testing-peer-dep-conflict-chain-c@"1" from the root project - -Fix the upstream dependency conflict, or retry -this command with --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -See \${REPORT} for a full report. -` - -exports[`test/lib/utils/explain-eresolve.js TAP chain-conflict > report with color, depth only 2 1`] = ` -While resolving: project@1.2.3 -Found: @isaacs/testing-peer-dep-conflict-chain-d@2.0.0 -node_modules/@isaacs/testing-peer-dep-conflict-chain-d - @isaacs/testing-peer-dep-conflict-chain-d@"2" from the root project - -Could not resolve dependency: -peer @isaacs/testing-peer-dep-conflict-chain-d@"1" from @isaacs/testing-peer-dep-conflict-chain-c@1.0.0 -node_modules/@isaacs/testing-peer-dep-conflict-chain-c - @isaacs/testing-peer-dep-conflict-chain-c@"1" from the root project - -Fix the upstream dependency conflict, or retry -this command with --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -See \${REPORT} for a full report. -` - -exports[`test/lib/utils/explain-eresolve.js TAP chain-conflict > report with no color, depth of 6 1`] = ` -While resolving: project@1.2.3 -Found: @isaacs/testing-peer-dep-conflict-chain-d@2.0.0 -node_modules/@isaacs/testing-peer-dep-conflict-chain-d - @isaacs/testing-peer-dep-conflict-chain-d@"2" from the root project - -Could not resolve dependency: -peer @isaacs/testing-peer-dep-conflict-chain-d@"1" from @isaacs/testing-peer-dep-conflict-chain-c@1.0.0 -node_modules/@isaacs/testing-peer-dep-conflict-chain-c - @isaacs/testing-peer-dep-conflict-chain-c@"1" from the root project - -Fix the upstream dependency conflict, or retry -this command with --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -See \${REPORT} for a full report. -` - -exports[`test/lib/utils/explain-eresolve.js TAP cycleNested > explain with color 1`] = ` -Found: @isaacs/peer-dep-cycle-c@2.0.0 -node_modules/@isaacs/peer-dep-cycle-c - @isaacs/peer-dep-cycle-c@"2.x" from the root project - -Could not resolve dependency: -peer @isaacs/peer-dep-cycle-b@"1" from @isaacs/peer-dep-cycle-a@1.0.0 -node_modules/@isaacs/peer-dep-cycle-a - @isaacs/peer-dep-cycle-a@"1.x" from the root project - -Conflicting peer dependency: @isaacs/peer-dep-cycle-c@1.0.0 -node_modules/@isaacs/peer-dep-cycle-c - peer @isaacs/peer-dep-cycle-c@"1" from @isaacs/peer-dep-cycle-b@1.0.0 - node_modules/@isaacs/peer-dep-cycle-b - peer @isaacs/peer-dep-cycle-b@"1" from @isaacs/peer-dep-cycle-a@1.0.0 - node_modules/@isaacs/peer-dep-cycle-a -` - -exports[`test/lib/utils/explain-eresolve.js TAP cycleNested > explain with no color, depth of 6 1`] = ` -Found: @isaacs/peer-dep-cycle-c@2.0.0 -node_modules/@isaacs/peer-dep-cycle-c - @isaacs/peer-dep-cycle-c@"2.x" from the root project - -Could not resolve dependency: -peer @isaacs/peer-dep-cycle-b@"1" from @isaacs/peer-dep-cycle-a@1.0.0 -node_modules/@isaacs/peer-dep-cycle-a - @isaacs/peer-dep-cycle-a@"1.x" from the root project - -Conflicting peer dependency: @isaacs/peer-dep-cycle-c@1.0.0 -node_modules/@isaacs/peer-dep-cycle-c - peer @isaacs/peer-dep-cycle-c@"1" from @isaacs/peer-dep-cycle-b@1.0.0 - node_modules/@isaacs/peer-dep-cycle-b - peer @isaacs/peer-dep-cycle-b@"1" from @isaacs/peer-dep-cycle-a@1.0.0 - node_modules/@isaacs/peer-dep-cycle-a - @isaacs/peer-dep-cycle-a@"1.x" from the root project -` - -exports[`test/lib/utils/explain-eresolve.js TAP cycleNested > report 1`] = ` -# npm resolution error report - -\${TIME} - -Found: @isaacs/peer-dep-cycle-c@2.0.0 -node_modules/@isaacs/peer-dep-cycle-c - @isaacs/peer-dep-cycle-c@"2.x" from the root project - -Could not resolve dependency: -peer @isaacs/peer-dep-cycle-b@"1" from @isaacs/peer-dep-cycle-a@1.0.0 -node_modules/@isaacs/peer-dep-cycle-a - @isaacs/peer-dep-cycle-a@"1.x" from the root project - -Conflicting peer dependency: @isaacs/peer-dep-cycle-c@1.0.0 -node_modules/@isaacs/peer-dep-cycle-c - peer @isaacs/peer-dep-cycle-c@"1" from @isaacs/peer-dep-cycle-b@1.0.0 - node_modules/@isaacs/peer-dep-cycle-b - peer @isaacs/peer-dep-cycle-b@"1" from @isaacs/peer-dep-cycle-a@1.0.0 - node_modules/@isaacs/peer-dep-cycle-a - @isaacs/peer-dep-cycle-a@"1.x" from the root project - -Fix the upstream dependency conflict, or retry -this command with --no-strict-peer-deps, --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -Raw JSON explanation object: - -{ - "name": "cycleNested", - "json": true -} - -` - -exports[`test/lib/utils/explain-eresolve.js TAP cycleNested > report with color 1`] = ` -Found: @isaacs/peer-dep-cycle-c@2.0.0 -node_modules/@isaacs/peer-dep-cycle-c - @isaacs/peer-dep-cycle-c@"2.x" from the root project - -Could not resolve dependency: -peer @isaacs/peer-dep-cycle-b@"1" from @isaacs/peer-dep-cycle-a@1.0.0 -node_modules/@isaacs/peer-dep-cycle-a - @isaacs/peer-dep-cycle-a@"1.x" from the root project - -Conflicting peer dependency: @isaacs/peer-dep-cycle-c@1.0.0 -node_modules/@isaacs/peer-dep-cycle-c - peer @isaacs/peer-dep-cycle-c@"1" from @isaacs/peer-dep-cycle-b@1.0.0 - node_modules/@isaacs/peer-dep-cycle-b - peer @isaacs/peer-dep-cycle-b@"1" from @isaacs/peer-dep-cycle-a@1.0.0 - node_modules/@isaacs/peer-dep-cycle-a - @isaacs/peer-dep-cycle-a@"1.x" from the root project - -Fix the upstream dependency conflict, or retry -this command with --no-strict-peer-deps, --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -See \${REPORT} for a full report. -` - -exports[`test/lib/utils/explain-eresolve.js TAP cycleNested > report with color, depth only 2 1`] = ` -Found: @isaacs/peer-dep-cycle-c@2.0.0 -node_modules/@isaacs/peer-dep-cycle-c - @isaacs/peer-dep-cycle-c@"2.x" from the root project - -Could not resolve dependency: -peer @isaacs/peer-dep-cycle-b@"1" from @isaacs/peer-dep-cycle-a@1.0.0 -node_modules/@isaacs/peer-dep-cycle-a - @isaacs/peer-dep-cycle-a@"1.x" from the root project - -Conflicting peer dependency: @isaacs/peer-dep-cycle-c@1.0.0 -node_modules/@isaacs/peer-dep-cycle-c - peer @isaacs/peer-dep-cycle-c@"1" from @isaacs/peer-dep-cycle-b@1.0.0 - node_modules/@isaacs/peer-dep-cycle-b - peer @isaacs/peer-dep-cycle-b@"1" from @isaacs/peer-dep-cycle-a@1.0.0 - node_modules/@isaacs/peer-dep-cycle-a - -Fix the upstream dependency conflict, or retry -this command with --no-strict-peer-deps, --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -See \${REPORT} for a full report. -` - -exports[`test/lib/utils/explain-eresolve.js TAP cycleNested > report with no color, depth of 6 1`] = ` -Found: @isaacs/peer-dep-cycle-c@2.0.0 -node_modules/@isaacs/peer-dep-cycle-c - @isaacs/peer-dep-cycle-c@"2.x" from the root project - -Could not resolve dependency: -peer @isaacs/peer-dep-cycle-b@"1" from @isaacs/peer-dep-cycle-a@1.0.0 -node_modules/@isaacs/peer-dep-cycle-a - @isaacs/peer-dep-cycle-a@"1.x" from the root project - -Conflicting peer dependency: @isaacs/peer-dep-cycle-c@1.0.0 -node_modules/@isaacs/peer-dep-cycle-c - peer @isaacs/peer-dep-cycle-c@"1" from @isaacs/peer-dep-cycle-b@1.0.0 - node_modules/@isaacs/peer-dep-cycle-b - peer @isaacs/peer-dep-cycle-b@"1" from @isaacs/peer-dep-cycle-a@1.0.0 - node_modules/@isaacs/peer-dep-cycle-a - @isaacs/peer-dep-cycle-a@"1.x" from the root project - -Fix the upstream dependency conflict, or retry -this command with --no-strict-peer-deps, --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -See \${REPORT} for a full report. -` - -exports[`test/lib/utils/explain-eresolve.js TAP gatsby > explain with color 1`] = ` -While resolving: gatsby-recipes@0.2.31 -Found: ink@3.0.0-7 -node_modules/ink - dev ink@"next" from gatsby-recipes@0.2.31 - node_modules/gatsby-recipes - gatsby-recipes@"^0.2.31" from gatsby-cli@2.12.107 - node_modules/gatsby-cli - -Could not resolve dependency: -peer ink@">=2.0.0" from ink-box@1.0.0 -node_modules/ink-box - ink-box@"^1.0.0" from gatsby-recipes@0.2.31 - node_modules/gatsby-recipes -` - -exports[`test/lib/utils/explain-eresolve.js TAP gatsby > explain with no color, depth of 6 1`] = ` -While resolving: gatsby-recipes@0.2.31 -Found: ink@3.0.0-7 -node_modules/ink - dev ink@"next" from gatsby-recipes@0.2.31 - node_modules/gatsby-recipes - gatsby-recipes@"^0.2.31" from gatsby-cli@2.12.107 - node_modules/gatsby-cli - gatsby-cli@"^2.12.107" from gatsby@2.24.74 - node_modules/gatsby - gatsby@"" from the root project - -Could not resolve dependency: -peer ink@">=2.0.0" from ink-box@1.0.0 -node_modules/ink-box - ink-box@"^1.0.0" from gatsby-recipes@0.2.31 - node_modules/gatsby-recipes - gatsby-recipes@"^0.2.31" from gatsby-cli@2.12.107 - node_modules/gatsby-cli - gatsby-cli@"^2.12.107" from gatsby@2.24.74 - node_modules/gatsby - gatsby@"" from the root project -` - -exports[`test/lib/utils/explain-eresolve.js TAP gatsby > report 1`] = ` -# npm resolution error report - -\${TIME} - -While resolving: gatsby-recipes@0.2.31 -Found: ink@3.0.0-7 -node_modules/ink - dev ink@"next" from gatsby-recipes@0.2.31 - node_modules/gatsby-recipes - gatsby-recipes@"^0.2.31" from gatsby-cli@2.12.107 - node_modules/gatsby-cli - gatsby-cli@"^2.12.107" from gatsby@2.24.74 - node_modules/gatsby - gatsby@"" from the root project - -Could not resolve dependency: -peer ink@">=2.0.0" from ink-box@1.0.0 -node_modules/ink-box - ink-box@"^1.0.0" from gatsby-recipes@0.2.31 - node_modules/gatsby-recipes - gatsby-recipes@"^0.2.31" from gatsby-cli@2.12.107 - node_modules/gatsby-cli - gatsby-cli@"^2.12.107" from gatsby@2.24.74 - node_modules/gatsby - gatsby@"" from the root project - -Fix the upstream dependency conflict, or retry -this command with --no-strict-peer-deps, --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -Raw JSON explanation object: - -{ - "name": "gatsby", - "json": true -} - -` - -exports[`test/lib/utils/explain-eresolve.js TAP gatsby > report with color 1`] = ` -While resolving: gatsby-recipes@0.2.31 -Found: ink@3.0.0-7 -node_modules/ink - dev ink@"next" from gatsby-recipes@0.2.31 - node_modules/gatsby-recipes - gatsby-recipes@"^0.2.31" from gatsby-cli@2.12.107 - node_modules/gatsby-cli - gatsby-cli@"^2.12.107" from gatsby@2.24.74 - node_modules/gatsby - gatsby@"" from the root project - -Could not resolve dependency: -peer ink@">=2.0.0" from ink-box@1.0.0 -node_modules/ink-box - ink-box@"^1.0.0" from gatsby-recipes@0.2.31 - node_modules/gatsby-recipes - gatsby-recipes@"^0.2.31" from gatsby-cli@2.12.107 - node_modules/gatsby-cli - gatsby-cli@"^2.12.107" from gatsby@2.24.74 - node_modules/gatsby - -Fix the upstream dependency conflict, or retry -this command with --no-strict-peer-deps, --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -See \${REPORT} for a full report. -` - -exports[`test/lib/utils/explain-eresolve.js TAP gatsby > report with color, depth only 2 1`] = ` -While resolving: gatsby-recipes@0.2.31 -Found: ink@3.0.0-7 -node_modules/ink - dev ink@"next" from gatsby-recipes@0.2.31 - node_modules/gatsby-recipes - gatsby-recipes@"^0.2.31" from gatsby-cli@2.12.107 - node_modules/gatsby-cli - -Could not resolve dependency: -peer ink@">=2.0.0" from ink-box@1.0.0 -node_modules/ink-box - ink-box@"^1.0.0" from gatsby-recipes@0.2.31 - node_modules/gatsby-recipes - -Fix the upstream dependency conflict, or retry -this command with --no-strict-peer-deps, --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -See \${REPORT} for a full report. -` - -exports[`test/lib/utils/explain-eresolve.js TAP gatsby > report with no color, depth of 6 1`] = ` -While resolving: gatsby-recipes@0.2.31 -Found: ink@3.0.0-7 -node_modules/ink - dev ink@"next" from gatsby-recipes@0.2.31 - node_modules/gatsby-recipes - gatsby-recipes@"^0.2.31" from gatsby-cli@2.12.107 - node_modules/gatsby-cli - gatsby-cli@"^2.12.107" from gatsby@2.24.74 - node_modules/gatsby - gatsby@"" from the root project - -Could not resolve dependency: -peer ink@">=2.0.0" from ink-box@1.0.0 -node_modules/ink-box - ink-box@"^1.0.0" from gatsby-recipes@0.2.31 - node_modules/gatsby-recipes - gatsby-recipes@"^0.2.31" from gatsby-cli@2.12.107 - node_modules/gatsby-cli - gatsby-cli@"^2.12.107" from gatsby@2.24.74 - node_modules/gatsby - gatsby@"" from the root project - -Fix the upstream dependency conflict, or retry -this command with --no-strict-peer-deps, --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -See \${REPORT} for a full report. -` - -exports[`test/lib/utils/explain-eresolve.js TAP no current node, but has current edge > explain with color 1`] = ` -While resolving: eslint@7.22.0 -Found: dev eslint@"file:." from the root project - -Could not resolve dependency: -peer eslint@"^6.0.0" from eslint-plugin-jsdoc@22.2.0 -node_modules/eslint-plugin-jsdoc - dev eslint-plugin-jsdoc@"^22.1.0" from the root project -` - -exports[`test/lib/utils/explain-eresolve.js TAP no current node, but has current edge > explain with no color, depth of 6 1`] = ` -While resolving: eslint@7.22.0 -Found: dev eslint@"file:." from the root project - -Could not resolve dependency: -peer eslint@"^6.0.0" from eslint-plugin-jsdoc@22.2.0 -node_modules/eslint-plugin-jsdoc - dev eslint-plugin-jsdoc@"^22.1.0" from the root project -` - -exports[`test/lib/utils/explain-eresolve.js TAP no current node, but has current edge > report 1`] = ` -# npm resolution error report - -\${TIME} - -While resolving: eslint@7.22.0 -Found: dev eslint@"file:." from the root project - -Could not resolve dependency: -peer eslint@"^6.0.0" from eslint-plugin-jsdoc@22.2.0 -node_modules/eslint-plugin-jsdoc - dev eslint-plugin-jsdoc@"^22.1.0" from the root project - -Fix the upstream dependency conflict, or retry -this command with --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -Raw JSON explanation object: - -{ - "name": "no current node, but has current edge", - "json": true -} - -` - -exports[`test/lib/utils/explain-eresolve.js TAP no current node, but has current edge > report with color 1`] = ` -While resolving: eslint@7.22.0 -Found: dev eslint@"file:." from the root project - -Could not resolve dependency: -peer eslint@"^6.0.0" from eslint-plugin-jsdoc@22.2.0 -node_modules/eslint-plugin-jsdoc - dev eslint-plugin-jsdoc@"^22.1.0" from the root project - -Fix the upstream dependency conflict, or retry -this command with --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -See \${REPORT} for a full report. -` - -exports[`test/lib/utils/explain-eresolve.js TAP no current node, but has current edge > report with color, depth only 2 1`] = ` -While resolving: eslint@7.22.0 -Found: dev eslint@"file:." from the root project - -Could not resolve dependency: -peer eslint@"^6.0.0" from eslint-plugin-jsdoc@22.2.0 -node_modules/eslint-plugin-jsdoc - dev eslint-plugin-jsdoc@"^22.1.0" from the root project - -Fix the upstream dependency conflict, or retry -this command with --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -See \${REPORT} for a full report. -` - -exports[`test/lib/utils/explain-eresolve.js TAP no current node, but has current edge > report with no color, depth of 6 1`] = ` -While resolving: eslint@7.22.0 -Found: dev eslint@"file:." from the root project - -Could not resolve dependency: -peer eslint@"^6.0.0" from eslint-plugin-jsdoc@22.2.0 -node_modules/eslint-plugin-jsdoc - dev eslint-plugin-jsdoc@"^22.1.0" from the root project - -Fix the upstream dependency conflict, or retry -this command with --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -See \${REPORT} for a full report. -` - -exports[`test/lib/utils/explain-eresolve.js TAP no current node, no current edge, idk > explain with color 1`] = ` -While resolving: eslint@7.22.0 - -Could not resolve dependency: -peer eslint@"^6.0.0" from eslint-plugin-jsdoc@22.2.0 -node_modules/eslint-plugin-jsdoc - dev eslint-plugin-jsdoc@"^22.1.0" from the root project -` - -exports[`test/lib/utils/explain-eresolve.js TAP no current node, no current edge, idk > explain with no color, depth of 6 1`] = ` -While resolving: eslint@7.22.0 - -Could not resolve dependency: -peer eslint@"^6.0.0" from eslint-plugin-jsdoc@22.2.0 -node_modules/eslint-plugin-jsdoc - dev eslint-plugin-jsdoc@"^22.1.0" from the root project -` - -exports[`test/lib/utils/explain-eresolve.js TAP no current node, no current edge, idk > report 1`] = ` -# npm resolution error report - -\${TIME} - -While resolving: eslint@7.22.0 - -Could not resolve dependency: -peer eslint@"^6.0.0" from eslint-plugin-jsdoc@22.2.0 -node_modules/eslint-plugin-jsdoc - dev eslint-plugin-jsdoc@"^22.1.0" from the root project - -Fix the upstream dependency conflict, or retry -this command with --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -Raw JSON explanation object: - -{ - "name": "no current node, no current edge, idk", - "json": true -} - -` - -exports[`test/lib/utils/explain-eresolve.js TAP no current node, no current edge, idk > report with color 1`] = ` -While resolving: eslint@7.22.0 - -Could not resolve dependency: -peer eslint@"^6.0.0" from eslint-plugin-jsdoc@22.2.0 -node_modules/eslint-plugin-jsdoc - dev eslint-plugin-jsdoc@"^22.1.0" from the root project - -Fix the upstream dependency conflict, or retry -this command with --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -See \${REPORT} for a full report. -` - -exports[`test/lib/utils/explain-eresolve.js TAP no current node, no current edge, idk > report with color, depth only 2 1`] = ` -While resolving: eslint@7.22.0 - -Could not resolve dependency: -peer eslint@"^6.0.0" from eslint-plugin-jsdoc@22.2.0 -node_modules/eslint-plugin-jsdoc - dev eslint-plugin-jsdoc@"^22.1.0" from the root project - -Fix the upstream dependency conflict, or retry -this command with --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -See \${REPORT} for a full report. -` - -exports[`test/lib/utils/explain-eresolve.js TAP no current node, no current edge, idk > report with no color, depth of 6 1`] = ` -While resolving: eslint@7.22.0 - -Could not resolve dependency: -peer eslint@"^6.0.0" from eslint-plugin-jsdoc@22.2.0 -node_modules/eslint-plugin-jsdoc - dev eslint-plugin-jsdoc@"^22.1.0" from the root project - -Fix the upstream dependency conflict, or retry -this command with --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -See \${REPORT} for a full report. -` - -exports[`test/lib/utils/explain-eresolve.js TAP withShrinkwrap > explain with color 1`] = ` -While resolving: @isaacs/peer-dep-cycle-b@1.0.0 -Found: @isaacs/peer-dep-cycle-c@2.0.0 -node_modules/@isaacs/peer-dep-cycle-c - @isaacs/peer-dep-cycle-c@"2.x" from the root project - -Could not resolve dependency: -peer @isaacs/peer-dep-cycle-c@"1" from @isaacs/peer-dep-cycle-b@1.0.0 -node_modules/@isaacs/peer-dep-cycle-b - peer @isaacs/peer-dep-cycle-b@"1" from @isaacs/peer-dep-cycle-a@1.0.0 - node_modules/@isaacs/peer-dep-cycle-a -` - -exports[`test/lib/utils/explain-eresolve.js TAP withShrinkwrap > explain with no color, depth of 6 1`] = ` -While resolving: @isaacs/peer-dep-cycle-b@1.0.0 -Found: @isaacs/peer-dep-cycle-c@2.0.0 -node_modules/@isaacs/peer-dep-cycle-c - @isaacs/peer-dep-cycle-c@"2.x" from the root project - -Could not resolve dependency: -peer @isaacs/peer-dep-cycle-c@"1" from @isaacs/peer-dep-cycle-b@1.0.0 -node_modules/@isaacs/peer-dep-cycle-b - peer @isaacs/peer-dep-cycle-b@"1" from @isaacs/peer-dep-cycle-a@1.0.0 - node_modules/@isaacs/peer-dep-cycle-a - @isaacs/peer-dep-cycle-a@"1.x" from the root project -` - -exports[`test/lib/utils/explain-eresolve.js TAP withShrinkwrap > report 1`] = ` -# npm resolution error report - -\${TIME} - -While resolving: @isaacs/peer-dep-cycle-b@1.0.0 -Found: @isaacs/peer-dep-cycle-c@2.0.0 -node_modules/@isaacs/peer-dep-cycle-c - @isaacs/peer-dep-cycle-c@"2.x" from the root project - -Could not resolve dependency: -peer @isaacs/peer-dep-cycle-c@"1" from @isaacs/peer-dep-cycle-b@1.0.0 -node_modules/@isaacs/peer-dep-cycle-b - peer @isaacs/peer-dep-cycle-b@"1" from @isaacs/peer-dep-cycle-a@1.0.0 - node_modules/@isaacs/peer-dep-cycle-a - @isaacs/peer-dep-cycle-a@"1.x" from the root project - -Fix the upstream dependency conflict, or retry -this command with --no-strict-peer-deps, --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -Raw JSON explanation object: - -{ - "name": "withShrinkwrap", - "json": true -} - -` - -exports[`test/lib/utils/explain-eresolve.js TAP withShrinkwrap > report with color 1`] = ` -While resolving: @isaacs/peer-dep-cycle-b@1.0.0 -Found: @isaacs/peer-dep-cycle-c@2.0.0 -node_modules/@isaacs/peer-dep-cycle-c - @isaacs/peer-dep-cycle-c@"2.x" from the root project - -Could not resolve dependency: -peer @isaacs/peer-dep-cycle-c@"1" from @isaacs/peer-dep-cycle-b@1.0.0 -node_modules/@isaacs/peer-dep-cycle-b - peer @isaacs/peer-dep-cycle-b@"1" from @isaacs/peer-dep-cycle-a@1.0.0 - node_modules/@isaacs/peer-dep-cycle-a - @isaacs/peer-dep-cycle-a@"1.x" from the root project - -Fix the upstream dependency conflict, or retry -this command with --no-strict-peer-deps, --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -See \${REPORT} for a full report. -` - -exports[`test/lib/utils/explain-eresolve.js TAP withShrinkwrap > report with color, depth only 2 1`] = ` -While resolving: @isaacs/peer-dep-cycle-b@1.0.0 -Found: @isaacs/peer-dep-cycle-c@2.0.0 -node_modules/@isaacs/peer-dep-cycle-c - @isaacs/peer-dep-cycle-c@"2.x" from the root project - -Could not resolve dependency: -peer @isaacs/peer-dep-cycle-c@"1" from @isaacs/peer-dep-cycle-b@1.0.0 -node_modules/@isaacs/peer-dep-cycle-b - peer @isaacs/peer-dep-cycle-b@"1" from @isaacs/peer-dep-cycle-a@1.0.0 - node_modules/@isaacs/peer-dep-cycle-a - -Fix the upstream dependency conflict, or retry -this command with --no-strict-peer-deps, --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -See \${REPORT} for a full report. -` - -exports[`test/lib/utils/explain-eresolve.js TAP withShrinkwrap > report with no color, depth of 6 1`] = ` -While resolving: @isaacs/peer-dep-cycle-b@1.0.0 -Found: @isaacs/peer-dep-cycle-c@2.0.0 -node_modules/@isaacs/peer-dep-cycle-c - @isaacs/peer-dep-cycle-c@"2.x" from the root project - -Could not resolve dependency: -peer @isaacs/peer-dep-cycle-c@"1" from @isaacs/peer-dep-cycle-b@1.0.0 -node_modules/@isaacs/peer-dep-cycle-b - peer @isaacs/peer-dep-cycle-b@"1" from @isaacs/peer-dep-cycle-a@1.0.0 - node_modules/@isaacs/peer-dep-cycle-a - @isaacs/peer-dep-cycle-a@"1.x" from the root project - -Fix the upstream dependency conflict, or retry -this command with --no-strict-peer-deps, --force, or --legacy-peer-deps -to accept an incorrect (and potentially broken) dependency resolution. - -See \${REPORT} for a full report. -` diff --git a/tap-snapshots/test-lib-utils-npm-usage.js-TAP.test.js b/tap-snapshots/test-lib-utils-npm-usage.js-TAP.test.js deleted file mode 100644 index 6bd38772e..000000000 --- a/tap-snapshots/test-lib-utils-npm-usage.js-TAP.test.js +++ /dev/null @@ -1,953 +0,0 @@ -/* IMPORTANT - * This snapshot file is auto-generated, but designed for humans. - * It should be checked into source control and tracked carefully. - * Re-generate by setting TAP_SNAPSHOT=1 and running tests. - * Make sure to inspect the output below. Do not ignore changes! - */ -'use strict' -exports[`test/lib/utils/npm-usage.js TAP usage basic usage > must match snapshot 1`] = ` -npm - -Usage: - -npm install install all the dependencies in your project -npm install add the dependency to your project -npm test run this project's tests -npm run run the script named -npm -h quick help on -npm -l display usage info for all commands -npm help search for help on -npm help npm more involved overview - -All commands: - - access, adduser, audit, bin, bugs, cache, ci, completion, - config, dedupe, deprecate, diff, dist-tag, docs, doctor, - edit, exec, explain, explore, find-dupes, fund, get, help, - hook, init, install, install-ci-test, install-test, link, - ll, login, logout, ls, org, outdated, owner, pack, ping, - prefix, profile, prune, publish, rebuild, repo, restart, - root, run-script, search, set, set-script, shrinkwrap, star, - stars, start, stop, team, test, token, uninstall, unpublish, - unstar, update, version, view, whoami - -Specify configs in the ini-formatted file: - /some/config/file/.npmrc -or on the command line via: npm --key=value - -More configuration info: npm help config -Configuration fields: npm help 7 config - -npm@{VERSION} {BASEDIR} -` - -exports[`test/lib/utils/npm-usage.js TAP usage set process.stdout.columns columns=0 > must match snapshot 1`] = ` -npm - -Usage: - -npm install install all the dependencies in your project -npm install add the dependency to your project -npm test run this project's tests -npm run run the script named -npm -h quick help on -npm -l display usage info for all commands -npm help search for help on -npm help npm more involved overview - -All commands: - - access, adduser, audit, bin, bugs, cache, ci, completion, - config, dedupe, deprecate, diff, dist-tag, docs, doctor, - edit, exec, explain, explore, find-dupes, fund, get, help, - hook, init, install, install-ci-test, install-test, link, - ll, login, logout, ls, org, outdated, owner, pack, ping, - prefix, profile, prune, publish, rebuild, repo, restart, - root, run-script, search, set, set-script, shrinkwrap, star, - stars, start, stop, team, test, token, uninstall, unpublish, - unstar, update, version, view, whoami - -Specify configs in the ini-formatted file: - /some/config/file/.npmrc -or on the command line via: npm --key=value - -More configuration info: npm help config -Configuration fields: npm help 7 config - -npm@{VERSION} {BASEDIR} -` - -exports[`test/lib/utils/npm-usage.js TAP usage set process.stdout.columns columns=90 > must match snapshot 1`] = ` -npm - -Usage: - -npm install install all the dependencies in your project -npm install add the dependency to your project -npm test run this project's tests -npm run run the script named -npm -h quick help on -npm -l display usage info for all commands -npm help search for help on -npm help npm more involved overview - -All commands: - - access, adduser, audit, bin, bugs, cache, ci, completion, - config, dedupe, deprecate, diff, dist-tag, docs, doctor, - edit, exec, explain, explore, find-dupes, fund, get, help, - hook, init, install, install-ci-test, install-test, link, - ll, login, logout, ls, org, outdated, owner, pack, ping, - prefix, profile, prune, publish, rebuild, repo, restart, - root, run-script, search, set, set-script, shrinkwrap, star, - stars, start, stop, team, test, token, uninstall, unpublish, - unstar, update, version, view, whoami - -Specify configs in the ini-formatted file: - /some/config/file/.npmrc -or on the command line via: npm --key=value - -More configuration info: npm help config -Configuration fields: npm help 7 config - -npm@{VERSION} {BASEDIR} -` - -exports[`test/lib/utils/npm-usage.js TAP usage with browser > must match snapshot 1`] = ` -npm - -Usage: - -npm install install all the dependencies in your project -npm install add the dependency to your project -npm test run this project's tests -npm run run the script named -npm -h quick help on -npm -l display usage info for all commands -npm help search for help on (in a browser) -npm help npm more involved overview (in a browser) - -All commands: - - access, adduser, audit, bin, bugs, cache, ci, completion, - config, dedupe, deprecate, diff, dist-tag, docs, doctor, - edit, exec, explain, explore, find-dupes, fund, get, help, - hook, init, install, install-ci-test, install-test, link, - ll, login, logout, ls, org, outdated, owner, pack, ping, - prefix, profile, prune, publish, rebuild, repo, restart, - root, run-script, search, set, set-script, shrinkwrap, star, - stars, start, stop, team, test, token, uninstall, unpublish, - unstar, update, version, view, whoami - -Specify configs in the ini-formatted file: - /some/config/file/.npmrc -or on the command line via: npm --key=value - -More configuration info: npm help config -Configuration fields: npm help 7 config - -npm@{VERSION} {BASEDIR} -` - -exports[`test/lib/utils/npm-usage.js TAP usage with long > must match snapshot 1`] = ` -npm - -Usage: - -npm install install all the dependencies in your project -npm install add the dependency to your project -npm test run this project's tests -npm run run the script named -npm -h quick help on -npm -l display usage info for all commands -npm help search for help on -npm help npm more involved overview - -All commands: - - access npm access - - Set access level on published packages - - Usage: - npm access public [] - npm access restricted [] - npm access grant [] - npm access revoke [] - npm access 2fa-required [] - npm access 2fa-not-required [] - npm access ls-packages [||] - npm access ls-collaborators [ []] - npm access edit [] - - Run "npm help access" for more info - - adduser npm adduser - - Add a registry user account - - Usage: - npm adduser - - Options: - [--registry ] [--scope <@scope>] [--always-auth] - - aliases: login, add-user - - Run "npm help adduser" for more info - - audit npm audit - - Run a security audit - - Usage: - npm audit [fix] - - Options: - [--audit-level ] [--dry-run] [-f|--force] [--json] [--package-lock-only] [--production] - - Run "npm help audit" for more info - - bin npm bin - - Display npm bin folder - - Usage: - npm bin - - Options: - [-g|--global] - - Run "npm help bin" for more info - - bugs npm bugs - - Report bugs for a package in a web browser - - Usage: - npm bugs [] - - alias: issues - - Run "npm help bugs" for more info - - cache npm cache - - Manipulates packages cache - - Usage: - npm cache add - npm cache add - npm cache add - npm cache add - npm cache add @ - npm cache clean - npm cache verify - - Run "npm help cache" for more info - - ci npm ci - - Install a project with a clean slate - - Usage: - npm ci - - aliases: clean-install, ic, install-clean, isntall-clean - - Run "npm help ci" for more info - - completion npm completion - - Tab Completion for npm - - Usage: - npm completion - - Run "npm help completion" for more info - - config npm config - - Manage the npm configuration files - - Usage: - npm config set = [= ...] - npm config get [ [ ...]] - npm config delete [ ...] - npm config list [--json] - npm config edit - - alias: c - - Run "npm help config" for more info - - dedupe npm dedupe - - Reduce duplication in the package tree - - Usage: - npm dedupe - - alias: ddp - - Run "npm help dedupe" for more info - - deprecate npm deprecate - - Deprecate a version of a package - - Usage: - npm deprecate [@] - - Run "npm help deprecate" for more info - - diff npm diff - - The registry diff command - - Usage: - npm diff [...] - npm diff --diff= [...] - npm diff --diff= [--diff=] [...] - npm diff --diff= [--diff=] [...] - npm diff [--diff-ignore-all-space] [--diff-name-only] [...] [...] - - Run "npm help diff" for more info - - dist-tag npm dist-tag - - Modify package distribution tags - - Usage: - npm dist-tag add @ [] - npm dist-tag rm - npm dist-tag ls [] - - Options: - [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] - - alias: dist-tags - - Run "npm help dist-tag" for more info - - docs npm docs - - Open documentation for a package in a web browser - - Usage: - npm docs [ [ ...]] - - Options: - [--browser|--browser ] [--registry ] [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] - - alias: home - - Run "npm help docs" for more info - - doctor npm doctor - - Check your npm environment - - Usage: - npm doctor - - Run "npm help doctor" for more info - - edit npm edit - - Edit an installed package - - Usage: - npm edit [/...] - - Run "npm help edit" for more info - - exec npm exec - - Run a command from a local or remote npm package - - Usage: - npm exec -- [@] [args...] - npm exec --package=[@] -- [args...] - npm exec -c ' [args...]' - npm exec --package=foo -c ' [args...]' - - Options: - [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] - - alias: x - - Run "npm help exec" for more info - - explain npm explain - - Explain installed packages - - Usage: - npm explain - - alias: why - - Run "npm help explain" for more info - - explore npm explore - - Browse an installed package - - Usage: - npm explore [ -- ] - - Run "npm help explore" for more info - - find-dupes npm find-dupes - - Find duplication in the package tree - - Usage: - npm find-dupes - - Run "npm help find-dupes" for more info - - fund npm fund - - Retrieve funding information - - Usage: - npm fund [[<@scope>/]] - - Options: - [--json] [--browser|--browser ] [--unicode] [--which ] - - Run "npm help fund" for more info - - get npm get - - Get a value from the npm configuration - - Usage: - npm get [ ...] (See \`npm config\`) - - Run "npm help get" for more info - - help npm help - - Get help on npm - - Usage: - npm help [] - - alias: hlep - - Run "npm help help" for more info - - hook npm hook - - Manage registry hooks - - Usage: - npm hook add [--type=] - npm hook ls [pkg] - npm hook rm - npm hook update - - Run "npm help hook" for more info - - init npm init - - Create a package.json file - - Usage: - npm init [--force|-f|--yes|-y|--scope] - npm init <@scope> (same as \`npx <@scope>/create\`) - npm init [<@scope>/] (same as \`npx [<@scope>/]create-\`) - - aliases: create, innit - - Run "npm help init" for more info - - install npm install - - Install a package - - Usage: - npm install [<@scope>/] - npm install [<@scope>/]@ - npm install [<@scope>/]@ - npm install [<@scope>/]@ - npm install @npm: - npm install - npm install - npm install - npm install - npm install / - - Options: - [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer] [-E|--save-exact] - - aliases: i, in, ins, inst, insta, instal, isnt, isnta, isntal, add - - Run "npm help install" for more info - - install-ci-test npm install-ci-test - - Install a project with a clean slate and run tests - - Usage: - npm install-ci-test - - alias: cit - - Run "npm help install-ci-test" for more info - - install-test npm install-test - - Install package(s) and run tests - - Usage: - npm install-test [<@scope>/] - npm install-test [<@scope>/]@ - npm install-test [<@scope>/]@ - npm install-test [<@scope>/]@ - npm install-test @npm: - npm install-test - npm install-test - npm install-test - npm install-test - npm install-test / - - Options: - [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer] [-E|--save-exact] - - alias: it - - Run "npm help install-test" for more info - - link npm link - - Symlink a package folder - - Usage: - npm link (in package dir) - npm link [<@scope>/][@] - - alias: ln - - Run "npm help link" for more info - - ll npm ll - - List installed packages - - Usage: - npm ll [[<@scope>/] ...] - - alias: la - - Run "npm help ll" for more info - - login npm adduser - - Add a registry user account - - Usage: - npm adduser - - Options: - [--registry ] [--scope <@scope>] [--always-auth] - - aliases: login, add-user - - Run "npm help adduser" for more info - - logout npm logout - - Log out of the registry - - Usage: - npm logout - - Options: - [--registry ] [--scope <@scope>] - - Run "npm help logout" for more info - - ls npm ls - - List installed packages - - Usage: - npm ls npm ls [[<@scope>/] ...] - - alias: list - - Run "npm help ls" for more info - - org npm org - - Manage orgs - - Usage: - npm org set orgname username [developer | admin | owner] - npm org rm orgname username - npm org ls orgname [] - - alias: ogr - - Run "npm help org" for more info - - outdated npm outdated - - Check for outdated packages - - Usage: - npm outdated [[<@scope>/] ...] - - Run "npm help outdated" for more info - - owner npm owner - - Manage package owners - - Usage: - npm owner add [<@scope>/] - npm owner rm [<@scope>/] - npm owner ls [<@scope>/] - - alias: author - - Run "npm help owner" for more info - - pack npm pack - - Create a tarball from a package - - Usage: - npm pack [[<@scope>/]...] - - Options: - [--dry-run] [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] - - Run "npm help pack" for more info - - ping npm ping - - Ping npm registry - - Usage: - npm ping - - Options: - [--registry ] - - Run "npm help ping" for more info - - prefix npm prefix - - Display prefix - - Usage: - npm prefix [-g] - - Run "npm help prefix" for more info - - profile npm profile - - Change settings on your registry profile - - Usage: - npm profile enable-2fa [auth-only|auth-and-writes] - npm profile disable-2fa - npm profile get [] - npm profile set - - Run "npm help profile" for more info - - prune npm prune - - Remove extraneous packages - - Usage: - npm prune [[<@scope>/]...] - - Options: - [--production] - - Run "npm help prune" for more info - - publish npm publish - - Publish a package - - Usage: - npm publish [] - - Options: - [--tag ] [--access ] [--dry-run] - - Run "npm help publish" for more info - - rebuild npm rebuild - - Rebuild a package - - Usage: - npm rebuild [[<@scope>/][@] ...] - - alias: rb - - Run "npm help rebuild" for more info - - repo npm repo - - Open package repository page in the browser - - Usage: - npm repo [ [ ...]] - - Options: - [--browser|--browser ] [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] - - Run "npm help repo" for more info - - restart npm restart - - Restart a package - - Usage: - npm restart [-- ] - - Run "npm help restart" for more info - - root npm root - - Display npm root - - Usage: - npm root - - Options: - [-g|--global] - - Run "npm help root" for more info - - run-script npm run-script - - Run arbitrary package scripts - - Usage: - npm run-script [-- ] - - Options: - [-w|--workspace [-w|--workspace ...]] [-ws|--workspaces] - - aliases: run, rum, urn - - Run "npm help run-script" for more info - - search npm search - - Search for pacakges - - Usage: - npm search [search terms ...] - - Options: - [-l|--long] [--json] [-p|--parseable] [--no-description] - - aliases: s, se, find - - Run "npm help search" for more info - - set npm set - - Set a value in the npm configuration - - Usage: - npm set = [= ...] (See \`npm config\`) - - Run "npm help set" for more info - - set-script npm set-script - - Set tasks in the scripts section of package.json - - Usage: - npm set-script [