Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .eslintrc.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 49 additions & 1 deletion packages/@aws-cdk-testing/cli-integ/.eslintrc.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ async function main() {
await usageDir.activateInCurrentProcess();

await shell(args.COMMAND ?? [], {
// eslint-disable-next-line no-restricted-syntax -- cli-integ deliberately runs commands through a shell to mimic real terminal invocation in integ tests.
shell: true,
show: 'always',
});
Expand Down
1 change: 1 addition & 0 deletions packages/@aws-cdk-testing/cli-integ/lib/npm.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line no-restricted-imports -- cli-integ is a test harness that spawns processes to exercise the CLI as a user would; it is test infrastructure, not shipped runtime.
import { spawnSync } from 'child_process';
import * as semver from 'semver';
import { shell } from './shell';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line no-restricted-imports -- cli-integ is a test harness that spawns processes to exercise the CLI as a user would; it is test infrastructure, not shipped runtime.
import * as child_process from 'child_process';
import * as fs from 'fs-extra';

Expand Down
2 changes: 2 additions & 0 deletions packages/@aws-cdk-testing/cli-integ/lib/process.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line no-restricted-imports -- cli-integ is a test harness that spawns processes to exercise the CLI as a user would; it is test infrastructure, not shipped runtime.
import * as child from 'child_process';
import type { Readable, Writable } from 'stream';
import * as pty from 'node-pty';
Expand Down Expand Up @@ -63,6 +64,7 @@ export class Process {
// (passing args with shell: true is deprecated because they are not escaped).
const fullCommand = [command, ...args].join(' ');
const process = child.spawn(fullCommand, [], {
// eslint-disable-next-line no-restricted-syntax -- cli-integ deliberately runs commands through a shell to mimic real terminal invocation in integ tests.
shell: true,
stdio: ['ignore', 'pipe', 'pipe'],
...options,
Expand Down
1 change: 1 addition & 0 deletions packages/@aws-cdk-testing/cli-integ/lib/shell.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line no-restricted-imports -- type-only import in cli-integ, a test harness that spawns processes to exercise the CLI; test infrastructure, not shipped runtime.
import type * as child_process from 'child_process';
import * as fs from 'fs';
import * as os from 'os';
Expand Down
1 change: 1 addition & 0 deletions packages/@aws-cdk-testing/cli-integ/lib/with-cdk-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ export class TestFixture extends ShellHelper {
'--username', username,
'--password', '${ECR_PASSWORD}',
'public.ecr.aws'], {
// eslint-disable-next-line no-restricted-syntax -- cli-integ deliberately runs commands through a shell to mimic real terminal invocation in integ tests.
shell: true,
modEnv: {
ECR_PASSWORD: password,
Expand Down
2 changes: 2 additions & 0 deletions packages/@aws-cdk-testing/cli-integ/lib/with-sam.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line no-restricted-imports -- cli-integ is a test harness that spawns processes to exercise the CLI as a user would; it is test infrastructure, not shipped runtime.
import * as child_process from 'child_process';
import * as os from 'os';
import * as path from 'path';
Expand Down Expand Up @@ -192,6 +193,7 @@ export async function shellWithAction(
...options,
env,
// Need this for Windows where we want .cmd and .bat to be found as well.
// eslint-disable-next-line no-restricted-syntax -- cli-integ deliberately runs commands through a shell to mimic real terminal invocation in integ tests.
shell: true,
stdio: ['ignore', 'pipe', 'pipe'],
});
Expand Down
50 changes: 49 additions & 1 deletion packages/@aws-cdk/cdk-assets-lib/.eslintrc.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 49 additions & 1 deletion packages/@aws-cdk/cdk-explorer/.eslintrc.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading