-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Labels
help wantedIf you can help make progress with this issue, please comment!If you can help make progress with this issue, please comment!technicalA technical issue that requires understanding of the code, infrastructure or dependenciesA technical issue that requires understanding of the code, infrastructure or dependencies
Description
! 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
Labels
help wantedIf you can help make progress with this issue, please comment!If you can help make progress with this issue, please comment!technicalA technical issue that requires understanding of the code, infrastructure or dependenciesA technical issue that requires understanding of the code, infrastructure or dependencies