Maintenance: remove duplication in Idempotency tests #2918
Labels
completed
This item is complete and has been merged/shipped
idempotency
This item relates to the Idempotency Utility
internal
PRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)
tests
PRs that add or change tests
Summary
The unit tests for the
makeIdempotent
function wrapper and themakeHandlerIdempotent
Middy.js middleware are very similar except for some lines.According to SonarCloud, the two test files have 68% of duplication. We should work to reduce this to a minimum.
Why is this needed?
So that we can drop redundant code and reduce maintenance burden and cognitive load for maintainers and contributors.
Which area does this relate to?
Tests
Solution
No response
Acknowledgment
Future readers
Please react with 👍 and your use case to help us understand customer demand.
The text was updated successfully, but these errors were encountered: