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

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2022-03-24 01:20:51 +0300
committerLuke Karrys <luke@lukekarrys.com>2022-03-28 23:21:36 +0300
commita64acc0bf01e4bc68b26ead5b2d5c6db47ef16c2 (patch)
tree8ad35c6b33cbcdaec656a9f7a7a8af9675dc08a9 /test
parent45dd8b8615bb1d7a93e1733746581049a1f399e6 (diff)
fix: really load all commands in tests, add description to birthday
Diffstat (limited to 'test')
-rw-r--r--test/lib/load-all-commands.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/lib/load-all-commands.js b/test/lib/load-all-commands.js
index ec1957529..34773bba0 100644
--- a/test/lib/load-all-commands.js
+++ b/test/lib/load-all-commands.js
@@ -5,11 +5,12 @@
const t = require('tap')
const util = require('util')
const { load: loadMockNpm } = require('../fixtures/mock-npm.js')
-const { cmdList } = require('../../lib/utils/cmd-list.js')
+const { cmdList, plumbing } = require('../../lib/utils/cmd-list.js')
+const allCmds = [...cmdList, ...plumbing]
t.test('load each command', async t => {
- t.plan(cmdList.length)
- for (const cmd of cmdList.sort((a, b) => a.localeCompare(b, 'en'))) {
+ t.plan(allCmds.length)
+ for (const cmd of allCmds.sort((a, b) => a.localeCompare(b, 'en'))) {
t.test(cmd, async t => {
const { npm, outputs } = await loadMockNpm(t, {
config: { usage: true },