Skip to content

Conversation

timdeschryver
Copy link
Member

Closes #170

Copy link

@StarpTech StarpTech left a comment

Choose a reason for hiding this comment

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

LGTM

const load = await screen.findByRole('button', { name: /load/i });
fireEvent.click(load);

tick(10_000);

Choose a reason for hiding this comment

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

You can also use flush() if you just want to jump to the end.

@timdeschryver timdeschryver merged commit acaa8fe into master Dec 5, 2020
@timdeschryver timdeschryver deleted the async-component branch December 5, 2020 13:14
@github-actions
Copy link

github-actions bot commented Dec 9, 2020

🎉 This PR is included in version 10.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

How to work with timers and long asynchronous operations?
2 participants