Skip to content

Commit

Permalink
test: fix swift app type
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilch committed Nov 21, 2023
1 parent 76168ad commit a6557db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function initAndroidProjectWithProfile(cwd: string, settings: Object): Pr
}

export function initIosProjectWithProfile(cwd: string, settings: Object): Promise<void> {
const s = { ...defaultSettings, ...settings };
const s = { ...defaultSettings, appType: 3, ...settings };

addCITags(cwd);

Expand All @@ -152,7 +152,7 @@ export function initIosProjectWithProfile(cwd: string, settings: Object): Promis
.wait('Choose your default editor:')
.sendLine(s.editor)
.wait("Choose the type of app that you're building")
.sendKeyDown(3)
.sendKeyDown(s.appType)
.sendCarriageReturn()
.wait('Select the authentication method you want to use:')
.sendCarriageReturn()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('build app - Swift', () => {
const config = DEFAULT_IOS_CONFIG;

beforeAll(async () => {
await initIosProjectWithProfile(projectRoot, { ...config });
await initIosProjectWithProfile(projectRoot, { ...config, appType: 0 });
await addApiWithDefaultSchemaAndConflictDetection(projectRoot);
apiName = readdirSync(path.join(projectRoot, 'amplify', 'backend', 'api'))[0];
apiGqlCompile(projectRoot);
Expand Down

0 comments on commit a6557db

Please sign in to comment.