Debian Codegraph @

tap-snapshots/test/lib/commands/link.js.test.cjs

raw
1 /* IMPORTANT
2 * This snapshot file is auto-generated, but designed for humans.
3 * It should be checked into source control and tracked carefully.
4 * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5 * Make sure to inspect the output below. Do not ignore changes!
6 */
7 'use strict'
8 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`] = `
9 {CWD}/global/node_modules/test-pkg-link -> {CWD}/other/i_like_#_in_my_paths/test-pkg-link
10
11 `
12
13 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`] = `
14 {CWD}/prefix/node_modules/@myscope/bar -> {CWD}/global/node_modules/@myscope/bar
15 {CWD}/prefix/node_modules/@myscope/linked -> {CWD}/other/scoped-linked
16 {CWD}/prefix/node_modules/a -> {CWD}/global/node_modules/a
17 {CWD}/prefix/node_modules/link-me-too -> {CWD}/other/link-me-too
18 {CWD}/prefix/node_modules/test-pkg-link -> {CWD}/other/test-pkg-link
19
20 `
21
22 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`] = `
23 {CWD}/prefix/node_modules/@myscope/bar -> {CWD}/global/node_modules/@myscope/bar
24 {CWD}/prefix/node_modules/@myscope/linked -> {CWD}/other/scoped-linked
25 {CWD}/prefix/node_modules/a -> {CWD}/global/node_modules/a
26 {CWD}/prefix/node_modules/link-me-too -> {CWD}/other/link-me-too
27 {CWD}/prefix/node_modules/test-pkg-link -> {CWD}/other/test-pkg-link
28 {CWD}/prefix/node_modules/x -> {CWD}/prefix/packages/x
29
30 `
31
32 exports[`test/lib/commands/link.js TAP link pkg already in global space > should create a local symlink to global pkg 1`] = `
33 {CWD}/prefix/node_modules/@myscope/linked -> {CWD}/other/scoped-linked
34
35 `
36
37 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`] = `
38 {CWD}/prefix/node_modules/@myscope/linked -> {CWD}/other/scoped-linked
39
40 `
41
42 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`] = `
43 {CWD}/global/node_modules/test-pkg-link -> {CWD}/prefix
44
45 `
46
47 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`] = `
48 {CWD}/global/node_modules/a -> {CWD}/prefix/packages/a
49
50 `
51
52 exports[`test/lib/commands/link.js TAP test linked installed as symlinks > linked package should not be installed 1`] = `
53 {CWD}/prefix/node_modules/mylink -> {CWD}/other/mylink
54
55 `