Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Smarter act and text matchers #626

Merged
merged 3 commits into from
Apr 2, 2019
Merged

Smarter act and text matchers #626

merged 3 commits into from
Apr 2, 2019

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