-
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
Proposal: the delay option #2061
Comments
I think a better and less fragile solution is for your code to wait for the database to be ready (detect it somehow). |
You could do that detection in an asynchronous (I'm closing this issue for housekeeping purposes, but let's keep the conversation going.) |
thanks, i have write anoter function anyway, i saw the |
I can see it being useful if the watcher picks up on files written by another process, and those files are written more slowly than it currently allows for. I don't recall anybody reporting such problems, though. |
A delay option like Rollup's |
@jakobrosenberg is this a problem you're encountering? |
@novemberborn, yes. especially for projects where dist files are written by different async functions. An even better option would be something like, |
@jakobrosenberg let's discuss here: #2702 |
I build a website with Nuxt.js, i have complicated backend models and it will take several seconds before the database is initialized and ready to work.
I run ava with the
--watch
option and will failed each time i update the source code (because the tests start immediately after i modify the source code before the database is ready)Can we have a delay option to control the delay time after the source file are updated when we use the
--watch
option?i want a CLI option
--delay 5000
and the package.json config:to have a 5.0s delay time.
The text was updated successfully, but these errors were encountered: