Skip to content

Commit

Permalink
fix: preInitSetup.test
Browse files Browse the repository at this point in the history
  • Loading branch information
0.618 committed Aug 8, 2024
1 parent 1d671cf commit 6fc0979
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,16 @@ describe('gen2Recommendation', () => {
'For new projects, we recommend starting with AWS Amplify Gen 2, our new code-first developer experience. Get started at https://docs.amplify.aws/react/start/quickstart/',
);
expect(confirmContinueMock).toHaveBeenCalledWith('Do you want to continue with Amplify Gen 1?');
expect(pickMock).toHaveBeenCalledWith('Why would you like to use Amplify Gen 1?', expect.any(Array));
expect(pickMock).toHaveBeenCalledWith(
'Why would you like to use Amplify Gen 1?',
[
'I am a current Gen 1 user',
'Gen 2 is missing features I need from Gen 1',
'I find the Gen 1 CLI easier to use',
'Prefer not to answer',
],
{ initial: 3 },
);
expect(context.exeInfo.projectConfig).toEqual({ whyContinueWithGen1: 'I am a current Gen 1 user' });
});

Expand Down

0 comments on commit 6fc0979

Please sign in to comment.