Debian Codegraph @

tap-snapshots/test/lib/commands/config.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/config.js TAP config list --json > output matches snapshot 1`] = `
9 {
10 "cache": "{CACHE}",
11 "color": {COLOR},
12 "json": true,
13 "projectloaded": "yes",
14 "userloaded": "yes",
15 "globalloaded": "yes",
16 "access": null,
17 "all": false,
18 "allow-same-version": false,
19 "allow-directory": "all",
20 "allow-file": "all",
21 "allow-git": "all",
22 "allow-remote": "all",
23 "allow-scripts": [
24 ""
25 ],
26 "also": null,
27 "audit": true,
28 "audit-level": null,
29 "auth-type": "web",
30 "before": null,
31 "bin-links": true,
32 "browser": null,
33 "bypass-2fa": false,
34 "ca": null,
35 "cache-max": null,
36 "cache-min": 0,
37 "cafile": null,
38 "call": "",
39 "cert": null,
40 "cidr": null,
41 "commit-hooks": true,
42 "cpu": null,
43 "dangerously-allow-all-scripts": false,
44 "depth": null,
45 "description": true,
46 "dev": false,
47 "diff": [],
48 "diff-ignore-all-space": false,
49 "diff-name-only": false,
50 "diff-no-prefix": false,
51 "diff-dst-prefix": "b/",
52 "diff-src-prefix": "a/",
53 "diff-text": false,
54 "diff-unified": 3,
55 "dry-run": false,
56 "editor": "{EDITOR}",
57 "engine-strict": false,
58 "expect-result-count": null,
59 "expect-results": null,
60 "expires": null,
61 "fetch-retries": 2,
62 "fetch-retry-factor": 10,
63 "fetch-retry-maxtimeout": 60000,
64 "fetch-retry-mintimeout": 10000,
65 "fetch-timeout": 300000,
66 "force": false,
67 "foreground-scripts": false,
68 "format-package-lock": true,
69 "fund": true,
70 "git": "git",
71 "git-tag-version": true,
72 "global": false,
73 "globalconfig": "{CWD}/global/etc/npmrc",
74 "global-style": false,
75 "heading": "npm",
76 "https-proxy": null,
77 "if-present": false,
78 "ignore-scripts": false,
79 "include": [],
80 "include-staged": false,
81 "include-workspace-root": false,
82 "include-attestations": false,
83 "init-author-email": "",
84 "init-author-name": "",
85 "init-author-url": "",
86 "init-license": "ISC",
87 "init-module": "{CWD}/home/.npm-init.js",
88 "init-type": "commonjs",
89 "init-version": "1.0.0",
90 "init-private": false,
91 "init.author.email": "",
92 "init.author.name": "",
93 "init.author.url": "",
94 "init.license": "ISC",
95 "init.module": "{CWD}/home/.npm-init.js",
96 "init.version": "1.0.0",
97 "install-links": false,
98 "install-strategy": "hoisted",
99 "key": null,
100 "legacy-bundling": false,
101 "legacy-peer-deps": false,
102 "libc": null,
103 "link": false,
104 "local-address": null,
105 "location": "user",
106 "lockfile-version": null,
107 "loglevel": "notice",
108 "logs-dir": null,
109 "logs-max": 10,
110 "long": false,
111 "name": null,
112 "maxsockets": 15,
113 "message": "%s",
114 "min-release-age": null,
115 "node-gyp": "{CWD}/node_modules/node-gyp/bin/node-gyp.js",
116 "node-options": null,
117 "noproxy": [
118 ""
119 ],
120 "offline": false,
121 "omit": [],
122 "omit-lockfile-registry-resolved": false,
123 "only": null,
124 "orgs": null,
125 "optional": null,
126 "os": null,
127 "otp": null,
128 "package": [],
129 "package-lock": true,
130 "package-lock-only": false,
131 "pack-destination": ".",
132 "packages": [],
133 "parseable": false,
134 "allow-scripts-pending": false,
135 "allow-scripts-pin": true,
136 "prefer-dedupe": false,
137 "prefer-offline": false,
138 "prefer-online": false,
139 "prefix": "{CWD}/global",
140 "preid": "",
141 "production": null,
142 "progress": {PROGRESS},
143 "provenance": false,
144 "provenance-file": null,
145 "proxy": null,
146 "read-only": false,
147 "rebuild-bundle": true,
148 "registry": "https://registry.npmjs.org/",
149 "replace-registry-host": "npmjs",
150 "save": true,
151 "save-bundle": false,
152 "save-dev": false,
153 "save-exact": false,
154 "save-optional": false,
155 "save-peer": false,
156 "save-prefix": "^",
157 "save-prod": false,
158 "sbom-format": null,
159 "sbom-type": "library",
160 "scope": "",
161 "scopes": null,
162 "packages-all": false,
163 "packages-and-scopes-permission": null,
164 "orgs-permission": null,
165 "token-description": null,
166 "script-shell": null,
167 "searchexclude": "",
168 "searchlimit": 20,
169 "searchopts": "",
170 "searchstaleness": 900,
171 "shell": "{SHELL}",
172 "shrinkwrap": true,
173 "sign-git-commit": false,
174 "sign-git-tag": false,
175 "strict-peer-deps": false,
176 "strict-allow-scripts": false,
177 "strict-ssl": true,
178 "tag": "latest",
179 "tag-version-prefix": "v",
180 "timing": false,
181 "umask": 0,
182 "unicode": false,
183 "update-notifier": true,
184 "usage": false,
185 "user-agent": "npm/{npm-version} node/{node-version} {platform} {arch} workspaces/{workspaces} {ci}",
186 "userconfig": "{CWD}/home/.npmrc",
187 "version": false,
188 "versions": false,
189 "viewer": "{VIEWER}",
190 "which": null,
191 "workspace": [],
192 "workspaces": null,
193 "workspaces-update": true,
194 "yes": null,
195 "npm-version": "{NPM-VERSION}"
196 }
197 `
198
199 exports[`test/lib/commands/config.js TAP config list --long > output matches snapshot 1`] = `
200 ; "default" config from default values
201
202 _auth = (protected)
203 access = null
204 all = false
205 allow-directory = "all"
206 allow-file = "all"
207 allow-git = "all"
208 allow-remote = "all"
209 allow-same-version = false
210 allow-scripts = [""]
211 allow-scripts-pending = false
212 allow-scripts-pin = true
213 also = null
214 audit = true
215 audit-level = null
216 auth-type = "web"
217 before = null
218 bin-links = true
219 browser = null
220 bypass-2fa = false
221 ca = null
222 ; cache = "{CACHE}" ; overridden by cli
223 cache-max = null
224 cache-min = 0
225 cafile = null
226 call = ""
227 cert = null
228 cidr = null
229 ; color = {COLOR}
230 commit-hooks = true
231 cpu = null
232 dangerously-allow-all-scripts = false
233 depth = null
234 description = true
235 dev = false
236 diff = []
237 diff-dst-prefix = "b/"
238 diff-ignore-all-space = false
239 diff-name-only = false
240 diff-no-prefix = false
241 diff-src-prefix = "a/"
242 diff-text = false
243 diff-unified = 3
244 dry-run = false
245 editor = "{EDITOR}"
246 engine-strict = false
247 expect-result-count = null
248 expect-results = null
249 expires = null
250 fetch-retries = 2
251 fetch-retry-factor = 10
252 fetch-retry-maxtimeout = 60000
253 fetch-retry-mintimeout = 10000
254 fetch-timeout = 300000
255 force = false
256 foreground-scripts = false
257 format-package-lock = true
258 fund = true
259 git = "git"
260 git-tag-version = true
261 global = false
262 global-style = false
263 globalconfig = "{CWD}/global/etc/npmrc"
264 heading = "npm"
265 https-proxy = null
266 if-present = false
267 ignore-scripts = false
268 include = []
269 include-attestations = false
270 include-staged = false
271 include-workspace-root = false
272 init-author-email = ""
273 init-author-name = ""
274 init-author-url = ""
275 init-license = "ISC"
276 init-module = "{CWD}/home/.npm-init.js"
277 init-private = false
278 init-type = "commonjs"
279 init-version = "1.0.0"
280 init.author.email = ""
281 init.author.name = ""
282 init.author.url = ""
283 init.license = "ISC"
284 init.module = "{CWD}/home/.npm-init.js"
285 init.version = "1.0.0"
286 install-links = false
287 install-strategy = "hoisted"
288 json = false
289 key = null
290 legacy-bundling = false
291 legacy-peer-deps = false
292 libc = null
293 link = false
294 local-address = null
295 location = "user"
296 lockfile-version = null
297 loglevel = "notice"
298 logs-dir = null
299 logs-max = 10
300 ; long = false ; overridden by cli
301 maxsockets = 15
302 message = "%s"
303 min-release-age = null
304 name = null
305 node-gyp = "{CWD}/node_modules/node-gyp/bin/node-gyp.js"
306 node-options = null
307 noproxy = [""]
308 npm-version = "{NPM-VERSION}"
309 offline = false
310 omit = []
311 omit-lockfile-registry-resolved = false
312 only = null
313 optional = null
314 orgs = null
315 orgs-permission = null
316 os = null
317 otp = null
318 pack-destination = "."
319 package = []
320 package-lock = true
321 package-lock-only = false
322 packages = []
323 packages-all = false
324 packages-and-scopes-permission = null
325 parseable = false
326 password = (protected)
327 prefer-dedupe = false
328 prefer-offline = false
329 prefer-online = false
330 prefix = "{CWD}/global"
331 preid = ""
332 production = null
333 progress = {PROGRESS}
334 provenance = false
335 provenance-file = null
336 proxy = null
337 read-only = false
338 rebuild-bundle = true
339 registry = "https://registry.npmjs.org/"
340 replace-registry-host = "npmjs"
341 save = true
342 save-bundle = false
343 save-dev = false
344 save-exact = false
345 save-optional = false
346 save-peer = false
347 save-prefix = "^"
348 save-prod = false
349 sbom-format = null
350 sbom-type = "library"
351 scope = ""
352 scopes = null
353 script-shell = null
354 searchexclude = ""
355 searchlimit = 20
356 searchopts = ""
357 searchstaleness = 900
358 shell = "{SHELL}"
359 shrinkwrap = true
360 sign-git-commit = false
361 sign-git-tag = false
362 strict-allow-scripts = false
363 strict-peer-deps = false
364 strict-ssl = true
365 tag = "latest"
366 tag-version-prefix = "v"
367 timing = false
368 token-description = null
369 umask = 0
370 unicode = false
371 update-notifier = true
372 usage = false
373 user-agent = "npm/{npm-version} node/{node-version} {platform} {arch} workspaces/{workspaces} {ci}"
374 userconfig = "{CWD}/home/.npmrc"
375 version = false
376 versions = false
377 viewer = "{VIEWER}"
378 which = null
379 workspace = []
380 workspaces = null
381 workspaces-update = true
382 yes = null
383
384 ; "global" config from {CWD}/global/etc/npmrc
385
386 globalloaded = "yes"
387
388 ; "user" config from {CWD}/home/.npmrc
389
390 userloaded = "yes"
391
392 ; "project" config from {CWD}/prefix/.npmrc
393
394 projectloaded = "yes"
395
396 ; "cli" config from command line options
397
398 cache = "{CACHE}"
399 color = {COLOR}
400 long = true
401 `
402
403 exports[`test/lib/commands/config.js TAP config list > output matches snapshot 1`] = `
404 ; "global" config from {CWD}/global/etc/npmrc
405
406 globalloaded = "yes"
407
408 ; "user" config from {CWD}/home/.npmrc
409
410 _auth = (protected)
411 //nerfdart:_auth = (protected)
412 //nerfdart:auth = (protected)
413 auth = (protected)
414 userloaded = "yes"
415
416 ; "project" config from {CWD}/prefix/.npmrc
417
418 projectloaded = "yes"
419
420 ; "cli" config from command line options
421
422 cache = "{CACHE}"
423 color = {COLOR}
424
425 ; node bin location = {NODE-BIN-LOCATION}
426 ; node version = {NODE-VERSION}
427 ; npm local prefix = {CWD}/prefix
428 ; npm version = {NPM-VERSION}
429 ; cwd = {CWD}/prefix
430 ; HOME = {CWD}/home
431 ; Run \`npm config ls -l\` to show all defaults.
432 `
433
434 exports[`test/lib/commands/config.js TAP config list with publishConfig global > output matches snapshot 1`] = `
435 ; "cli" config from command line options
436
437 cache = "{CACHE}"
438 color = {COLOR}
439 global = true
440
441 ; node bin location = {NODE-BIN-LOCATION}
442 ; node version = {NODE-VERSION}
443 ; npm local prefix = {CWD}/prefix
444 ; npm version = {NPM-VERSION}
445 ; cwd = {CWD}/prefix
446 ; HOME = {CWD}/home
447 ; Run \`npm config ls -l\` to show all defaults.
448 `
449
450 exports[`test/lib/commands/config.js TAP config list with publishConfig local > output matches snapshot 1`] = `
451 ; "cli" config from command line options
452
453 cache = "{CACHE}"
454 color = {COLOR}
455
456 ; node bin location = {NODE-BIN-LOCATION}
457 ; node version = {NODE-VERSION}
458 ; npm local prefix = {CWD}/prefix
459 ; npm version = {NPM-VERSION}
460 ; cwd = {CWD}/prefix
461 ; HOME = {CWD}/home
462 ; Run \`npm config ls -l\` to show all defaults.
463
464 ; "publishConfig" from {CWD}/prefix/package.json
465 ; This set of config values will be used at publish-time.
466
467 //some.registry:_authToken = (protected)
468 other = "not defined"
469 registry = "https://some.registry"
470 `
471
472 exports[`test/lib/commands/config.js TAP config list with publishConfig local > warns about unknown config 1`] = `
473 Array [
474 "Unknown publishConfig config /"other/". This will stop working in the next major version of npm. See \`npm help npmrc\` for supported config options.",
475 ]
476 `