Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Smarter act and text matchers#626

Merged
lemonmade merged 3 commits intomasterfrom
more-react-testing
Apr 2, 2019
Merged

Smarter act and text matchers#626
lemonmade merged 3 commits intomasterfrom
more-react-testing

Conversation

@lemonmade
Copy link
Member

This PR has a few small, relatively isolated fixes:

  1. Made sure that setProps preserves original props
  2. Made it so that subsequent calls to act when already in an act block don't trigger additional calls to the ReactDOM act function
  3. Added toContainReactText and toContainReactHtml assertions

Screen Shot 2019-04-02 at 9 54 48 AM
Screen Shot 2019-04-02 at 9 55 50 AM

@lemonmade lemonmade merged commit 8098a1c into master Apr 2, 2019
@lemonmade lemonmade deleted the more-react-testing branch April 2, 2019 14:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant