Skip to content

Commit

Permalink
fix: bumps dep-graph to v1.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gablaxian committed Mar 6, 2020
1 parent d174fcb commit 0617176
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"dependencies": {
"@snyk/cli-interface": "2.3.2",
"@snyk/configstore": "^3.2.0-rc1",
"@snyk/dep-graph": "1.13.1",
"@snyk/dep-graph": "1.16.1",
"@snyk/gemfile": "1.2.0",
"@snyk/snyk-cocoapods-plugin": "2.0.1",
"@snyk/update-notifier": "^2.5.1-rc2",
Expand Down
14 changes: 10 additions & 4 deletions test/acceptance/cli-monitor/cli-monitor.acceptance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,17 @@ test('`monitor npm-package-pruneable --prune-repeated-subdependencies`', async (
t.ok(req.body.meta.prePruneDepCount, 'sends meta.prePruneDepCount');
const depGraphJSON = req.body.depGraphJSON;
t.ok(depGraphJSON);
const packageC = depGraphJSON.graph.nodes.find(
(pkg) => pkg.pkgId === 'c@1.0.0',

const packageC1 = depGraphJSON.graph.nodes.find(
(pkg) => pkg.nodeId === 'c@1.0.0|1',
);
const packageC2 = depGraphJSON.graph.nodes.find(
(pkg) => pkg.nodeId === 'c@1.0.0|2',
);
t.ok(packageC.info.labels.pruned, 'a.d.c is pruned');
t.notOk(packageC.dependencies, 'a.d.c has no dependencies');
t.notOk(packageC1.info.labels.pruned, 'a.d.c first instance is not pruned');
t.ok(packageC2.info.labels.pruned, 'a.d.c second instance is pruned');
t.ok(packageC1.deps.length, 'a.d.c has dependencies');
t.notOk(packageC2.deps.length, 'a.d.c has no dependencies');
});

test('`monitor npm-package-pruneable --prune-repeated-subdependencies --experimental-dep-graph`', async (t) => {
Expand Down

0 comments on commit 0617176

Please sign in to comment.