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

Update jest-dom, make TS aware #637

Merged
merged 1 commit into from
Mar 20, 2024
Merged

Conversation

ChristopherChudzicki
Copy link
Contributor

See testing-library/jest-dom#517 for more info

What are the relevant tickets?

Closes #353

Description (What does it do?)

This PR updates jest and @testing-library/jest-dom.

How can this be tested?

Tests and CI should pass.

@@ -15,6 +15,7 @@
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"preserveWatchOutput": true
"preserveWatchOutput": true,
"types": ["node", "jest", "@testing-library/jest-dom"]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@testing-library/jest-dom adds more matchers to jest's expect(...); for example, expect(element).toBeInTheDocument(). In v6, the mechanism that informs typescript about the new matchers changed.

See testing-library/jest-dom#517 for a little more info.

@ChristopherChudzicki ChristopherChudzicki added the Needs Review An open Pull Request that is ready for review label Mar 19, 2024
Copy link

codecov bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.02%. Comparing base (f280260) to head (89031fa).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #637   +/-   ##
=======================================
  Coverage   75.02%   75.02%           
=======================================
  Files         248      248           
  Lines       11318    11318           
  Branches     1963     1963           
=======================================
  Hits         8491     8491           
  Misses       2653     2653           
  Partials      174      174           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ChristopherChudzicki ChristopherChudzicki marked this pull request as ready for review March 19, 2024 20:06
@shanbady shanbady self-requested a review March 20, 2024 13:25
@shanbady shanbady self-assigned this Mar 20, 2024
Copy link
Contributor

@shanbady shanbady left a comment

Choose a reason for hiding this comment

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

changes look good. tests pass.

@shanbady shanbady added Waiting on author and removed Needs Review An open Pull Request that is ready for review labels Mar 20, 2024
@ChristopherChudzicki ChristopherChudzicki merged commit ed5e72c into main Mar 20, 2024
8 checks passed
@odlbot odlbot mentioned this pull request Mar 25, 2024
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants