This is a related resarch for Vites trace view discussion vitest-dev/vitest#10156.
Note
This note may be shared publicly as extra background for the trace-view discussion. Sibling-repo references in this note assume these source repositories:
This is a related resarch for Vites trace view discussion vitest-dev/vitest#10156.
Note
This note may be shared publicly as extra background for the trace-view discussion. Sibling-repo references in this note assume these source repositories:
Issue: vitest-dev/vitest#10097
With describe.concurrent and maxConcurrency: 5, users expect at most 5 tests' resources to be held simultaneously. Instead, all N concurrent tests fire their beforeEach hooks (allocating resources) before any test body runs — producing N simultaneous resource allocations regardless of maxConcurrency.
Root cause: the current scheduler is effectively BFS over the task tree. All nodes at depth N complete before depth N+1 begins.
Issue: vitest-dev/vitest#9667
The HTML reporter and UI mode need to act after coverage HTML is generated, but there's no public hook for this. The internal onFinishedReportCoverage method is duck-typed in core to fill this gap:
Location: packages/vitest/src/node/core.ts#L1455
Implement the feature gap called out in packages/plugin-rsc/src/transforms/scope.ts#L129 and the Next.js comparison note at packages/plugin-rsc/docs/notes/scope-manager-research/nextjs.md#L126:
config.api.key as a closure capture instead of only configconfig)Issue: vitest-dev/vitest#10050
Start with documentation only:
pretty-format docs@vitest/pretty-format an actual Vitest-owned explanationPlan for implementing a single-file output mode for @vitest/ui's HTML reporter.
Tracking issue: vitest#6425
Add an option (e.g. reporter: [['html', { singleFile: true }]]) that produces a
single index.html with no external dependencies.
expect.extend (user custom matcher)