Skip to content

Commit e45019f

Browse files
it works. working on tests
Signed-off-by: ivan katliarchuk <[email protected]>
1 parent 647bd45 commit e45019f

File tree

5 files changed

+471
-9
lines changed

5 files changed

+471
-9
lines changed

with-tests/eks-addons/package.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424
},
2525
"devDependencies": {
2626
"ts-jest": "29.2.5",
27-
"ts-node": "10.9.2"
27+
"ts-node": "10.9.2",
28+
"@jest/types": "29.6.3",
29+
"jest": "29.7.0",
30+
"jest-extended": "4.0.2",
31+
"jest-mock": "29.7.0",
32+
"jest-mock-extended": "3.0.7",
33+
"jest-snapshot": "29.7.0",
34+
"aws-sdk-client-mock": "4.1.0"
2835
}
2936
}

with-tests/eks-addons/src/app.spec.ts

Whitespace-only changes.

with-tests/eks-addons/src/app.ts

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
import {
2+
AddonInfo,
3+
AddonVersionInfo,
4+
Compatibility,
25
DescribeAddonVersionsCommand,
36
DescribeAddonVersionsCommandInput,
4-
AddonVersionInfo,
5-
DescribeClusterVersionsCommand,
67
DescribeAddonVersionsCommandOutput,
7-
DescribeClusterVersionsResponse,
8-
EKSClient, AddonInfo,
9-
Compatibility,
8+
EKSClient
109
} from '@aws-sdk/client-eks';
1110

1211
import { logger } from './utils/logger';
1312

1413
import type { GetReleasesConfig, ReleaseResult } from './utils/types';
15-
// just to simplify things
16-
import { Lazy } from './utils/lazy';
1714

1815
import { fromNodeProviderChain } from '@aws-sdk/credential-providers';
1916

2017
import { EksAddonsFilter } from './schema';
2118

22-
// import writeTxoFile from './file'
2319
// import { boolean } from 'zod';
2420
// https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/eks/command/DescribeAddonVersionsCommand/
2521
// https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-eks/Interface/DescribeAddonVersionsCommandInput/

0 commit comments

Comments
 (0)