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-08-03 18:36:47 +0300
committerGitHub <noreply@github.com>2022-08-03 18:36:47 +0300
commit19a834610d154f36748536b27aed13bfdb5ee748 (patch)
treed8d40f8f8061d6b7813f20801028c3312cb74220 /test
parent8233fca44321186c485964d26aa3c7c43eafff3d (diff)
fix: properly find and run global scoped packages (#5250)
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/mock-npm.js2
-rw-r--r--test/lib/commands/exec.js4
2 files changed, 4 insertions, 2 deletions
diff --git a/test/fixtures/mock-npm.js b/test/fixtures/mock-npm.js
index 90bf7da4c..adf6c7432 100644
--- a/test/fixtures/mock-npm.js
+++ b/test/fixtures/mock-npm.js
@@ -63,7 +63,7 @@ const LoadMockNpm = async (t, {
prefixDir = {},
homeDir = {},
cacheDir = {},
- globalPrefixDir = {},
+ globalPrefixDir = { lib: {} },
config = {},
mocks = {},
globals = null,
diff --git a/test/lib/commands/exec.js b/test/lib/commands/exec.js
index 6ac719122..6e4c3e224 100644
--- a/test/lib/commands/exec.js
+++ b/test/lib/commands/exec.js
@@ -42,7 +42,9 @@ t.test('registry package', async t => {
}),
})
- await registry.package({ manifest,
+ await registry.package({
+ times: 2,
+ manifest,
tarballs: {
'1.0.0': path.join(npm.prefix, 'npm-exec-test'),
} })