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:
authornlf <quitlahok@gmail.com>2022-01-20 23:37:57 +0300
committerGitHub <noreply@github.com>2022-01-20 23:37:57 +0300
commit14a3d95000f1cba937f3309d198a363ae65cf01f (patch)
treea1bd9458b339bd86e61e3253d2af2975954cee4b /test
parentc99c2151a868672c017f64ff0ecb12149a2fb095 (diff)
fix: resolve workspace paths from cwd when possible (#4265)
Diffstat (limited to 'test')
-rw-r--r--test/lib/arborist-cmd.js2
1 files changed, 1 insertions, 1 deletions
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']),