-
Notifications
You must be signed in to change notification settings - Fork 12
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
refactor: move util
into shared library
#183
Conversation
* released and `__dirname` will refer to a different location in the `.ts` form | ||
* as it will in the final executing form. | ||
*/ | ||
export function rootDir(): string; |
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.
This stays in the cli package
@@ -1,4 +1,4 @@ | |||
import * as fs from 'fs-extra'; | |||
import * as fs from 'fs/promises'; |
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.
fs-extra
wasn't needed at all here.
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.
ai generated tests
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.
ai generated tests
@@ -63,3 +62,14 @@ describe('splitBySize', () => { | |||
} | |||
}); | |||
}); | |||
|
|||
describe('applyDefaults', () => { |
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.
this was previously in a separate file for some reason
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.
ai generated tests
packages/aws-cdk/lib/cli/root-dir.ts
Outdated
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.
moved from util.ts and renamed function
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.
combined with an other test file for objects
a03d4fa
to
ae36265
Compare
ae36265
to
60d3f7d
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #183 +/- ##
==========================================
- Coverage 84.84% 84.69% -0.15%
==========================================
Files 205 207 +2
Lines 35648 35647 -1
Branches 4617 4594 -23
==========================================
- Hits 30245 30191 -54
- Misses 5245 5307 +62
+ Partials 158 149 -9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
60d3f7d
to
2e4eeb6
Compare
Mostly moving and import updates.
Renamed a couple of functions.
Added some more AI generated test cases for utils.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license