Skip to content

Commit d5f6f8c

Browse files
authored
chore(toolkit-lib): remove duplicate test helpers (#507)
This PR removes duplicate test helper functions in the toolkit-lib package to improve code maintainability and reduce redundancy. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
1 parent ea4ba36 commit d5f6f8c

File tree

5 files changed

+2
-112
lines changed

5 files changed

+2
-112
lines changed

packages/@aws-cdk/toolkit-lib/lib/api/io/private/testing/fake-io-host.ts

Lines changed: 0 additions & 43 deletions
This file was deleted.

packages/@aws-cdk/toolkit-lib/lib/api/io/private/testing/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/@aws-cdk/toolkit-lib/lib/api/io/private/testing/test-io-host.ts

Lines changed: 0 additions & 65 deletions
This file was deleted.

packages/@aws-cdk/toolkit-lib/test/api/environment/environment-resources.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { GetParameterCommand } from '@aws-sdk/client-ssm';
22
import { ToolkitInfo } from '../../../lib/api';
33
import { Context } from '../../../lib/api/context';
44
import { EnvironmentResourcesRegistry } from '../../../lib/api/environment';
5-
import { FakeIoHost } from '../../../lib/api/io/private/testing/fake-io-host';
65
import { Notices } from '../../../lib/api/notices';
76
import { CachedDataSource } from '../../../lib/api/notices/cached-data-source';
87
import { NoticesFilter } from '../../../lib/api/notices/filter';
8+
import { FakeIoHost } from '../../_helpers/fake-io-host';
99
import { MockSdk, mockBootstrapStack, mockSSMClient } from '../../_helpers/mock-sdk';
1010
import { TestIoHost } from '../../_helpers/test-io-host';
1111
import { MockToolkitInfo } from '../_helpers/mock-toolkitinfo';

packages/@aws-cdk/toolkit-lib/test/api/plugin/credential-plugin.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { CredentialProviderSource, SDKv3CompatibleCredentials } from '@aws-cdk/cli-plugin-contract';
22
import { CredentialPlugins, credentialsAboutToExpire } from '../../../lib/api/aws-auth/private';
3-
import { TestIoHost } from '../../../lib/api/io/private/testing';
43
import { Mode, PluginHost } from '../../../lib/api/plugin';
4+
import { TestIoHost } from '../../_helpers/test-io-host';
55

66
let host: PluginHost;
77
let credentialPlugins: CredentialPlugins;

0 commit comments

Comments
 (0)