Skip to content

Commit

Permalink
chore: get existing e2e tests passing (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
alharris-at authored Sep 18, 2023
1 parent 7f35f3e commit a9d22c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export function generateModelIntrospection(cwd: string, settings: { outputDir?:
// CLI workflow to add codegen to non-Amplify JS project
export function addCodegenNonAmplifyJS(cwd: string): Promise<void> {
return new Promise((resolve, reject) => {
const cmdOptions = ['codegen', 'add', '--apiId', 'mockapiid'];
const cmdOptions = ['codegen', 'add'];
const chain = spawn(getCLIPath(), cmdOptions, { cwd, stripColors: true });
chain
.wait("Choose the type of app that you're building")
Expand Down
2 changes: 1 addition & 1 deletion packages/amplify-codegen/commands/codegen/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
const { options = {} } = context.parameters;
const keys = Object.keys(options);
// frontend and framework are undocumented, but are read when apiId is also supplied
const { apiId = null, region, yes, frontend, framework, ...rest } = options;
const { apiId = null, region, yes, frontend, framework, debug, ...rest } = options;
const extraOptions = Object.keys(rest);
if (extraOptions.length) {
const paramMsg = extraOptions.length > 1 ? 'Invalid parameters' : 'Invalid parameter';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const getAppSyncAPIInfo = require('./getAppSyncAPIInfo');
/* Get AppSync api info if api id and region are avialable.
* Otherwise return undefined.
*/
function getAppSyncAPIInfoFromProject(project, context) {
function getAppSyncAPIInfoFromProject(context, project) {
if (project.amplifyExtension.apiId && project.amplifyExtension.region) {
const {
amplifyExtension: { apiId, region },
Expand Down

0 comments on commit a9d22c3

Please sign in to comment.