File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 4949 cache : ' npm'
5050 - name : ' Install image builder'
5151 run : ' dnf install -y image-builder'
52- - name : Install dependencies
53- run : npm ci
52+ # - name: Install dependencies
53+ # run: npm ci
5454 - name : Run unit tests with cockpit
5555 run : npm run test:cockpit
Original file line number Diff line number Diff line change @@ -85,8 +85,13 @@ export const cockpitApi = contentSourcesApi.injectEndpoints({
8585 { } ,
8686 ) ;
8787
88- const output = ( res as string ) ?? '[]' ;
89- const items = JSON . parse ( output ) as ImageType [ ] ;
88+ // eslint-disable-next-line
89+ console . log ( 'Res' ) ;
90+ // eslint-disable-next-line
91+ console . log ( res || '[hello]' , distribution ) ;
92+
93+ const output = res || '[]' ;
94+ const items = JSON . parse ( output as string ) as ImageType [ ] ;
9095 const map : Record < string , Set < string > > = { } ;
9196
9297 for ( const item of items ) {
@@ -114,6 +119,10 @@ export const cockpitApi = contentSourcesApi.injectEndpoints({
114119 } ) ) ,
115120 } ;
116121 } catch ( error ) {
122+ // eslint-disable-next-line
123+ console . log ( 'Distro error' ) ;
124+ // eslint-disable-next-line
125+ console . log ( error ) ;
117126 return { error } ;
118127 }
119128 } ,
Original file line number Diff line number Diff line change @@ -9,3 +9,7 @@ vitest run -t 'Create Image Wizard renders component' \
99 src/test/Components/CreateImageWizard/CreateImageWizard.test.tsx
1010
1111vitest run src/test/Components/CreateImageWizard/steps/Hostname/Hostname.test.tsx
12+
13+ image-builder --version
14+ image-builder list --format json
15+ image-builder list
You can’t perform that action at this time.
0 commit comments