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
diff options
context:
space:
mode:
authornlf <quitlahok@gmail.com>2022-10-06 22:48:39 +0300
committerNathan Fritz <fritzy@github.com>2022-10-13 18:46:17 +0300
commitd2963c67b992b9b3b9dd32f6f41cbbe4bcc580c8 (patch)
treeaccc9d173c4a31c30d6bd0432406689794ef8d87 /test/lib/commands/bugs.js
parentcee3fd9905c7eb0a5cb26a8c9c08c5db48becd15 (diff)
feat: explicitly validate config within the cli
BREAKING CHANGE: the presence of auth related settings that are not scoped to a specific registry found in a config file is no longer supported and will throw errors
Diffstat (limited to 'test/lib/commands/bugs.js')
-rw-r--r--test/lib/commands/bugs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/commands/bugs.js b/test/lib/commands/bugs.js
index dbd618b08..91d144b6b 100644
--- a/test/lib/commands/bugs.js
+++ b/test/lib/commands/bugs.js
@@ -62,7 +62,7 @@ const Bugs = t.mock('../../../lib/commands/bugs.js', {
'../../../lib/utils/open-url.js': openUrl,
})
-const bugs = new Bugs({ flatOptions: {} })
+const bugs = new Bugs({ flatOptions: {}, config: { validate: () => {} } })
t.test('usage', (t) => {
t.match(bugs.usage, 'bugs', 'usage has command name in it')