Closed
Description
@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):
- fix: Consider <caption> and <legend> dom-testing-library#580
- Add more robust selector handling for getByLabelText dom-testing-library#373
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.