diff options
author | nlf <quitlahok@gmail.com> | 2021-01-13 20:12:42 +0300 |
---|---|---|
committer | Michael Garvin <gar+gh@danger.computer> | 2021-01-15 00:21:21 +0300 |
commit | 23df96d3394ba0b69a37f416d7f0c26bb9354975 (patch) | |
tree | fbf709ce03dc82678b1e152269f14b6f9651a786 /tap-snapshots | |
parent | b0b0edf6de1678de7f4a000700c88daa5f7194ef (diff) |
fix(link): already linked packages w/ global prefix
correctly identify already linked packages when global prefix is a symlink
PR-URL: https://github.com/npm/cli/pull/2486
Credit: @nlf
Close: #2486
Reviewed-by: @wraithgar
Diffstat (limited to 'tap-snapshots')
-rw-r--r-- | tap-snapshots/test-lib-link.js-TAP.test.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tap-snapshots/test-lib-link.js-TAP.test.js b/tap-snapshots/test-lib-link.js-TAP.test.js index de7f483b6..ab1d5c6b8 100644 --- a/tap-snapshots/test-lib-link.js-TAP.test.js +++ b/tap-snapshots/test-lib-link.js-TAP.test.js @@ -19,6 +19,11 @@ exports[`test/lib/link.js TAP link pkg already in global space > should create a ` +exports[`test/lib/link.js TAP link pkg already in global space when prefix is a symlink > should create a local symlink to global pkg 1`] = ` +{CWD}/test/lib/link-link-pkg-already-in-global-space-when-prefix-is-a-symlink/my-project/node_modules/@myscope/linked -> {CWD}/test/lib/link-link-pkg-already-in-global-space-when-prefix-is-a-symlink/scoped-linked + +` + exports[`test/lib/link.js TAP link to globalDir when in current working dir of pkg and no args > should create a global link to current pkg 1`] = ` {CWD}/test/lib/link-link-to-globalDir-when-in-current-working-dir-of-pkg-and-no-args/global-prefix/lib/node_modules/test-pkg-link -> {CWD}/test/lib/link-link-to-globalDir-when-in-current-working-dir-of-pkg-and-no-args/test-pkg-link |