-
Notifications
You must be signed in to change notification settings - Fork 93
Make @testing-library/dom
a peer dependency instead
#122
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
Comments
@testing-library/dom
a peer dependency instead.@testing-library/dom
a peer dependency instead
I'm hesitant to do this, because consumers will have to install both packages. What about the following options:
|
The other packages use a peer dependency to the framework, so I guess we should do that. |
Unless this package relies on specific angular API's (like |
And this doesn't scale up very well. I mean how far can one stretch things like this. |
Oh we're already having Angular as a peer dependency 😅.
Correct, this would only be done for the previous version of Angular and when the change has a big impact. I think you should be able to run ATL v10 with Angular 9. |
... which will force this package to only work with limited versions of angular at a time
We're on Angular 8 with no immediate plans to upgrade. |
But have you tried using this package latest version with Angular 8? |
AFAIK, version 10 of this package should be compatible with earlier versions of Angular. |
No mate it doesn't work:
|
🎉 This issue has been resolved in version 10.0.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
@NeekSandhu that problem should be resolved in v10.0.1, if that's the only problem I don't want to add |
@timdeschryver works great! however, there are some peer dep warnings that can be addressed because it's now functional with angular 8 as well:
|
I would like to keep it this way. |
@testing-library/angular
provides queries straight from@testing-library/dom
except that it's always a locked version. Meaning that one cannot receive any bug fixes and enhancements related to queries without also updating both@testing-library/angular
and@angular/core
itself.People who are on Angular 8, for example cannot have these critical fixes without upgrading to Angular 9 at the very least (which isn't always an option):
Making
@testing-library/dom
a peer dep will give people a lot of wiggle room to what can be achieved as they see fit as opposed to being locked down.The text was updated successfully, but these errors were encountered: