@@ -231,6 +231,50 @@ describe('template generate project:', () => {
231231 assert . file ( [ path . join ( session . project . dir , 'analytics1' , 'eslint.config.js' ) ] ) ;
232232 assert . file ( [ path . join ( session . project . dir , 'analytics1' , 'eslint.config.js' ) ] ) ;
233233 } ) ;
234+
235+ it ( 'should create project with reactb2e template' , ( ) => {
236+ const projectName = 'react-b2e-test' ;
237+ const alphanumericName = 'reactb2etest' ;
238+ execCmd ( `template generate project --projectname ${ projectName } --template reactb2e` , {
239+ ensureExitCode : 0 ,
240+ } ) ;
241+ const projectDir = path . join ( session . project . dir , projectName ) ;
242+ assert . file ( [ path . join ( projectDir , 'sfdx-project.json' ) ] ) ;
243+ assert . fileContent ( path . join ( projectDir , 'sfdx-project.json' ) , 'sourceApiVersion' ) ;
244+ const webappMetaPath = path . join (
245+ projectDir ,
246+ 'force-app' ,
247+ 'main' ,
248+ 'default' ,
249+ 'webapplications' ,
250+ alphanumericName ,
251+ `${ alphanumericName } .webapplication-meta.xml`
252+ ) ;
253+ assert . file ( [ webappMetaPath ] ) ;
254+ assert . fileContent ( webappMetaPath , alphanumericName ) ;
255+ } ) ;
256+
257+ it ( 'should create project with reactb2x template' , ( ) => {
258+ const projectName = 'react-b2x-test' ;
259+ const alphanumericName = 'reactb2xtest' ;
260+ execCmd ( `template generate project --projectname ${ projectName } --template reactb2x` , {
261+ ensureExitCode : 0 ,
262+ } ) ;
263+ const projectDir = path . join ( session . project . dir , projectName ) ;
264+ assert . file ( [ path . join ( projectDir , 'sfdx-project.json' ) ] ) ;
265+ assert . fileContent ( path . join ( projectDir , 'sfdx-project.json' ) , 'sourceApiVersion' ) ;
266+ const webappMetaPath = path . join (
267+ projectDir ,
268+ 'force-app' ,
269+ 'main' ,
270+ 'default' ,
271+ 'webapplications' ,
272+ alphanumericName ,
273+ `${ alphanumericName } .webapplication-meta.xml`
274+ ) ;
275+ assert . file ( [ webappMetaPath ] ) ;
276+ assert . fileContent ( webappMetaPath , alphanumericName ) ;
277+ } ) ;
234278 } ) ;
235279
236280 describe ( 'project creation failures' , ( ) => {
0 commit comments