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
There is no way for a reporter to know if a file is currently being collected. If the collection phase is slow (e.g. transforms 100000 files due to barrel files), end users have no idea what is going on. Reporters cannot inform user about slow files.
Suggested solution
Before collection for a file starts, inform reporters on onTaskUpdate hook that file is in queue. It could be something like File & { mode: 'queued' }. Next expected state after this is run.
Clear and concise description of the problem
There is no way for a reporter to know if a file is currently being collected. If the collection phase is slow (e.g. transforms 100000 files due to barrel files), end users have no idea what is going on. Reporters cannot inform user about slow files.
Suggested solution
Before collection for a file starts, inform reporters on
onTaskUpdate
hook that file is in queue. It could be something likeFile & { mode: 'queued' }
. Next expected state after this isrun
.Somewhere around here:
vitest/packages/runner/src/collect.ts
Lines 31 to 35 in 0b08bc1
Alternative
No response
Additional context
The summary of #6893 could display queued files even before they start running.
Validations
The text was updated successfully, but these errors were encountered: