-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix pretty format import #705
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
Conversation
Typings use `import {OptionsReceived as PrettyFormatOptions} from 'pretty-format'` Fix #694
Unfortunately as a side-effect of housing typings in this repo, we need to explicitly add `pretty-format` as a dependency since our types rely on it. Note this project source code itself does not explicitly need `pretty-format` but instead just its typings.
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 073e99c:
|
Codecov Report
@@ Coverage Diff @@
## master #705 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 4
Lines 100 100
Branches 16 16
=========================================
Hits 100 100 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.
Shouldn't it come with @testing-library/dom
? I'm worried about keeping the versions in sync.
This was my worry too, and maybe this issue is not for all users. I'll keep investigating with the OP repo. |
I'm going to close this PR, I have given feedback to the OP. |
Seems like we do need this based on #694 (comment) |
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'd prefer to do this: #694 (comment)
What: add
pretty-format
as a dependencyWhy: fix #694, since moving typings to this repo we have to make
pretty-format
an explicit dependency since our types rely on itHow: update
package.json
Checklist:
docs site N/A
I tried with
devDependency
but those packages will not be installed on consumer projects, https://stackoverflow.com/questions/45176661/how-do-i-decide-whether-types-goes-into-dependencies-or-devdependencies is a good discussion that helped me wrap my head around what is necessary.