Skip to content

Commit 9f85439

Browse files
committed
change amplifyCli to execa
1 parent b083c3c commit 9f85439

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

packages/integration-tests/src/e2e-flow/e2e_flow.test.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ import {
1212
DeleteStackCommand,
1313
} from '@aws-sdk/client-cloudformation';
1414
import { BackendIdentifierConversions } from '@aws-amplify/platform-core';
15-
import {
16-
ClientConfigFormat,
17-
getClientConfigPath,
18-
} from '@aws-amplify/client-config';
19-
import { amplifyCli } from '../process-controller/process_controller.js';
15+
import { getClientConfigPath } from '@aws-amplify/client-config';
2016
import { TestBranch, amplifyAppPool } from '../amplify_app_pool.js';
2117
import { testConcurrencyLevel } from '../test-e2e/test_concurrency.js';
2218
import { e2eToolingClientConfig } from '../e2e_tooling_client_config.js';
@@ -359,19 +355,18 @@ void describe('amplify', { concurrency: concurrency }, () => {
359355
}
360356
);
361357

362-
await amplifyCli(
358+
await execa(
359+
packageManagerExecutable === 'npm' ? 'npx' : packageManagerExecutable,
363360
[
361+
'amplify',
364362
'pipeline-deploy',
365363
'--branch',
366364
branchBackendIdentifier.name,
367365
'--appId',
368366
branchBackendIdentifier.namespace,
369367
],
370-
tempDir,
371-
{
372-
env: { CI: 'true' },
373-
}
374-
).run();
368+
{ cwd: tempDir, stdio: 'inherit', env: { CI: 'true' } }
369+
);
375370

376371
const clientConfigStats = await fsp.stat(
377372
await getClientConfigPath(tempDir)

0 commit comments

Comments
 (0)