From 14a3d95000f1cba937f3309d198a363ae65cf01f Mon Sep 17 00:00:00 2001 From: nlf Date: Thu, 20 Jan 2022 12:37:57 -0800 Subject: fix: resolve workspace paths from cwd when possible (#4265) --- test/lib/arborist-cmd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/lib/arborist-cmd.js b/test/lib/arborist-cmd.js index 3db862d23..91d8a7b33 100644 --- a/test/lib/arborist-cmd.js +++ b/test/lib/arborist-cmd.js @@ -98,7 +98,7 @@ t.test('handle getWorkspaces raising an error', async t => { }) class TestCmd extends ArboristCmd {} const cmd = new TestCmd() - cmd.npm = {} + cmd.npm = { localPrefix: t.testdir() } await t.rejects( cmd.execWorkspaces(['foo'], ['a']), -- cgit v1.2.3