Chore: Move @testing-library/dom to peerDependencies#126
Chore: Move @testing-library/dom to peerDependencies#126jackw wants to merge 3 commits intoromgain:masterfrom
Conversation
|
@romgain I'm sorry for the ping but could you take a look at this PR when you've time. We have multiple projects using this package and have needed to set the |
|
Hey @jackw ! Thanks for your contribution. I think a better solution would be to widen the version range for @testing-library/dom instead of moving it to be a peer dependency (it is a direct dependency after all :)) Would you mind giving that a go? Thanks again! |
|
Sorry for the late reply @romgain .
You're most welcome. This package is super helpful!
Based on the issue I'm not sure widening the range is going to solve the problem people are facing. Currently the version range is anything greater than If a project is already depending on
I think the general consensus with |
This PR makes
@testing-library/domapeerDependencyallowing projects to define the version of the package they require. I tested this by building and publishing locally and after install tests continued to run.Fixes: #70