Skip to content

Instantly share code, notes, and snippets.

@nemrosim
Last active June 30, 2022 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nemrosim/37a7fcf5a84b2f9a773e47fa02f78b9d to your computer and use it in GitHub Desktop.
Save nemrosim/37a7fcf5a84b2f9a773e47fa02f78b9d to your computer and use it in GitHub Desktop.
expect(result.current.isTrue).toBe(false);
- await waitForNextUpdate();
+ await waitForNextUpdate({
+ timeout: 2500,
+ });
expect(result.current.isTrue).toBe(true);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment