Skip to content
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

feat: make @testing-library/dom a peer dependency #304

Merged
merged 6 commits into from
Jun 4, 2023

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Jun 4, 2023

What:

Makes @testing-library/dom a required peer dependency.

Why:

This ensures that the same version of @testing-library/dom that is being used on projects is used as part of linting, along with allowing us to support more versions, and just overall reduce downstream pain.

Also see #238 for prior discussion

How:

By making @testing-library/dom a peer dependency.

Checklist:

  • Documentation
  • Tests
  • Ready to be merged

Resolves #294
Resolves #301

@codecov
Copy link

codecov bot commented Jun 4, 2023

Codecov Report

Merging #304 (cffdde0) into main (3f62d47) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main      #304   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           15        15           
  Lines          581       581           
  Branches       167       167           
=========================================
  Hits           581       581           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@G-Rath G-Rath force-pushed the make-peer-dependency branch 2 times, most recently from d5af778 to 615f9cf Compare June 4, 2023 01:14
@G-Rath G-Rath marked this pull request as ready for review June 4, 2023 01:23
@G-Rath G-Rath requested a review from MichaelDeBoey June 4, 2023 01:23
@G-Rath G-Rath added the BREAKING CHANGE This change will require a major version bump label Jun 4, 2023
Copy link
Member

@MichaelDeBoey MichaelDeBoey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

Renamed the variables to testing-library-dom for more clarity

.github/workflows/validate.yml Outdated Show resolved Hide resolved
.github/workflows/validate.yml Outdated Show resolved Hide resolved
.github/workflows/validate.yml Outdated Show resolved Hide resolved
@MichaelDeBoey MichaelDeBoey merged commit 7b34cbf into main Jun 4, 2023
63 checks passed
@MichaelDeBoey MichaelDeBoey deleted the make-peer-dependency branch June 4, 2023 14:23
@github-actions
Copy link

github-actions bot commented Jun 4, 2023

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@SimenB
Copy link

SimenB commented Jun 4, 2023

Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BREAKING CHANGE This change will require a major version bump released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dependency on @testing-library/dom
3 participants