Skip to content

Commit

Permalink
unifying method & clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
lailien3 committed Nov 11, 2024
1 parent bec1de3 commit f9d8d60
Show file tree
Hide file tree
Showing 13 changed files with 449 additions and 374 deletions.
31 changes: 26 additions & 5 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"@ksmithut/prettier-standard": "^0.0.10",
"@types/hapi__hapi": "^20.0.10",
"@types/jest": "^27.4.0",
"aws-sdk-client-mock": "^4.1.0",
"aws-sdk-mock": "^6.2.0",
"babel-jest": "^27.5.1",
"clone-deep": "^4.0.1",
Expand Down Expand Up @@ -111,7 +112,6 @@
"dependencies": {
"@aws-sdk/client-dynamodb": "^3.665.0",
"@aws-sdk/lib-dynamodb": "^3.665.0",
"@smithy/shared-ini-file-loader": "^3.1.8",
"aws-sdk-client-mock": "^4.0.2"
"@smithy/shared-ini-file-loader": "^3.1.8"
}
}
6 changes: 0 additions & 6 deletions packages/connectors-lib/src/__mocks__/aws-mock-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ export const configureAwsSdkMock = (AwsSdk = jest.genMockFromModule('aws-sdk'))
'deleteMessage',
'deleteMessageBatch'
])
configureMock(AwsSdk.DynamoDB, ['listTables', 'describeTable', 'getItem', 'putItem', 'query', 'scan'], {})
configureMock(
AwsSdk.DynamoDB.DocumentClient,
['get', 'put', 'update', 'query', 'scan', 'delete', 'createSet', 'batchGet', 'batchWrite'],
{}
)
configureMock(AwsSdk.S3, ['listObjectsV2', 'getObject', 'putObject', 'headObject', 'deleteObject', 'upload', 'listBuckets', 'headBucket'])
configureMock(AwsSdk.SecretsManager, ['getSecretValue'])

Expand Down
Loading

0 comments on commit f9d8d60

Please sign in to comment.