describe cataloger capabilities via test observations (#4318)

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
Alex Goodman
2025-10-30 13:19:42 -04:00
committed by GitHub
parent 5db3a9bf55
commit 538430d65d
7 changed files with 854 additions and 85 deletions
@@ -284,7 +284,11 @@ func TestSearchYarnForLicenses(t *testing.T) {
}
tc.config.NPMBaseURL = url
adapter := newGenericYarnLockAdapter(tc.config)
pkgtest.TestFileParser(t, fixture, adapter.parseYarnLock, tc.expectedPackages, nil)
pkgtest.NewCatalogTester().
FromFile(t, fixture).
Expects(tc.expectedPackages, nil).
WithoutTestObserver(). // this is an online test, thus not the default configuration
TestParser(t, adapter.parseYarnLock)
})
}
}