Skip to content

Commit ed85b01

Browse files
committed
chore: tests for config warnings/changes
1 parent 5e35fde commit ed85b01

File tree

4 files changed

+63
-43
lines changed

4 files changed

+63
-43
lines changed

smoke-tests/tap-snapshots/test/index.js.test.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ npm error [--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer
6161
npm error [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
6262
npm error [--no-bin-links] [--no-fund] [--dry-run]
6363
npm error [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
64-
npm error [-ws|--workspaces] [--include-workspace-root] [--install-links]
64+
npm error [--workspaces] [--include-workspace-root] [--install-links]
6565
npm error
6666
npm error aliases: clean-install, ic, install-clean, isntall-clean
6767
npm error

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ verbose stack Error: The developer of this package has specified the following t
135135
verbose stack Invalid engine "runtime"
136136
verbose stack Invalid name "nondescript" does not match "node" for "runtime"
137137
verbose stack at Install.checkDevEngines ({CWD}/lib/base-cmd.js:181:27)
138-
verbose stack at MockNpm.#exec ({CWD}/lib/npm.js:251:7)
139-
verbose stack at MockNpm.exec ({CWD}/lib/npm.js:207:9)
138+
verbose stack at MockNpm.#exec ({CWD}/lib/npm.js:252:7)
139+
verbose stack at MockNpm.exec ({CWD}/lib/npm.js:208:9)
140140
error code EBADDEVENGINES
141141
error EBADDEVENGINES The developer of this package has specified the following through devEngines
142142
error EBADDEVENGINES Invalid engine "runtime"
@@ -200,8 +200,8 @@ verbose stack Error: The developer of this package has specified the following t
200200
verbose stack Invalid engine "runtime"
201201
verbose stack Invalid name "nondescript" does not match "node" for "runtime"
202202
verbose stack at Install.checkDevEngines ({CWD}/lib/base-cmd.js:181:27)
203-
verbose stack at MockNpm.#exec ({CWD}/lib/npm.js:251:7)
204-
verbose stack at MockNpm.exec ({CWD}/lib/npm.js:207:9)
203+
verbose stack at MockNpm.#exec ({CWD}/lib/npm.js:252:7)
204+
verbose stack at MockNpm.exec ({CWD}/lib/npm.js:208:9)
205205
error code EBADDEVENGINES
206206
error EBADDEVENGINES The developer of this package has specified the following through devEngines
207207
error EBADDEVENGINES Invalid engine "runtime"
@@ -226,8 +226,8 @@ verbose stack Error: The developer of this package has specified the following t
226226
verbose stack Invalid engine "runtime"
227227
verbose stack Invalid name "nondescript" does not match "node" for "runtime"
228228
verbose stack at Install.checkDevEngines ({CWD}/lib/base-cmd.js:181:27)
229-
verbose stack at MockNpm.#exec ({CWD}/lib/npm.js:251:7)
230-
verbose stack at MockNpm.exec ({CWD}/lib/npm.js:207:9)
229+
verbose stack at MockNpm.#exec ({CWD}/lib/npm.js:252:7)
230+
verbose stack at MockNpm.exec ({CWD}/lib/npm.js:208:9)
231231
error code EBADDEVENGINES
232232
error EBADDEVENGINES The developer of this package has specified the following through devEngines
233233
error EBADDEVENGINES Invalid engine "runtime"

tap-snapshots/test/lib/docs.js.test.cjs

Lines changed: 31 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,7 +2547,6 @@ exports[`test/lib/docs.js TAP shorthands > docs 1`] = `
25472547
* \`--help\`: \`--usage\`
25482548
* \`-v\`: \`--version\`
25492549
* \`-w\`: \`--workspace\`
2550-
* \`--ws\`: \`--workspaces\`
25512550
* \`-y\`: \`--yes\`
25522551
`
25532552

@@ -2624,7 +2623,7 @@ Options:
26242623
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
26252624
[--foreground-scripts] [--ignore-scripts]
26262625
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
2627-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
2626+
[--workspaces] [--include-workspace-root] [--install-links]
26282627
26292628
Run "npm help audit" for more info
26302629
@@ -2657,7 +2656,7 @@ npm bugs [<pkgname> [<pkgname> ...]]
26572656
Options:
26582657
[--no-browser|--browser <browser>] [--registry <registry>]
26592658
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
2660-
[-ws|--workspaces] [--include-workspace-root]
2659+
[--workspaces] [--include-workspace-root]
26612660
26622661
alias: issues
26632662
@@ -2715,7 +2714,7 @@ Options:
27152714
[--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
27162715
[--no-bin-links] [--no-fund] [--dry-run]
27172716
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
2718-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
2717+
[--workspaces] [--include-workspace-root] [--install-links]
27192718
27202719
aliases: clean-install, ic, install-clean, isntall-clean
27212720
@@ -2814,7 +2813,7 @@ Options:
28142813
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
28152814
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
28162815
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
2817-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
2816+
[--workspaces] [--include-workspace-root] [--install-links]
28182817
28192818
alias: ddp
28202819
@@ -2878,7 +2877,7 @@ Options:
28782877
[--diff-src-prefix <path>] [--diff-dst-prefix <path>] [--diff-text] [-g|--global]
28792878
[--tag <tag>]
28802879
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
2881-
[-ws|--workspaces] [--include-workspace-root]
2880+
[--workspaces] [--include-workspace-root]
28822881
28832882
Run "npm help diff" for more info
28842883
@@ -2911,7 +2910,7 @@ npm dist-tag ls [<package-spec>]
29112910
29122911
Options:
29132912
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
2914-
[-ws|--workspaces] [--include-workspace-root]
2913+
[--workspaces] [--include-workspace-root]
29152914
29162915
alias: dist-tags
29172916
@@ -2939,7 +2938,7 @@ npm docs [<pkgname> [<pkgname> ...]]
29392938
Options:
29402939
[--no-browser|--browser <browser>] [--registry <registry>]
29412940
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
2942-
[-ws|--workspaces] [--include-workspace-root]
2941+
[--workspaces] [--include-workspace-root]
29432942
29442943
alias: home
29452944
@@ -3010,7 +3009,7 @@ npm exec --package=foo -c '<cmd> [args...]'
30103009
Options:
30113010
[--package <package-spec> [--package <package-spec> ...]] [-c|--call <call>]
30123011
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3013-
[-ws|--workspaces] [--include-workspace-root]
3012+
[--workspaces] [--include-workspace-root]
30143013
30153014
alias: x
30163015
@@ -3088,7 +3087,7 @@ Options:
30883087
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
30893088
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund]
30903089
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3091-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
3090+
[--workspaces] [--include-workspace-root] [--install-links]
30923091
30933092
Run "npm help find-dupes" for more info
30943093
@@ -3213,7 +3212,7 @@ Options:
32133212
[--init-module <module>] [--init-version <version>] [-y|--yes] [-f|--force]
32143213
[--scope <@scope>]
32153214
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3216-
[-ws|--workspaces] [--no-workspaces-update] [--include-workspace-root]
3215+
[--workspaces] [--no-workspaces-update] [--include-workspace-root]
32173216
32183217
aliases: create, innit
32193218
@@ -3256,7 +3255,7 @@ Options:
32563255
[--foreground-scripts] [--ignore-scripts] [--no-audit] [--no-bin-links]
32573256
[--no-fund] [--dry-run] [--cpu <cpu>] [--os <os>] [--libc <libc>]
32583257
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3259-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
3258+
[--workspaces] [--include-workspace-root] [--install-links]
32603259
32613260
aliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall
32623261
@@ -3308,7 +3307,7 @@ Options:
33083307
[--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
33093308
[--no-bin-links] [--no-fund] [--dry-run]
33103309
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3311-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
3310+
[--workspaces] [--include-workspace-root] [--install-links]
33123311
33133312
aliases: cit, clean-install-test, sit
33143313
@@ -3354,7 +3353,7 @@ Options:
33543353
[--foreground-scripts] [--ignore-scripts] [--no-audit] [--no-bin-links]
33553354
[--no-fund] [--dry-run] [--cpu <cpu>] [--os <os>] [--libc <libc>]
33563355
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3357-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
3356+
[--workspaces] [--include-workspace-root] [--install-links]
33583357
33593358
alias: it
33603359
@@ -3408,7 +3407,7 @@ Options:
34083407
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
34093408
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
34103409
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3411-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
3410+
[--workspaces] [--include-workspace-root] [--install-links]
34123411
34133412
alias: ln
34143413
@@ -3453,7 +3452,7 @@ Options:
34533452
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
34543453
[--link] [--package-lock-only] [--unicode]
34553454
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3456-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
3455+
[--workspaces] [--include-workspace-root] [--install-links]
34573456
34583457
alias: la
34593458
@@ -3537,7 +3536,7 @@ Options:
35373536
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
35383537
[--link] [--package-lock-only] [--unicode]
35393538
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3540-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
3539+
[--workspaces] [--include-workspace-root] [--install-links]
35413540
35423541
alias: list
35433542
@@ -3653,7 +3652,7 @@ npm owner ls <package-spec>
36533652
Options:
36543653
[--registry <registry>] [--otp <otp>]
36553654
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3656-
[-ws|--workspaces]
3655+
[--workspaces]
36573656
36583657
alias: author
36593658
@@ -3682,7 +3681,7 @@ npm pack <package-spec>
36823681
Options:
36833682
[--dry-run] [--json] [--pack-destination <pack-destination>]
36843683
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3685-
[-ws|--workspaces] [--include-workspace-root] [--ignore-scripts]
3684+
[--workspaces] [--include-workspace-root] [--ignore-scripts]
36863685
36873686
Run "npm help pack" for more info
36883687
@@ -3733,7 +3732,7 @@ npm pkg fix
37333732
Options:
37343733
[-f|--force] [--json]
37353734
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3736-
[-ws|--workspaces]
3735+
[--workspaces]
37373736
37383737
Run "npm help pkg" for more info
37393738
@@ -3812,7 +3811,7 @@ Options:
38123811
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
38133812
[--dry-run] [--json] [--foreground-scripts] [--ignore-scripts]
38143813
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3815-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
3814+
[--workspaces] [--include-workspace-root] [--install-links]
38163815
38173816
Run "npm help prune" for more info
38183817
@@ -3841,8 +3840,7 @@ npm publish <package-spec>
38413840
Options:
38423841
[--tag <tag>] [--access <restricted|public>] [--dry-run] [--otp <otp>]
38433842
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3844-
[-ws|--workspaces] [--include-workspace-root]
3845-
[--provenance|--provenance-file <file>]
3843+
[--workspaces] [--include-workspace-root] [--provenance|--provenance-file <file>]
38463844
38473845
Run "npm help publish" for more info
38483846
@@ -3870,7 +3868,7 @@ npm query <selector>
38703868
Options:
38713869
[-g|--global]
38723870
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3873-
[-ws|--workspaces] [--include-workspace-root] [--package-lock-only]
3871+
[--workspaces] [--include-workspace-root] [--package-lock-only]
38743872
[--expect-results|--expect-result-count <count>]
38753873
38763874
Run "npm help query" for more info
@@ -3897,7 +3895,7 @@ npm rebuild [<package-spec>] ...]
38973895
Options:
38983896
[-g|--global] [--no-bin-links] [--foreground-scripts] [--ignore-scripts]
38993897
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3900-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
3898+
[--workspaces] [--include-workspace-root] [--install-links]
39013899
39023900
alias: rb
39033901
@@ -3928,7 +3926,7 @@ npm repo [<pkgname> [<pkgname> ...]]
39283926
Options:
39293927
[--no-browser|--browser <browser>] [--registry <registry>]
39303928
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3931-
[-ws|--workspaces] [--include-workspace-root]
3929+
[--workspaces] [--include-workspace-root]
39323930
39333931
Run "npm help repo" for more info
39343932
@@ -3990,7 +3988,7 @@ npm run-script <command> [-- <args>]
39903988
39913989
Options:
39923990
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
3993-
[-ws|--workspaces] [--include-workspace-root] [--if-present] [--ignore-scripts]
3991+
[--workspaces] [--include-workspace-root] [--if-present] [--ignore-scripts]
39943992
[--foreground-scripts] [--script-shell <script-shell>]
39953993
39963994
aliases: run, rum, urn
@@ -4023,7 +4021,7 @@ Options:
40234021
[--package-lock-only] [--sbom-format <cyclonedx|spdx>]
40244022
[--sbom-type <library|application|framework>]
40254023
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
4026-
[-ws|--workspaces]
4024+
[--workspaces]
40274025
40284026
Run "npm help sbom" for more info
40294027
@@ -4308,7 +4306,7 @@ Options:
43084306
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
43094307
[-g|--global]
43104308
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
4311-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
4309+
[--workspaces] [--include-workspace-root] [--install-links]
43124310
43134311
aliases: unlink, remove, rm, r, un
43144312
@@ -4337,7 +4335,7 @@ npm unpublish [<package-spec>]
43374335
Options:
43384336
[--dry-run] [-f|--force]
43394337
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
4340-
[-ws|--workspaces]
4338+
[--workspaces]
43414339
43424340
Run "npm help unpublish" for more info
43434341
@@ -4388,7 +4386,7 @@ Options:
43884386
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
43894387
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
43904388
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
4391-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
4389+
[--workspaces] [--include-workspace-root] [--install-links]
43924390
43934391
aliases: up, upgrade, udpate
43944392
@@ -4431,7 +4429,7 @@ Options:
44314429
[--allow-same-version] [--no-commit-hooks] [--no-git-tag-version] [--json]
44324430
[--preid prerelease-id] [--sign-git-tag]
44334431
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
4434-
[-ws|--workspaces] [--no-workspaces-update] [--include-workspace-root]
4432+
[--workspaces] [--no-workspaces-update] [--include-workspace-root]
44354433
44364434
alias: verison
44374435
@@ -4463,7 +4461,7 @@ npm view [<package-spec>] [<field>[.subfield]...]
44634461
44644462
Options:
44654463
[--json] [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
4466-
[-ws|--workspaces] [--include-workspace-root]
4464+
[--workspaces] [--include-workspace-root]
44674465
44684466
aliases: info, show, v
44694467

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy