@@ -98,14 +98,12 @@ export function createProject(session: TestSession, name: string): string {
9898}
9999
100100/**
101- * Run `sf project generate` then `sf webapp generate --name <webAppName>` inside
101+ * Run `sf project generate` then `sf ui-bundle generate --name <webAppName>` inside
102102 * the project. Returns the absolute path to the generated project root.
103- *
104- * Note: `sf webapp generate` is provided by plugin-templates, not this plugin.
105103 */
106104export function createProjectWithWebapp ( session : TestSession , projectName : string , webAppName : string ) : string {
107105 const projectDir = createProject ( session , projectName ) ;
108- execSync ( `sf webapp generate --name ${ webAppName } ` , {
106+ execSync ( `sf ui-bundle generate --name ${ webAppName } ` , {
109107 cwd : projectDir ,
110108 stdio : 'pipe' ,
111109 env : { ...process . env , HOME : REAL_HOME , USERPROFILE : REAL_HOME } ,
@@ -124,7 +122,7 @@ export function createProjectWithMultipleWebapps(
124122) : string {
125123 const projectDir = createProject ( session , projectName ) ;
126124 for ( const name of webAppNames ) {
127- execSync ( `sf webapp generate --name ${ name } ` , {
125+ execSync ( `sf ui-bundle generate --name ${ name } ` , {
128126 cwd : projectDir ,
129127 stdio : 'pipe' ,
130128 env : { ...process . env , HOME : REAL_HOME , USERPROFILE : REAL_HOME } ,
0 commit comments