Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update generateClient tests to full snapshots #12677

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

svidgen
Copy link
Contributor

@svidgen svidgen commented Dec 5, 2023

Description of changes

There are no functional changes.

This PR only updates the generateClient tests to use full snapshots to validate post requests instead of cherrypicking invariants to test on. The jest spy calls are "normalized" to eliminate portions that would otherwise change from version to version of the library.

This is being done to perform more precise and comprehensive validation of all aspects of requests made to post().

Issue #, if available

Description of how you validated changes

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@svidgen svidgen requested a review from a team as a code owner December 5, 2023 23:19
@svidgen svidgen merged commit 1e96034 into aws-amplify:main Dec 6, 2023
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants