Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve async component mounting (#24)
* Flush promises to handle async React lifecycle methods * Mount components with async by default * Await componentDidMount method by default * Handle null instance in mount * Add test for async componentDidMount * Update test to use text helper function * Make flushPromises util async
- Loading branch information
Showing
3 changed files
with
44 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters