Skip to content

Commit

Permalink
tests: prep test runs
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck committed May 24, 2024
1 parent 48d1c43 commit ea9c10a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"version": "0.0.0",
"description": "demo: alternative-package-registry -- showcase how lternative package registrier affect the result",
"license": "Apache-2.0",
"dependencies": {
},
"scripts": {
"SBOM": "YARN_PLUGINS=$PROJECT_CWD/../../../../bundles/@yarnpkg/plugin-cyclonedx.js yarn cyclonedx"
}
Expand Down
12 changes: 12 additions & 0 deletions tests/_data/testbeds/alternative-package-registry/yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions tests/integration/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const {

const testSetups = [
/* region functional tests */
'alternative-package-registry',
'bundled-dependencies',
'concurrent-versions',
'dev-dependencies',
Expand Down Expand Up @@ -167,10 +168,11 @@ suite('integration', () => {
})

suite('short PURLs', () => {
const testSetup = 'juice-shop'
test(`${testSetup}`,
() => runTest('short-PURLs', testSetup, format, ['--short-PURLs'])
).timeout(longTestTimeout)
['alternative-package-registry', 'juice-shop'].forEach(testSetup => {
test(`${testSetup}`,
() => runTest('short-PURLs', testSetup, format, ['--short-PURLs'])
).timeout(longTestTimeout)
})
})

test('dogfooding', async () => {
Expand Down
1 change: 1 addition & 0 deletions tests/integration/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const testbedsPath = path.join(testRootPath, '_data', 'testbeds');
const REQUIRES_INSTALL = [
/* region functional tests */
// !! none of the following ACTUALLY REQUIRES an installation - lock files are enough
'alternative-package-registry',
'bundled-dependencies',
'concurrent-versions',
'dev-dependencies',
Expand Down

0 comments on commit ea9c10a

Please sign in to comment.