Skip to content

Commit c9d1f40

Browse files
committed
remove sigint handling for cli in gen2 e2e test
1 parent 7b8ee57 commit c9d1f40

File tree

1 file changed

+1
-10
lines changed
  • packages/amplify-codegen-e2e-tests/src/gen2-codegen-tests-base

1 file changed

+1
-10
lines changed

packages/amplify-codegen-e2e-tests/src/gen2-codegen-tests-base/commands.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,10 @@ export const sandboxDeploy = async (cwd: string, props: Gen2DeployProps = {}): P
9292
};
9393

9494
// Run sandbox deployment
95-
96-
/**
97-
* For sandbox deployment, the nested ampx binary is retrieved instead of using npx
98-
* On windows, the Ctrl-C signal is not returned correctly from npx binary, whose code is 1 and will fail nexpect check
99-
* Therefore, the ampx binary is used for sandbox deployment instead of npx
100-
*/
101-
const ampxCli = getAmpxPath(cwd)
10295
await
103-
spawn(ampxCli, ['sandbox'], commandOptions)
96+
spawn(getNpxPath(), ['ampx', 'sandbox'], commandOptions)
10497
.wait('Watching for file changes...')
10598
.sendCtrlC()
106-
.wait('Would you like to delete all the resources in your sandbox environment')
107-
.sendLine('N')
10899
.runAsync();
109100
};
110101

0 commit comments

Comments
 (0)