diff options
author | Ruy Adorno <ruyadorno@hotmail.com> | 2021-05-13 01:21:14 +0300 |
---|---|---|
committer | Ruy Adorno <ruyadorno@hotmail.com> | 2021-05-13 22:29:11 +0300 |
commit | 370b36a36ca226840761e4214cbccaf2a1a90e3c (patch) | |
tree | 04529949473c9da0f7eb98e9b3a46a18f4562d9d /tap-snapshots/test/lib/fund.js.test.cjs | |
parent | 076420c149d097056f687e44e21744b743b86e4e (diff) |
feat: add fund workspaces
Add workspaces support to `npm fund`
- Add lib/workspaces/arborist-cmd.js base class
- Add ability to filter fund results to a specific set of workspaces
- Added tests and docs
Fixes: https://github.com/npm/statusboard/issues/301
PR-URL: https://github.com/npm/cli/pull/3241
Credit: @ruyadorno
Close: #3241
Reviewed-by: @isaacs
Diffstat (limited to 'tap-snapshots/test/lib/fund.js.test.cjs')
-rw-r--r-- | tap-snapshots/test/lib/fund.js.test.cjs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tap-snapshots/test/lib/fund.js.test.cjs b/tap-snapshots/test/lib/fund.js.test.cjs index 7ad86ebee..c078beb7d 100644 --- a/tap-snapshots/test/lib/fund.js.test.cjs +++ b/tap-snapshots/test/lib/fund.js.test.cjs @@ -92,3 +92,23 @@ test-multiple-funding-sources@1.0.0 ` + +exports[`test/lib/fund.js TAP workspaces filter funding info by a specific workspace > should display only filtered workspace name and its deps 1`] = ` +workspaces-support@1.0.0 +\`-- https://example.com/a + | \`-- a@1.0.0 + \`-- http://example.com/c + \`-- c@1.0.0 + + +` + +exports[`test/lib/fund.js TAP workspaces filter funding info by a specific workspace > should display only filtered workspace path and its deps 1`] = ` +workspaces-support@1.0.0 +\`-- https://example.com/a + | \`-- a@1.0.0 + \`-- http://example.com/c + \`-- c@1.0.0 + + +` |