Skip to content

aws mock s3 putObjectTagging "Not Working" ISSUE / Bug #266

@hanoj-budime

Description

@hanoj-budime

! important

S3 putObjectTagging mock not working, why any ideas..... ???


look.test.js

const AWS = require("aws-sdk-mock");

describe('s3 putObjectTagging', () => {
...
    beforeAll(async () => {
         // Arrange
        AWS.mock("S3", "putObjectTagging", jest.fn((params, callback) => {  // Not working
          callback(null, {});
        }));
      ....
    });
    ....
    // Assert
    ....
});

package.json

"dependencies": {
    "aws-sdk-mock": "^5.6.2", // aws-sdk mock
    "jest": "^27.5.1",
    "jest-junit": "^13.0.0",
    "jest-runner-eslint": "^1.0.0"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIf you can help make progress with this issue, please comment!technicalA technical issue that requires understanding of the code, infrastructure or dependencies

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions