From e8d2adcf40ad63030f844c9aa44c6d16e2146797 Mon Sep 17 00:00:00 2001 From: nlf Date: Wed, 24 Mar 2021 10:47:47 -0700 Subject: fix: config should not error when workspaces are configured PR-URL: https://github.com/npm/cli/pull/2945 Credit: @nlf Close: #2945 Reviewed-by: @wraithgar --- test/lib/config.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/lib/config.js b/test/lib/config.js index 14cd81617..98ece0f4f 100644 --- a/test/lib/config.js +++ b/test/lib/config.js @@ -93,6 +93,13 @@ t.test('config no args', t => { }) }) +t.test('config ignores workspaces', t => { + config.execWorkspaces([], [], (err) => { + t.match(err, /usage instructions/, 'should not error out when workspaces are defined') + t.end() + }) +}) + t.test('config list', t => { t.plan(2) -- cgit v1.2.3