File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ snapshots:
100100
101101 const report = collectSbomRiskReport ( { repoRoot } ) ;
102102
103- expect ( report . summary ) . toMatchObject ( {
103+ expect ( report . summary ) . toEqual ( {
104104 buildRiskPackageCount : 1 ,
105105 importerCount : 1 ,
106106 lockfilePackageCount : 4 ,
@@ -109,10 +109,19 @@ snapshots:
109109 rootOwnershipRecordCount : 2 ,
110110 } ) ;
111111 expect ( report . ownershipGaps ) . toEqual ( [ "missing-owner" ] ) ;
112- expect ( report . topRootDependencyCones [ 0 ] ) . toMatchObject ( {
112+ expect ( report . topRootDependencyCones [ 0 ] ) . toEqual ( {
113+ class : "core-runtime" ,
113114 closureSize : 3 ,
115+ missingSnapshotKeys : [ ] ,
114116 name : "core-lib" ,
115117 owner : "core:test" ,
118+ resolved : "1.0.0" ,
119+ risk : [ "network" ] ,
120+ section : "dependencies" ,
121+ sourceCategory : "unreferenced" ,
122+ sourceFileCount : 0 ,
123+ sourceSections : [ ] ,
124+ specifier : "1.0.0" ,
116125 } ) ;
117126 expect ( collectSbomRiskCheckErrors ( report ) ) . toEqual ( [
118127 "root dependency 'missing-owner' is missing from scripts/lib/dependency-ownership.json" ,
You can’t perform that action at this time.
0 commit comments