Skip to content

Commit

Permalink
chore: add default value for TEST_SNYK_API
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterSchafer committed Jul 12, 2024
1 parent 6f1bce3 commit 464b538
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ module.exports = async function() {
token = '***';
}

if (!process.env.TEST_SNYK_API) {
process.env.TEST_SNYK_API = 'https://api.snyk.io';
}

const { stdout: version } = await runSnykCLI('version');
const SNYK_VERSION = version.trim();

Expand All @@ -35,6 +39,8 @@ module.exports = async function() {
process.env.TEST_SNYK_ORG_SLUGNAME +
'\n Token [TEST_SNYK_TOKEN] ................ ' +
token +
'\n API [TEST_SNYK_API] .................. ' +
process.env.TEST_SNYK_API +
'\n------------------------------------------------------------------------------------------------------',
);

Expand Down

0 comments on commit 464b538

Please sign in to comment.