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:
authorisaacs <i@izs.me>2021-05-27 01:56:33 +0300
committerisaacs <i@izs.me>2021-05-27 01:56:33 +0300
commit68164bd8449eb3bc38ff86c8c30babf4d8fb0d29 (patch)
tree8aea75edd452f4dfd79bc278c276e8cd4f2f100d
parent3968c3e8dd599984d53413ed99371c9841b1ead3 (diff)
fixup! fixup! feat(link): add workspace supportisaacs/prefix-over-local-prefix
-rw-r--r--test/lib/link.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lib/link.js b/test/lib/link.js
index 3cad0ff90..2688413cf 100644
--- a/test/lib/link.js
+++ b/test/lib/link.js
@@ -67,6 +67,7 @@ t.test('link to globalDir when in current working dir of pkg and no args', (t) =
})
npm.globalDir = resolve(testdir, 'global-prefix', 'lib', 'node_modules')
npm.prefix = resolve(testdir, 'test-pkg-link')
+ npm.localPrefix = resolve(testdir, 'test-pkg-link')
reifyOutput = async () => {
reifyOutput = undefined
@@ -214,6 +215,7 @@ t.test('link global linked pkg to local nm when using args', (t) => {
})
npm.globalDir = resolve(testdir, 'global-prefix', 'lib', 'node_modules')
npm.prefix = resolve(testdir, 'my-project')
+ npm.localPrefix = resolve(testdir, 'my-project')
const _cwd = process.cwd()
process.chdir(npm.prefix)
@@ -392,6 +394,7 @@ t.test('link pkg already in global space', (t) => {
})
npm.globalDir = resolve(testdir, 'global-prefix', 'lib', 'node_modules')
npm.prefix = resolve(testdir, 'my-project')
+ npm.localPrefix = resolve(testdir, 'my-project')
npm.config.find = () => 'default'
@@ -456,6 +459,7 @@ t.test('link pkg already in global space when prefix is a symlink', (t) => {
})
npm.globalDir = resolve(testdir, 'global-prefix', 'lib', 'node_modules')
npm.prefix = resolve(testdir, 'my-project')
+ npm.localPrefix = resolve(testdir, 'my-project')
npm.config.find = () => 'default'