Skip to content

Commit

Permalink
chore: rm unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronZyLee committed May 3, 2024
1 parent e5d33db commit be9c205
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .codebuild/e2e_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ batch:
debug-session: true
depend-on:
- publish_to_local_registry
- identifier: graphql_generator_gen2
- identifier: l_graphql_generator_gen2
buildspec: .codebuild/run_gen2_e2e_test.yml
env:
compute-type: BUILD_GENERAL1_LARGE
Expand Down
2 changes: 1 addition & 1 deletion .codebuild/e2e_workflow_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ batch:
debug-session: true
depend-on:
- publish_to_local_registry
- identifier: graphql_generator_gen2
- identifier: l_graphql_generator_gen2
buildspec: .codebuild/run_gen2_e2e_test.yml
env:
compute-type: BUILD_GENERAL1_LARGE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as path from 'path';
import { createNewProjectDir, deleteProjectDir } from "@aws-amplify/amplify-codegen-e2e-core";
import { ClientCodegenConfig, GraphqlCodegenConfig, IntrospectionCodegenConfig, ModelgenConfig, deleteSandbox, generateForms, generateGraphqlClientCode, generateOutputs, initGen2Project, sandboxDeploy, testGraphqlClientCodegen } from "../gen2-codegen-tests-base/";
import { GraphqlCodegenConfig, IntrospectionCodegenConfig, ModelgenConfig, deleteSandbox, generateForms, generateOutputs, initGen2Project, sandboxDeploy, testGraphqlClientCodegen } from "../gen2-codegen-tests-base/";

describe('GraphQL generator for Gen2 e2e tests', () => {
let projRoot: string;
Expand Down Expand Up @@ -55,9 +55,8 @@ describe('GraphQL generator for Gen2 e2e tests', () => {
return { ...config, statementTarget: st } as GraphqlCodegenConfig
});
}).flat();
console.log(graphqlCodegenConfigs)
graphqlCodegenConfigs.forEach(config => {
// TODO: fix the operation source not being parsed issue and enable the tests
// TODO: skip these tests as it will fail due to the duplicate graphql module. Will enable them once the issue is resolved
it.skip(`should not throw error when generating GraphQL client code in format ${config.format} with type ${config.typeTarget} and statement ${config.statementTarget}`, async () => {
await testGraphqlClientCodegen(projRoot, config);
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as path from 'path';
import { copySync, moveSync, readFileSync, writeFileSync } from 'fs-extra';
import { copySync, readFileSync, writeFileSync } from 'fs-extra';
import { getScriptRunnerPath, nspawn as spawn, getCommandPath } from '@aws-amplify/amplify-codegen-e2e-core';
import { spawnSync } from 'child_process';

Expand Down

0 comments on commit be9c205

Please sign in to comment.