Skip to content

Commit

Permalink
test(manager/npm): add test coverage for 'unknown-volta'
Browse files Browse the repository at this point in the history
  • Loading branch information
oscard0m committed Jun 30, 2023
1 parent 9f900cb commit 679b6c8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Expand Up @@ -460,6 +460,13 @@ exports[`modules/manager/npm/extract/index .extractPackageFile() extracts volta
"depType": "volta",
"prettyDepType": "volta",
},
{
"currentValue": "1.0.0",
"depName": "invalid",
"depType": "volta",
"prettyDepType": "volta",
"skipReason": "unknown-volta",
},
],
"extractedConstraints": {
"node": "8.9.2",
Expand Down
8 changes: 8 additions & 0 deletions lib/modules/manager/npm/extract/index.spec.ts
Expand Up @@ -490,6 +490,7 @@ describe('modules/manager/npm/extract/index', () => {
yarn: '1.12.3',
npm: '5.9.0',
pnpm: '6.11.2',
invalid: '1.0.0',
},
};
const pJsonStr = JSON.stringify(pJson);
Expand All @@ -507,6 +508,13 @@ describe('modules/manager/npm/extract/index', () => {
depName: 'pnpm',
prettyDepType: 'volta',
},
{
depType: 'volta',
currentValue: '1.0.0',
depName: 'invalid',
prettyDepType: 'volta',
skipReason: 'unknown-volta',
},
],
});
});
Expand Down

0 comments on commit 679b6c8

Please sign in to comment.