-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This does not seem to work with Jest #2
Labels
Won't fix 🙅♂️🙅♀️
This issue won't be fixed
Comments
@oliverwatkins I think your test is incorrect. As far as your import waitUntil from 'async-wait-until';
// Callback should be an async function if it tests async stuff
it('test something', async () => {
await waitUntil(() => {
return 1 == 1;
}, 2000);
// Something that you want to assert here?
}); |
Closing this issue as it's not related to the library |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I have a jest test that looks like this :
then I will get it passing all the time.
Am I using this library correctly?
The text was updated successfully, but these errors were encountered: