-
Notifications
You must be signed in to change notification settings - Fork 821
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
fix(amplify-provider-awscloudformation): fix tests failing due to system-config-manager.js #7053
fix(amplify-provider-awscloudformation): fix tests failing due to system-config-manager.js #7053
Conversation
…ptional-chaining to fix failing tests
Instead of adding more complexity, can we just change |
Oh, I didn't know that changing to |
….js to a typescript file
…tem-config-manager.ts
Codecov Report
@@ Coverage Diff @@
## master #7053 +/- ##
==========================================
+ Coverage 56.31% 56.43% +0.11%
==========================================
Files 445 445
Lines 21806 21859 +53
Branches 4363 4373 +10
==========================================
+ Hits 12280 12336 +56
- Misses 8711 8745 +34
+ Partials 815 778 -37
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
packages/amplify-provider-awscloudformation/src/system-config-manager.ts
Outdated
Show resolved
Hide resolved
…tem-config-manager.js (aws-amplify#7053)
👋 Hi, this pull request was referenced in the v4.48.0 release! Check out the release notes here https://github.com/aws-amplify/amplify-cli/releases/tag/v4.48.0. |
* fix(amplify-provider-awscloudformation): fix tests failing due to system-config-manager.js (#7053) * feat: s3 sse by default * chore: fix init push issue * chore: cleanup * test: whole lotta tests * test: update nondeterministic test * fix: serialize modifiers and improve test error handling * fix: add parameterization to ResourceModifier * fix: add type to sig * test: update test with new modifier structure * test: fix test * feat: add permission boundary to IAM roles * fix: update iam role modifier * test: add e2e test for perm bound * test: add unit tests for perm bound modifier * fix: fix regex * feat: switch to env-specific config * chore: dumping env perm bound changes * feat: fixup env-specific config and add headless support * chore: cleaning up things * test: more unit tests and e2e test * test: small test tweaks * chore: reverting some unintentional linting changes * fix: add update to env help text * test: add mock * chore: address PR comments * chore: use module var instead of global var * chore: rename permission boundary -> permissions boundary * fix: merge tpi instead of overwrite * chore: remove newline * fix: load creds for new env when checking policy * fix: test fixes * test: fix unit tests * test: fix profile selection * fix: change permissions boundary success text Co-authored-by: Raj Rajhans <me@rajrajhans.com>
👋 Hi, this pull request was referenced in the v5.0.0 release! Check out the release notes here https://github.com/aws-amplify/amplify-cli/releases/tag/v5.0.0. |
…(ref aws-amplify#4618) * fix(amplify-provider-awscloudformation): fix tests failing due to system-config-manager.js (aws-amplify#7053) * feat: s3 sse by default * chore: fix init push issue * chore: cleanup * test: whole lotta tests * test: update nondeterministic test * fix: serialize modifiers and improve test error handling * fix: add parameterization to ResourceModifier * fix: add type to sig * test: update test with new modifier structure * test: fix test * feat: add permission boundary to IAM roles * fix: update iam role modifier * test: add e2e test for perm bound * test: add unit tests for perm bound modifier * fix: fix regex * feat: switch to env-specific config * chore: dumping env perm bound changes * feat: fixup env-specific config and add headless support * chore: cleaning up things * test: more unit tests and e2e test * test: small test tweaks * chore: reverting some unintentional linting changes * fix: add update to env help text * test: add mock * chore: address PR comments * chore: use module var instead of global var * chore: rename permission boundary -> permissions boundary * fix: merge tpi instead of overwrite * chore: remove newline * fix: load creds for new env when checking policy * fix: test fixes * test: fix unit tests * test: fix profile selection * fix: change permissions boundary success text Co-authored-by: Raj Rajhans <me@rajrajhans.com>
Description of changes
Optional chaining operator is used in packages/amplify-provider-awscloudformation/src/system-config-manager.js. However, since it is a JS file, and not a TS file, it isn't being processed by Babel and so some tests are failing ->
This PR converts
packages/amplify-provider-awscloudformation/src/system-config-manager.js
to a.ts
file (as suggested by @cjihrig)Issue #, if available
Description of how you validated changes
yarn test
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.