You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using listObjectV2 in my file.ts and I am importing it by import S3 from 'aws-sdk/clients/s3 and when I try to mock it from my test file, with this code, is not working : AWSMock.mock('S3', 'listObjectsV2', { Contents: [{ Key: 'object1' }, { Key: 'object2' }] });
But If I import AWS from 'aws-sdk' in my file.ts,, then the mock is working.
Am I doing something wrong?
I would like to import only S3 and not the whole AWS .
The text was updated successfully, but these errors were encountered:
Hi,
I am using listObjectV2 in my file.ts and I am importing it by import S3 from 'aws-sdk/clients/s3 and when I try to mock it from my test file, with this code, is not working :
AWSMock.mock('S3', 'listObjectsV2', { Contents: [{ Key: 'object1' }, { Key: 'object2' }] });
But If I import AWS from 'aws-sdk' in my file.ts,, then the mock is working.
Am I doing something wrong?
I would like to import only S3 and not the whole AWS .
The text was updated successfully, but these errors were encountered: