-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Wait for plan execution #1918
Comments
Could you elaborate on what you're looking for beyond what AVA already supports? E.g. there is a timeout feature, but it's to help find inactivity in your test suite as a whole, not a particular test. Are you looking for the timeout error to have feedback on how far pending tests managed to progress towards their execution plan? Or are you hoping to limit how long a particular tests is allowed to run for? |
No, I'm looking for a way how can I ensure if plan executed OR timeout achieved in particular test. Sometimes (often, actually :) I have to test async code without clean interceptors or mocks. So I want to have something like:
Sure it is a dummy example, but I hope I was able to convey the idea. |
Right, gotcha. AVA's timeout option isn't quite suitable for this. You could partially get there by calling I think ideally we'd support this through #1692, where you can use (I'm closing this issue for housekeeping purposes, but let's keep the conversation going.) |
I want to create helper, which will wait for execution plan or throw an error on timeout. This will reduce boilerplate required for clean test functions.
Example:
t.planWait(3000)
The text was updated successfully, but these errors were encountered: