-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: Add merge utility #37
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #37 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 2 +1
Lines 15 28 +13
Branches 1 5 +4
=========================================
+ Hits 15 28 +13 ☔ View full report in Codecov by Sentry. |
9cdc34c
to
4e56826
Compare
@@ -6165,7 +6166,6 @@ | |||
}, | |||
"node_modules/lodash": { |
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.
Any real world project probably already has a dependency on lodash anyway, so this addition comes with no extra cost
README.md
Outdated
@@ -40,14 +40,14 @@ In your `jest.config.json`: | |||
|
|||
### Advanced usage | |||
|
|||
If you are already have another preset in your configuration, you can [merge them together](https://stackoverflow.com/questions/51002460/is-it-possible-to-use-jest-with-multiple-presets-at-the-same-time): | |||
If you are already have another preset in your configuration, you can use `@cloudscape-design/jest-preset/merge` helper to merge them together: |
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.
I know it isn't newly added but isn't the text supposed to be "If you already have another preset ..."?
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.
Good find, fixed
4e56826
to
0b3bfbe
Compare
Issue #, if available:
Description of changes:
Adding an extra built-in utility instead of relying on external dependency. See the updated readme for use-case example
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.