-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: add non-interactive init/pull in git-cloned project #11365
Conversation
/* eslint-disable func-style */ | ||
/* eslint-disable @typescript-eslint/explicit-function-return-type */ | ||
/* eslint-disable jsdoc/require-jsdoc */ | ||
/* eslint-disable import/no-cycle */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file is minimal lint fixes after moving the isCI
function to a different file
export function amplifyOverrideRoot(cwd: string, settings: { testingWithLatestCodebase?: boolean }) { | ||
return new Promise((resolve, reject) => { | ||
const args = ['override', 'project']; | ||
export const amplifyOverrideRoot = (cwd: string, settings: { testingWithLatestCodebase?: boolean }): Promise<void> => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file is just lint fixes
packages/amplify-e2e-tests/src/__tests__/git-clone-attach.test.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: John Hockett <[email protected]>
/** | ||
* Shape of awscloudformation object within `--profile` payload for init/pull | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we have a similar type in prod code base?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't have an exact corollary but we have some types here that define the credential config (plus other values that it can have)
Description of changes
Adds 2 new E2E tests for exercising non-interactive pull and init in git-cloned projects
The tests simulate git cloning by using
git clean -fdx
which removes any files not tracked by git.Issue #, if available
Description of how you validated changes
Ran new E2E tests locally and running entire suite here: https://app.circleci.com/pipelines/github/aws-amplify/amplify-cli/12411/workflows/b687e49a-4bcd-457a-bff4-b6c73ffabd15
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.