Update docs for ownership change (#2)

* Add files to prepare for ownership change

* Fix tests

* Update repo name

* Update dependencies

* Attempt to fix permissions issues blocking test

* Update permissions

* Add environment variable

* Fix variable name

* Update test.yml

* Update test.yml
This commit is contained in:
Justin Hutchings
2023-04-07 16:21:17 -07:00
committed by GitHub
parent 786282e813
commit bcaa41e34f
16 changed files with 235 additions and 26 deletions
+6 -3
View File
@@ -2,16 +2,19 @@ import ComponentDetection from './componentDetection';
import fs from 'fs';
test('Downloads CLI', async () => {
ComponentDetection.downloadLatestRelease();
await ComponentDetection.downloadLatestRelease();
expect(fs.existsSync(ComponentDetection.componentDetectionPath));
});
test('Runs CLI', async () => {
await ComponentDetection.runComponentDetection('./test');
expect(fs.existsSync(ComponentDetection.outputPath));
await ComponentDetection.downloadLatestRelease();
await ComponentDetection.runComponentDetection('./test');
expect(fs.existsSync(ComponentDetection.outputPath));
});
test('Parses CLI output', async () => {
await ComponentDetection.downloadLatestRelease();
await ComponentDetection.runComponentDetection('./test');
var manifests = await ComponentDetection.getManifestsFromResults();
expect(manifests?.length == 2);
});