Debian Codegraph @

tap-snapshots/test/lib/utils/explain-dep.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/utils/explain-dep.js TAP basic > circular dependency does not recurse infinitely 1`] = `
9 [email protected]
10 node_modules/cycle-a
11 cycle-a@"1.x" from [email protected]
12 node_modules/cycle-b
13 cycle-b@"2.x" from [email protected]
14 node_modules/cycle-a
15 cycle-a@"1.x" from [email protected]
16 node_modules/cycle-b
17 `
18
19 exports[`test/lib/utils/explain-dep.js TAP basic > circular dependency from other side 1`] = `
20 [email protected]
21 node_modules/cycle-b
22 cycle-b@"2.x" from [email protected]
23 node_modules/cycle-a
24 cycle-a@"1.x" from [email protected]
25 node_modules/cycle-b
26 cycle-b@"2.x" from [email protected]
27 node_modules/cycle-a
28 `
29
30 exports[`test/lib/utils/explain-dep.js TAP basic > ellipses test one 1`] = `
31 [email protected]
32 manydep@"1.0.0" from [email protected]
33 node_modules/prod-dep
34 prod-dep@"1.x" from the root project
35 7 more (optdep, extra-neos, deep-dev, peer, the root project, ...)
36 `
37
38 exports[`test/lib/utils/explain-dep.js TAP basic > ellipses test two 1`] = `
39 [email protected]
40 manydep@"1.0.0" from [email protected]
41 node_modules/prod-dep
42 prod-dep@"1.x" from the root project
43 6 more (optdep, extra-neos, deep-dev, peer, the root project, a package with a pretty long name)
44 `
45
46 exports[`test/lib/utils/explain-dep.js TAP basic > explainEdge without seen parameter 1`] = `
47 some-dep@"1.x" from [email protected]
48 node_modules/parent-pkg
49 `
50
51 exports[`test/lib/utils/explain-dep.js TAP basic bundled > explain color deep 1`] = `
52 [email protected] bundled
53 node_modules/bundle-of-joy
54 bundled prod-dep@"1.x" from the root project
55 `
56
57 exports[`test/lib/utils/explain-dep.js TAP basic bundled > explain nocolor shallow 1`] = `
58 [email protected] bundled
59 node_modules/bundle-of-joy
60 bundled prod-dep@"1.x" from the root project
61 `
62
63 exports[`test/lib/utils/explain-dep.js TAP basic bundled > print color 1`] = `
64 [email protected] bundled
65 node_modules/bundle-of-joy
66 `
67
68 exports[`test/lib/utils/explain-dep.js TAP basic bundled > print nocolor 1`] = `
69 [email protected] bundled
70 node_modules/bundle-of-joy
71 `
72
73 exports[`test/lib/utils/explain-dep.js TAP basic deepDev > explain color deep 1`] = `
74 [email protected] dev
75 node_modules/deep-dev
76 deep-dev@"2.x" from [email protected]
77 node_modules/dev/node_modules/metadev
78 metadev@"3.x" from [email protected]
79 node_modules/topdev
80 dev topdev@"4.x" from the root project
81 `
82
83 exports[`test/lib/utils/explain-dep.js TAP basic deepDev > explain nocolor shallow 1`] = `
84 [email protected] dev
85 node_modules/deep-dev
86 deep-dev@"2.x" from [email protected]
87 node_modules/dev/node_modules/metadev
88 metadev@"3.x" from [email protected]
89 node_modules/topdev
90 `
91
92 exports[`test/lib/utils/explain-dep.js TAP basic deepDev > print color 1`] = `
93 [email protected] dev
94 node_modules/deep-dev
95 `
96
97 exports[`test/lib/utils/explain-dep.js TAP basic deepDev > print nocolor 1`] = `
98 [email protected] dev
99 node_modules/deep-dev
100 `
101
102 exports[`test/lib/utils/explain-dep.js TAP basic extraneous > explain color deep 1`] = `
103 [email protected] extraneous
104 node_modules/extra-neos
105 `
106
107 exports[`test/lib/utils/explain-dep.js TAP basic extraneous > explain nocolor shallow 1`] = `
108 [email protected] extraneous
109 node_modules/extra-neos
110 `
111
112 exports[`test/lib/utils/explain-dep.js TAP basic extraneous > print color 1`] = `
113 [email protected] extraneous
114 node_modules/extra-neos
115 `
116
117 exports[`test/lib/utils/explain-dep.js TAP basic extraneous > print nocolor 1`] = `
118 [email protected] extraneous
119 node_modules/extra-neos
120 `
121
122 exports[`test/lib/utils/explain-dep.js TAP basic manyDeps > explain color deep 1`] = `
123 [email protected]
124 manydep@"1.0.0" from [email protected]
125 node_modules/prod-dep
126 prod-dep@"1.x" from the root project
127 optional manydep@"1.x" from [email protected] optional
128 node_modules/optdep
129 optional optdep@"1.0.0" from the root project
130 manydep@"1.0.x" from [email protected] extraneous
131 node_modules/extra-neos
132 dev manydep@"*" from [email protected] dev
133 node_modules/deep-dev
134 deep-dev@"2.x" from [email protected]
135 node_modules/dev/node_modules/metadev
136 metadev@"3.x" from [email protected]
137 node_modules/topdev
138 dev topdev@"4.x" from the root project
139 peer manydep@">1.0.0-beta <1.0.1" from [email protected] peer
140 node_modules/peer
141 peer peer@"1.0.0" from the root project
142 manydep@">1.0.0-beta <1.0.1" from the root project
143 manydep@"1" from a package with a pretty long [email protected]
144 manydep@"1" from another package with a pretty long [email protected]
145 manydep@"1" from yet another a package with a pretty long [email protected]
146 `
147
148 exports[`test/lib/utils/explain-dep.js TAP basic manyDeps > explain nocolor shallow 1`] = `
149 [email protected]
150 manydep@"1.0.0" from [email protected]
151 node_modules/prod-dep
152 prod-dep@"1.x" from the root project
153 8 more (optdep, extra-neos, deep-dev, peer, the root project, ...)
154 `
155
156 exports[`test/lib/utils/explain-dep.js TAP basic manyDeps > print color 1`] = `
157 [email protected]
158 `
159
160 exports[`test/lib/utils/explain-dep.js TAP basic manyDeps > print nocolor 1`] = `
161 [email protected]
162 `
163
164 exports[`test/lib/utils/explain-dep.js TAP basic optional > explain color deep 1`] = `
165 [email protected] optional
166 node_modules/optdep
167 optional optdep@"1.0.0" from the root project
168 `
169
170 exports[`test/lib/utils/explain-dep.js TAP basic optional > explain nocolor shallow 1`] = `
171 [email protected] optional
172 node_modules/optdep
173 optional optdep@"1.0.0" from the root project
174 `
175
176 exports[`test/lib/utils/explain-dep.js TAP basic optional > print color 1`] = `
177 [email protected] optional
178 node_modules/optdep
179 `
180
181 exports[`test/lib/utils/explain-dep.js TAP basic optional > print nocolor 1`] = `
182 [email protected] optional
183 node_modules/optdep
184 `
185
186 exports[`test/lib/utils/explain-dep.js TAP basic overridden > explain color deep 1`] = `
187 [email protected] overridden
188 node_modules/overridden-root
189 overridden overridden-dep@"1.0.0" (was "^2.0.0") from the root project
190 `
191
192 exports[`test/lib/utils/explain-dep.js TAP basic overridden > explain nocolor shallow 1`] = `
193 [email protected] overridden
194 node_modules/overridden-root
195 overridden overridden-dep@"1.0.0" (was "^2.0.0") from the root project
196 `
197
198 exports[`test/lib/utils/explain-dep.js TAP basic overridden > print color 1`] = `
199 [email protected] overridden
200 node_modules/overridden-root
201 `
202
203 exports[`test/lib/utils/explain-dep.js TAP basic overridden > print nocolor 1`] = `
204 [email protected] overridden
205 node_modules/overridden-root
206 `
207
208 exports[`test/lib/utils/explain-dep.js TAP basic peer > explain color deep 1`] = `
209 [email protected] peer
210 node_modules/peer
211 peer peer@"1.0.0" from the root project
212 `
213
214 exports[`test/lib/utils/explain-dep.js TAP basic peer > explain nocolor shallow 1`] = `
215 [email protected] peer
216 node_modules/peer
217 peer peer@"1.0.0" from the root project
218 `
219
220 exports[`test/lib/utils/explain-dep.js TAP basic peer > print color 1`] = `
221 [email protected] peer
222 node_modules/peer
223 `
224
225 exports[`test/lib/utils/explain-dep.js TAP basic peer > print nocolor 1`] = `
226 [email protected] peer
227 node_modules/peer
228 `
229
230 exports[`test/lib/utils/explain-dep.js TAP basic prodDep > explain color deep 1`] = `
231 [email protected]
232 node_modules/prod-dep
233 prod-dep@"1.x" from the root project
234 `
235
236 exports[`test/lib/utils/explain-dep.js TAP basic prodDep > explain nocolor shallow 1`] = `
237 [email protected]
238 node_modules/prod-dep
239 prod-dep@"1.x" from the root project
240 `
241
242 exports[`test/lib/utils/explain-dep.js TAP basic prodDep > print color 1`] = `
243 [email protected]
244 node_modules/prod-dep
245 `
246
247 exports[`test/lib/utils/explain-dep.js TAP basic prodDep > print nocolor 1`] = `
248 [email protected]
249 node_modules/prod-dep
250 `
251
252 exports[`test/lib/utils/explain-dep.js TAP basic workspaces > explain color deep 1`] = `
253 [[email protected]
254 a
255 [[email protected]
256 node_modules/a
257 workspace a from the root project
258 `
259
260 exports[`test/lib/utils/explain-dep.js TAP basic workspaces > explain nocolor shallow 1`] = `
261 [email protected]
262 a
263 [email protected]
264 node_modules/a
265 workspace a from the root project
266 `
267
268 exports[`test/lib/utils/explain-dep.js TAP basic workspaces > print color 1`] = `
269 [[email protected]
270 a
271 `
272
273 exports[`test/lib/utils/explain-dep.js TAP basic workspaces > print nocolor 1`] = `
274 [email protected]
275 a
276 `