Add comment to investigate removal of .promise() #2040
Annotations
2 errors and 1 warning
test:
src/transforms/v2-to-v3/transformer.spec.ts#L53
AssertionError: expected '// client is AWS SDK JS v2 client her…' to deeply equal '// client is AWS SDK JS v2 client her…'
- Expected
+ Received
// client is AWS SDK JS v2 client here, but jscodeshift can't detect it because of lack of types/import.
- export const listTables = (client) =>
- // The `.promise()` call might be on an JS SDK v2 client API.
- // If yes, please remove .promise(). If not, remove this comment.
- client.listTables().promise();
+ export const listTables = (client) => client.listTables().promise();
❯ src/transforms/v2-to-v3/transformer.spec.ts:53:31
|
test
Process completed with exit code 1.
|
lint:
src/transforms/v2-to-v3/apis/index.ts#L8
"export * from './addPromiseRemovalComments'" should occur before "export * from './getV3ClientWaiterApiName'"
|
Loading