Debian Codegraph @

tap-snapshots/test/lib/commands/install.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/install.js TAP devEngines should not utilize engines in root if devEngines is provided > must match snapshot 1`] = `
9 silly config load:file:{CWD}/npmrc
10 silly config load:file:{CWD}/prefix/.npmrc
11 silly config load:file:{CWD}/home/.npmrc
12 silly config load:file:{CWD}/global/etc/npmrc
13 verbose title npm
14 verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false"
15 verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
16 verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
17 silly logfile done cleaning log files
18 warn EBADDEVENGINES The developer of this package has specified the following through devEngines
19 warn EBADDEVENGINES Invalid devEngines.runtime
20 warn EBADDEVENGINES Invalid semver version "0.0.1" does not match "v1337.0.0" for "runtime"
21 warn EBADDEVENGINES {
22 warn EBADDEVENGINES current: { name: 'node', version: 'v1337.0.0' },
23 warn EBADDEVENGINES required: { name: 'node', version: '0.0.1', onFail: 'warn' }
24 warn EBADDEVENGINES }
25 silly packumentCache heap:{heap} maxSize:{maxSize} maxEntrySize:{maxEntrySize}
26 silly idealTree buildDeps
27 silly reify moves {}
28 silly audit report null
29
30 up to date, audited 1 package in {TIME}
31 found 0 vulnerabilities
32 `
33
34 exports[`test/lib/commands/install.js TAP devEngines should show devEngines doesnt break engines > must match snapshot 1`] = `
35 silly config load:file:{CWD}/npmrc
36 silly config load:file:{CWD}/home/.npmrc
37 silly config load:file:{CWD}/global/etc/npmrc
38 verbose title npm
39 verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false" "--global" "true"
40 verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
41 verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
42 silly logfile done cleaning log files
43 silly packumentCache heap:{heap} maxSize:{maxSize} maxEntrySize:{maxEntrySize}
44 silly idealTree buildDeps
45 silly placeDep ROOT alpha@ OK for: want: file:../../prefix/alpha
46 warn EBADENGINE Unsupported engine {
47 warn EBADENGINE package: undefined,
48 warn EBADENGINE required: { node: '1.0.0' },
49 warn EBADENGINE current: { node: 'v1337.0.0', npm: '42.0.0' }
50 warn EBADENGINE }
51 warn EBADENGINE Unsupported engine {
52 warn EBADENGINE package: undefined,
53 warn EBADENGINE required: { node: '1.0.0' },
54 warn EBADENGINE current: { node: 'v1337.0.0', npm: '42.0.0' }
55 warn EBADENGINE }
56 silly reify moves {}
57 silly ADD node_modules/alpha
58
59 added 1 package in {TIME}
60 `
61
62 exports[`test/lib/commands/install.js TAP devEngines should show devEngines has no effect on dev package install > must match snapshot 1`] = `
63 silly config load:file:{CWD}/npmrc
64 silly config load:file:{CWD}/prefix/.npmrc
65 silly config load:file:{CWD}/home/.npmrc
66 silly config load:file:{CWD}/global/etc/npmrc
67 verbose title npm
68 verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false" "--save-dev" "true"
69 verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
70 verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
71 silly logfile done cleaning log files
72 silly packumentCache heap:{heap} maxSize:{maxSize} maxEntrySize:{maxEntrySize}
73 silly idealTree buildDeps
74 silly placeDep ROOT alpha@ OK for: want: file:alpha
75 silly reify moves {}
76 silly audit bulk request {}
77 silly audit report null
78 silly ADD node_modules/alpha
79
80 added 1 package, and audited 3 packages in {TIME}
81 found 0 vulnerabilities
82 `
83
84 exports[`test/lib/commands/install.js TAP devEngines should show devEngines has no effect on global package install > must match snapshot 1`] = `
85 silly config load:file:{CWD}/npmrc
86 silly config load:file:{CWD}/home/.npmrc
87 silly config load:file:{CWD}/global/etc/npmrc
88 verbose title npm
89 verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false" "--global" "true"
90 verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
91 verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
92 silly logfile done cleaning log files
93 silly packumentCache heap:{heap} maxSize:{maxSize} maxEntrySize:{maxEntrySize}
94 silly idealTree buildDeps
95 silly placeDep ROOT alpha@ OK for: want: file:../../prefix
96 silly reify moves {}
97 silly ADD node_modules/alpha
98
99 added 1 package in {TIME}
100 `
101
102 exports[`test/lib/commands/install.js TAP devEngines should show devEngines has no effect on package install > must match snapshot 1`] = `
103 silly config load:file:{CWD}/npmrc
104 silly config load:file:{CWD}/prefix/.npmrc
105 silly config load:file:{CWD}/home/.npmrc
106 silly config load:file:{CWD}/global/etc/npmrc
107 verbose title npm
108 verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false"
109 verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
110 verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
111 silly logfile done cleaning log files
112 silly packumentCache heap:{heap} maxSize:{maxSize} maxEntrySize:{maxEntrySize}
113 silly idealTree buildDeps
114 silly placeDep ROOT alpha@ OK for: want: file:alpha
115 silly reify moves {}
116 silly audit bulk request {}
117 silly audit report null
118 silly ADD node_modules/alpha
119
120 added 1 package, and audited 3 packages in {TIME}
121 found 0 vulnerabilities
122 `
123
124 exports[`test/lib/commands/install.js TAP devEngines should utilize devEngines 2x error case > must match snapshot 1`] = `
125 silly config load:file:{CWD}/npmrc
126 silly config load:file:{CWD}/prefix/.npmrc
127 silly config load:file:{CWD}/home/.npmrc
128 silly config load:file:{CWD}/global/etc/npmrc
129 verbose title npm
130 verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false"
131 verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
132 verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
133 silly logfile done cleaning log files
134 verbose stack Error: The developer of this package has specified the following through devEngines
135 verbose stack Invalid devEngines.runtime
136 verbose stack Invalid name "nondescript" does not match "node" for "runtime"
137 verbose stack at Install.checkDevEngines ({CWD}/lib/base-cmd.js:247:27)
138 verbose stack at MockNpm.execCommandClass ({CWD}/lib/npm.js:292:7)
139 verbose stack at MockNpm.exec ({CWD}/lib/npm.js:193:9)
140 error code EBADDEVENGINES
141 error EBADDEVENGINES The developer of this package has specified the following through devEngines
142 error EBADDEVENGINES Invalid devEngines.runtime
143 error EBADDEVENGINES Invalid name "nondescript" does not match "node" for "runtime"
144 error EBADDEVENGINES {
145 error EBADDEVENGINES current: { name: 'node', version: 'v1337.0.0' },
146 error EBADDEVENGINES required: { name: 'nondescript', onFail: 'error' }
147 error EBADDEVENGINES }
148 `
149
150 exports[`test/lib/commands/install.js TAP devEngines should utilize devEngines 2x warning case > must match snapshot 1`] = `
151 silly config load:file:{CWD}/npmrc
152 silly config load:file:{CWD}/prefix/.npmrc
153 silly config load:file:{CWD}/home/.npmrc
154 silly config load:file:{CWD}/global/etc/npmrc
155 verbose title npm
156 verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false"
157 verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
158 verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
159 silly logfile done cleaning log files
160 warn EBADDEVENGINES The developer of this package has specified the following through devEngines
161 warn EBADDEVENGINES Invalid devEngines.runtime
162 warn EBADDEVENGINES Invalid name "nondescript" does not match "node" for "runtime"
163 warn EBADDEVENGINES {
164 warn EBADDEVENGINES current: { name: 'node', version: 'v1337.0.0' },
165 warn EBADDEVENGINES required: { name: 'nondescript', onFail: 'warn' }
166 warn EBADDEVENGINES }
167 warn EBADDEVENGINES Invalid devEngines.cpu
168 warn EBADDEVENGINES Invalid name "risv" does not match "x86" for "cpu"
169 warn EBADDEVENGINES {
170 warn EBADDEVENGINES current: { name: 'x86' },
171 warn EBADDEVENGINES required: { name: 'risv', onFail: 'warn' }
172 warn EBADDEVENGINES }
173 silly packumentCache heap:{heap} maxSize:{maxSize} maxEntrySize:{maxEntrySize}
174 silly idealTree buildDeps
175 silly reify moves {}
176 silly audit report null
177
178 up to date, audited 1 package in {TIME}
179 found 0 vulnerabilities
180 `
181
182 exports[`test/lib/commands/install.js TAP devEngines should utilize devEngines failure and warning case > must match snapshot 1`] = `
183 silly config load:file:{CWD}/npmrc
184 silly config load:file:{CWD}/prefix/.npmrc
185 silly config load:file:{CWD}/home/.npmrc
186 silly config load:file:{CWD}/global/etc/npmrc
187 verbose title npm
188 verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false"
189 verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
190 verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
191 silly logfile done cleaning log files
192 warn EBADDEVENGINES The developer of this package has specified the following through devEngines
193 warn EBADDEVENGINES Invalid devEngines.cpu
194 warn EBADDEVENGINES Invalid name "risv" does not match "x86" for "cpu"
195 warn EBADDEVENGINES {
196 warn EBADDEVENGINES current: { name: 'x86' },
197 warn EBADDEVENGINES required: { name: 'risv', onFail: 'warn' }
198 warn EBADDEVENGINES }
199 verbose stack Error: The developer of this package has specified the following through devEngines
200 verbose stack Invalid devEngines.runtime
201 verbose stack Invalid name "nondescript" does not match "node" for "runtime"
202 verbose stack at Install.checkDevEngines ({CWD}/lib/base-cmd.js:247:27)
203 verbose stack at MockNpm.execCommandClass ({CWD}/lib/npm.js:292:7)
204 verbose stack at MockNpm.exec ({CWD}/lib/npm.js:193:9)
205 error code EBADDEVENGINES
206 error EBADDEVENGINES The developer of this package has specified the following through devEngines
207 error EBADDEVENGINES Invalid devEngines.runtime
208 error EBADDEVENGINES Invalid name "nondescript" does not match "node" for "runtime"
209 error EBADDEVENGINES {
210 error EBADDEVENGINES current: { name: 'node', version: 'v1337.0.0' },
211 error EBADDEVENGINES required: { name: 'nondescript' }
212 error EBADDEVENGINES }
213 `
214
215 exports[`test/lib/commands/install.js TAP devEngines should utilize devEngines failure case > must match snapshot 1`] = `
216 silly config load:file:{CWD}/npmrc
217 silly config load:file:{CWD}/prefix/.npmrc
218 silly config load:file:{CWD}/home/.npmrc
219 silly config load:file:{CWD}/global/etc/npmrc
220 verbose title npm
221 verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false"
222 verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
223 verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
224 silly logfile done cleaning log files
225 verbose stack Error: The developer of this package has specified the following through devEngines
226 verbose stack Invalid devEngines.runtime
227 verbose stack Invalid name "nondescript" does not match "node" for "runtime"
228 verbose stack at Install.checkDevEngines ({CWD}/lib/base-cmd.js:247:27)
229 verbose stack at MockNpm.execCommandClass ({CWD}/lib/npm.js:292:7)
230 verbose stack at MockNpm.exec ({CWD}/lib/npm.js:193:9)
231 error code EBADDEVENGINES
232 error EBADDEVENGINES The developer of this package has specified the following through devEngines
233 error EBADDEVENGINES Invalid devEngines.runtime
234 error EBADDEVENGINES Invalid name "nondescript" does not match "node" for "runtime"
235 error EBADDEVENGINES {
236 error EBADDEVENGINES current: { name: 'node', version: 'v1337.0.0' },
237 error EBADDEVENGINES required: { name: 'nondescript' }
238 error EBADDEVENGINES }
239 `
240
241 exports[`test/lib/commands/install.js TAP devEngines should utilize devEngines failure force case > must match snapshot 1`] = `
242 silly config load:file:{CWD}/npmrc
243 silly config load:file:{CWD}/prefix/.npmrc
244 silly config load:file:{CWD}/home/.npmrc
245 silly config load:file:{CWD}/global/etc/npmrc
246 verbose title npm
247 verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false" "--force" "true"
248 verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
249 verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
250 warn using --force Recommended protections disabled.
251 silly logfile done cleaning log files
252 warn EBADDEVENGINES The developer of this package has specified the following through devEngines
253 warn EBADDEVENGINES Invalid devEngines.runtime
254 warn EBADDEVENGINES Invalid name "nondescript" does not match "node" for "runtime"
255 warn EBADDEVENGINES {
256 warn EBADDEVENGINES current: { name: 'node', version: 'v1337.0.0' },
257 warn EBADDEVENGINES required: { name: 'nondescript' }
258 warn EBADDEVENGINES }
259 silly packumentCache heap:{heap} maxSize:{maxSize} maxEntrySize:{maxEntrySize}
260 silly idealTree buildDeps
261 silly reify moves {}
262 silly audit report null
263
264 up to date, audited 1 package in {TIME}
265 found 0 vulnerabilities
266 `
267
268 exports[`test/lib/commands/install.js TAP devEngines should utilize devEngines success case > must match snapshot 1`] = `
269 silly config load:file:{CWD}/npmrc
270 silly config load:file:{CWD}/prefix/.npmrc
271 silly config load:file:{CWD}/home/.npmrc
272 silly config load:file:{CWD}/global/etc/npmrc
273 verbose title npm
274 verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false"
275 verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
276 verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
277 silly logfile done cleaning log files
278 silly packumentCache heap:{heap} maxSize:{maxSize} maxEntrySize:{maxEntrySize}
279 silly idealTree buildDeps
280 silly reify moves {}
281 silly audit report null
282
283 up to date, audited 1 package in {TIME}
284 found 0 vulnerabilities
285 `
286
287 exports[`test/lib/commands/install.js TAP devEngines should utilize engines in root if devEngines is not provided > must match snapshot 1`] = `
288 silly config load:file:{CWD}/npmrc
289 silly config load:file:{CWD}/prefix/.npmrc
290 silly config load:file:{CWD}/home/.npmrc
291 silly config load:file:{CWD}/global/etc/npmrc
292 verbose title npm
293 verbose argv "--fetch-retries" "0" "--cache" "{CWD}/cache" "--loglevel" "silly" "--color" "false"
294 verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
295 verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
296 silly logfile done cleaning log files
297 silly packumentCache heap:{heap} maxSize:{maxSize} maxEntrySize:{maxEntrySize}
298 silly idealTree buildDeps
299 warn EBADENGINE Unsupported engine {
300 warn EBADENGINE package: undefined,
301 warn EBADENGINE required: { node: '0.0.1' },
302 warn EBADENGINE current: { node: 'v1337.0.0', npm: '42.0.0' }
303 warn EBADENGINE }
304 silly reify moves {}
305 silly audit report null
306
307 up to date, audited 1 package in {TIME}
308 found 0 vulnerabilities
309 `