You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes we're restarting Vitest, which usually takes less than a second, but during that time, triggering a run won' work, it will be ignored. This can eg. happen when you're toggling coverage and immediately trigger a run, it doesn't do anything.
What happens is:
changing a config (coverage/a11y) is debounced to 2s. After that you see "Settings saved" with a green border
Vitest is restarted, in that time it's unresponsive.
I see two ways to fix this:
Disable the run button whenever we know that Vitest is restarting or otherwise unresponsive.
Queue requests when Vitest is restarting, triggering them when Vitest is ready. We probably don't want an actual queue system for this, just "trigger the most recent action". Lining up multiple actions could create a confusing situation.
Originally reported on Discord:
The text was updated successfully, but these errors were encountered:
Seems like we may need a "starting" status. I had that implemented for the "stuck state" issue last week but didn't continue down that road because I found a simpler solution. Maybe we have a new use case for it here?
Sometimes we're restarting Vitest, which usually takes less than a second, but during that time, triggering a run won' work, it will be ignored. This can eg. happen when you're toggling coverage and immediately trigger a run, it doesn't do anything.
What happens is:
I see two ways to fix this:
Originally reported on Discord:
The text was updated successfully, but these errors were encountered: