Skip to content

Commit

Permalink
change amplifyCli to execa
Browse files Browse the repository at this point in the history
  • Loading branch information
0618 committed Jan 10, 2024
1 parent b083c3c commit 9f85439
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions packages/integration-tests/src/e2e-flow/e2e_flow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ import {
DeleteStackCommand,
} from '@aws-sdk/client-cloudformation';
import { BackendIdentifierConversions } from '@aws-amplify/platform-core';
import {
ClientConfigFormat,
getClientConfigPath,
} from '@aws-amplify/client-config';
import { amplifyCli } from '../process-controller/process_controller.js';
import { getClientConfigPath } from '@aws-amplify/client-config';
import { TestBranch, amplifyAppPool } from '../amplify_app_pool.js';
import { testConcurrencyLevel } from '../test-e2e/test_concurrency.js';
import { e2eToolingClientConfig } from '../e2e_tooling_client_config.js';
Expand Down Expand Up @@ -359,19 +355,18 @@ void describe('amplify', { concurrency: concurrency }, () => {
}
);

await amplifyCli(
await execa(
packageManagerExecutable === 'npm' ? 'npx' : packageManagerExecutable,
[
'amplify',
'pipeline-deploy',
'--branch',
branchBackendIdentifier.name,
'--appId',
branchBackendIdentifier.namespace,
],
tempDir,
{
env: { CI: 'true' },
}
).run();
{ cwd: tempDir, stdio: 'inherit', env: { CI: 'true' } }
);

const clientConfigStats = await fsp.stat(
await getClientConfigPath(tempDir)
Expand Down

0 comments on commit 9f85439

Please sign in to comment.