Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2020-10-02 20:48:31 +0300
committerisaacs <i@izs.me>2020-10-02 21:37:30 +0300
commitc20e2f0c7766a04f999fdc64faad29277904c2d3 (patch)
treeca388245fb451428636900b46f1a601b0e2956a2 /tap-snapshots
parent384f5ec47091eed66c2a47f2c98df3ba7506ec9f (diff)
Support --omit options in npm outdated
PR-URL: https://github.com/npm/cli/pull/1892 Credit: @isaacs Close: #1892 Reviewed-by: @nlf
Diffstat (limited to 'tap-snapshots')
-rw-r--r--tap-snapshots/test-lib-outdated.js-TAP.test.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/tap-snapshots/test-lib-outdated.js-TAP.test.js b/tap-snapshots/test-lib-outdated.js-TAP.test.js
index e2f580b96..7f245b09e 100644
--- a/tap-snapshots/test-lib-outdated.js-TAP.test.js
+++ b/tap-snapshots/test-lib-outdated.js-TAP.test.js
@@ -91,6 +91,31 @@ gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma outdated-should-display-ou
theta MISSING 1.0.1 1.0.1 - outdated-should-display-outdated-deps dependencies
`
+exports[`test/lib/outdated.js TAP should display outdated deps outdated --omit=dev --omit=peer > must match snapshot 1`] = `
+
+Package Current Wanted Latest Location Depended by
+alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha outdated-should-display-outdated-deps
+gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma outdated-should-display-outdated-deps
+theta MISSING 1.0.1 1.0.1 - outdated-should-display-outdated-deps
+`
+
+exports[`test/lib/outdated.js TAP should display outdated deps outdated --omit=dev > must match snapshot 1`] = `
+
+Package Current Wanted Latest Location Depended by
+alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha outdated-should-display-outdated-deps
+beta 1.0.0 1.0.1 1.0.1 node_modules/beta outdated-should-display-outdated-deps
+gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma outdated-should-display-outdated-deps
+theta MISSING 1.0.1 1.0.1 - outdated-should-display-outdated-deps
+`
+
+exports[`test/lib/outdated.js TAP should display outdated deps outdated --omit=prod > must match snapshot 1`] = `
+
+Package Current Wanted Latest Location Depended by
+alpha 1.0.0 1.0.1 1.0.1 node_modules/alpha outdated-should-display-outdated-deps
+beta 1.0.0 1.0.1 1.0.1 node_modules/beta outdated-should-display-outdated-deps
+gamma 1.0.1 1.0.1 2.0.0 node_modules/gamma outdated-should-display-outdated-deps
+`
+
exports[`test/lib/outdated.js TAP should display outdated deps outdated --parseable --long > must match snapshot 1`] = `
{CWD}/test/lib/outdated-should-display-outdated-deps/node_modules/alpha:alpha@1.0.1:alpha@1.0.0:alpha@1.0.1:outdated-should-display-outdated-deps:dependencies: