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

fix: revert missing hooks warnings #1255

Merged
merged 1 commit into from Nov 17, 2023
Merged

Conversation

MatanBobi
Copy link
Member

What: This PR reverts #1252 and #1244. Resolves #1253.

Why: The changes here doesn't provide much added value and should be properly documented instead.
Since we can't provide a good experience for users that are manually calling afterEach without globals, we prefer documenting it properly.

How:

Checklist:

  • Documentation added to the
    docs site
  • Tests
  • TypeScript definitions updated
  • Ready to be merged

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 5341087:

Sandbox Source
React Configuration
react-testing-library-examples Configuration

Copy link

codecov bot commented Nov 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d80319f) 100.00% compared to head (5341087) 100.00%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1255   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         4           
  Lines          192       192           
  Branches        40        40           
=========================================
  Hits           192       192           
Flag Coverage Δ
canary 100.00% <ø> (ø)
experimental 100.00% <ø> (ø)
latest 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@MatanBobi MatanBobi merged commit 1c67477 into main Nov 17, 2023
13 checks passed
@MatanBobi MatanBobi deleted the fix/revert-hooks-warnings branch November 17, 2023 15:46
@ITenthusiasm
Copy link

Honestly, I think this is the ideal. 😅 Thanks for this 🙏🏾 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cleanup warnings are fired even if cleanup is fired manually
3 participants