@@ -125,6 +125,7 @@ describe('th generate (UI template)', function () {
125125 expect ( fs . existsSync ( path . join ( uiDir , 'tests' , 'contract' , 'smoke.mjs' ) ) ) . to . equal ( true ) ;
126126 expect ( fs . existsSync ( path . join ( uiDir , 'tests' , 'contract' , 'integration.mjs' ) ) ) . to . equal ( true ) ;
127127 expect ( fs . existsSync ( path . join ( uiDir , 'tests' , 'ui' , 'smoke.mjs' ) ) ) . to . equal ( true ) ;
128+ expect ( fs . existsSync ( path . join ( uiDir , '.github' , 'workflows' , 'generated-app-ci.yml' ) ) ) . to . equal ( true ) ;
128129
129130 const pkg = JSON . parse ( fs . readFileSync ( path . join ( uiDir , 'package.json' ) , 'utf-8' ) ) ;
130131 expect ( pkg ?. scripts ?. test ) . to . equal ( 'pnpm run test:contract && pnpm run test:ui' ) ;
@@ -138,5 +139,12 @@ describe('th generate (UI template)', function () {
138139
139140 const uiSmoke = runCmd ( 'node' , [ 'tests/ui/smoke.mjs' ] , uiDir ) ;
140141 expect ( uiSmoke . status , uiSmoke . stderr || uiSmoke . stdout ) . to . equal ( 0 ) ;
142+
143+ const workflow = fs . readFileSync ( path . join ( uiDir , '.github' , 'workflows' , 'generated-app-ci.yml' ) , 'utf-8' ) ;
144+ expect ( workflow ) . to . include ( 'pnpm run test:contract' ) ;
145+ expect ( workflow ) . to . include ( 'pnpm run test:ui' ) ;
146+ expect ( workflow ) . to . include ( 'TH_SKIP_CONTRACT_TESTS' ) ;
147+ expect ( workflow ) . to . include ( 'TH_SKIP_UI_TESTS' ) ;
148+ expect ( workflow ) . to . include ( 'TH_INSTALL_BROWSER_DEPS' ) ;
141149 } ) ;
142150} ) ;
0 commit comments