ackama / rails-template

Application template for Rails 7 projects; preloaded with best practices for TDD, security, deployment, and developer productivity.
Other
303 stars 15 forks source link

fix: retain `@testing-library/dom` as a direct dependency even when `@testing-library/react` is used #554

Closed G-Rath closed 2 months ago

G-Rath commented 3 months ago

v16.0.0 now requires @testing-library/dom as a peer dependency, which means we need to explicitly include it as a direct dependency at least while we're using Yarn which doesn't automatically install peer dependencies.

We already add @testing-library/dom as a direct dependency in the Stimulus variant which is always installed, so we just need to stop removing it in the React variant.