@@ -94,10 +94,15 @@ describe("windows scanning", () => {
9494 const imageNameAndTag =
9595 "python@sha256:1f92d35b567363820d0f2f37c7ccf2c1543e2d852cea01edb027039e6aef25e6" ;
9696
97+ console . log ( "=== DEBUG: Starting scan ===" ) ;
98+ console . log ( "Image:" , imageNameAndTag ) ;
99+
97100 const pluginResult = await plugin . scan ( {
98101 path : imageNameAndTag ,
99102 "exclude-app-vulns" : true ,
100103 } ) ;
104+
105+ console . log ( "Scan completed successfully" ) ;
101106
102107 const depGraph : DepGraph = pluginResult . scanResults [ 0 ] . facts . find (
103108 ( fact ) => fact . type === "depGraph" ,
@@ -108,6 +113,18 @@ describe("windows scanning", () => {
108113 const imageLayers : string [ ] = pluginResult . scanResults [ 0 ] . facts . find (
109114 ( fact ) => fact . type === "imageLayers" ,
110115 ) ! . data ;
116+
117+ // Debug output
118+ console . log ( "=== DEBUG: imageLayers ===" ) ;
119+ console . log ( "Total layers:" , imageLayers . length ) ;
120+ imageLayers . forEach ( ( layer , index ) => {
121+ console . log ( `Layer ${ index } : "${ layer } "` ) ;
122+ console . log ( ` - basename: "${ path . basename ( layer ) } "` ) ;
123+ console . log ( ` - endsWith("layer.tar"): ${ layer . endsWith ( "layer.tar" ) } ` ) ;
124+ console . log ( ` - endsWith("\\\\layer.tar"): ${ layer . endsWith ( "\\layer.tar" ) } ` ) ;
125+ } ) ;
126+ console . log ( "=========================" ) ;
127+
111128 expect ( imageLayers . length ) . toBeGreaterThan ( 0 ) ;
112129 expect (
113130 imageLayers . every ( ( layer ) => path . basename ( layer ) === "layer.tar" ) ,
0 commit comments