Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

fix(act): improve async act detection #50

Merged
merged 1 commit into from
Aug 27, 2019

Conversation

bcarroll22
Copy link
Collaborator

@bcarroll22 bcarroll22 commented Aug 9, 2019

What:

Improve async act detection to achieve parity with RTL after testing-library/react-testing-library#407 and testing-library/react-testing-library#427 were merged.

Why:

This handles async act cases and detecting async act more effectively.

How:

This mostly just worked pulling it over from RTL. The only differences came because of using React Test Renderer instead of ReactDOM act, and not rendering globally to a JSDOM document.

Checklist:

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

Closes #47, closes #25

@codecov
Copy link

codecov bot commented Aug 9, 2019

Codecov Report

Merging #50 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #50   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          20     20           
  Lines         262    262           
  Branches       65     65           
=====================================
  Hits          262    262

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 06fe158...abe4304. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Aug 9, 2019

Codecov Report

Merging #50 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #50   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          20     20           
  Lines         262    262           
  Branches       65     65           
=====================================
  Hits          262    262

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 06fe158...abe4304. Read the comment docs.

Copy link
Collaborator

@TAGraves TAGraves left a comment

Choose a reason for hiding this comment

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

This looks good to me. Let's get this released.

@bcarroll22 bcarroll22 merged commit 840fc0a into master Aug 27, 2019
@bcarroll22 bcarroll22 deleted the feat/async-act-improvements branch August 27, 2019 14:14
@bcarroll22
Copy link
Collaborator Author

🎉 This PR is included in version 4.0.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Implement better async act detection Warning: An update to Example inside a test was not wrapped in act(...).
2 participants