From fb9d394e8edbf2162569c6a326e9894c2efb100a Mon Sep 17 00:00:00 2001 From: Admon Sasson Date: Tue, 14 Mar 2023 18:18:31 +0200 Subject: [PATCH] fix: fix tests since snyk-poetry-lockfile-parser@1.2.0 we're adding a "scope:dev/prod" label to every node --- package.json | 2 +- test/system/inspect.spec.ts | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 7535c5d4..b59561a6 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "@snyk/cli-interface": "^2.11.2", "@snyk/dep-graph": "^1.28.1", "shescape": "1.6.1", - "snyk-poetry-lockfile-parser": "^1.1.7", + "snyk-poetry-lockfile-parser": "^1.2.0", "tmp": "0.2.1" }, "devDependencies": { diff --git a/test/system/inspect.spec.ts b/test/system/inspect.spec.ts index db0a9e8d..9e39fe31 100644 --- a/test/system/inspect.spec.ts +++ b/test/system/inspect.spec.ts @@ -41,9 +41,13 @@ describe('inspect', () => { { name: 'poetry-fixtures-project', version: '0.1.0' } ); const expected = builder - .addPkgNode({ name: 'jinja2', version: '2.11.2' }, 'jinja2') + .addPkgNode({ name: 'jinja2', version: '2.11.2' }, 'jinja2', { + labels: { scope: 'prod' }, + }) .connectDep(builder.rootNodeId, 'jinja2') - .addPkgNode({ name: 'markupsafe', version: '1.1.1' }, 'markupsafe') + .addPkgNode({ name: 'markupsafe', version: '1.1.1' }, 'markupsafe', { + labels: { scope: 'prod' }, + }) .connectDep('jinja2', 'markupsafe') .build();