2021-11-04 20:42:47 +00:00
/ * I M P O R T A N T
* This snapshot file is auto - generated , but designed for humans .
* It should be checked into source control and tracked carefully .
* Re - generate by setting TAP _SNAPSHOT = 1 and running tests .
* Make sure to inspect the output below . Do not ignore changes !
* /
'use strict'
2022-07-28 11:03:27 -07:00
exports [ ` test/lib/commands/link.js TAP hash character in working directory path > should create a global link to current pkg, even within path with hash 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / global / node _modules / test - pkg - link - > { CWD } / other / i _like _ # _in _my _paths / test - pkg - link
2022-07-28 11:03:27 -07:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/link.js TAP link global linked pkg to local nm when using args > should create a local symlink to global pkg 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix / node _modules / @ myscope / bar - > { CWD } / global / node _modules / @ myscope / bar
{ CWD } / prefix / node _modules / @ myscope / linked - > { CWD } / other / scoped - linked
{ CWD } / prefix / node _modules / a - > { CWD } / global / node _modules / a
{ CWD } / prefix / node _modules / link - me - too - > { CWD } / other / link - me - too
{ CWD } / prefix / node _modules / test - pkg - link - > { CWD } / other / test - pkg - link
2021-11-04 20:42:47 +00:00
`
exports [ ` test/lib/commands/link.js TAP link global linked pkg to local workspace using args > should create a local symlink to global pkg 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix / node _modules / @ myscope / bar - > { CWD } / global / node _modules / @ myscope / bar
{ CWD } / prefix / node _modules / @ myscope / linked - > { CWD } / other / scoped - linked
{ CWD } / prefix / node _modules / a - > { CWD } / global / node _modules / a
{ CWD } / prefix / node _modules / link - me - too - > { CWD } / other / link - me - too
{ CWD } / prefix / node _modules / test - pkg - link - > { CWD } / other / test - pkg - link
{ CWD } / prefix / node _modules / x - > { CWD } / prefix / packages / x
2021-11-04 20:42:47 +00:00
`
exports [ ` test/lib/commands/link.js TAP link pkg already in global space > should create a local symlink to global pkg 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix / node _modules / @ myscope / linked - > { CWD } / other / scoped - linked
2021-11-04 20:42:47 +00:00
`
exports [ ` test/lib/commands/link.js TAP link pkg already in global space when prefix is a symlink > should create a local symlink to global pkg 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix / node _modules / @ myscope / linked - > { CWD } / other / scoped - linked
2021-11-04 20:42:47 +00:00
`
exports [ ` test/lib/commands/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 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / global / node _modules / test - pkg - link - > { CWD } / prefix
2021-11-04 20:42:47 +00:00
`
exports [ ` test/lib/commands/link.js TAP link ws to globalDir when workspace specified and no args > should create a global link to current pkg 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / global / node _modules / a - > { CWD } / prefix / packages / a
2021-11-04 20:42:47 +00:00
`
2022-12-06 22:18:33 -05:00
exports [ ` test/lib/commands/link.js TAP test linked installed as symlinks > linked package should not be installed 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix / node _modules / mylink - > { CWD } / other / mylink
2022-12-06 22:18:33 -05:00
`