- Issue: vitest-dev/vitest#10635 (Research and feedback for downstream integrations)
- Vitest repo: git@github.com:hi-ogawa/vitest.git
- Vitest commit: 76139c5a001b9d3dd880e79c2bd83861d1c98bda (branch
main) - Vitest worktree: /Users/hogawa/code/others/vitest
- workers-sdk repo: https://github.com/cloudflare/workers-sdk
- workers-sdk commit: 2091f804396f28a700fb90420e6ecf8c46336702
- Pool package:
@cloudflare/vitest-pool-workers@0.16.18, peerDepsvitest@^4.1.0 - Pool source:
~/code/others/workers-sdk/packages/vitest-pool-workers
PR: vitejs/vite-plugin-react#1234
The PR handles bare export * from "..." in RSC boundary modules by pre-expanding star re-exports before the existing proxy/wrap transforms run.
Main implementation:
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:
- track
config.api.keyas a closure capture instead of onlyconfig - keep declaration resolution anchored on the root identifier (
config) - preserve current shadowing correctness from the custom scope tree
Issue: vitest-dev/vitest#10050
Start with documentation only:
- remove leftover wording that points users at Jest's
pretty-formatdocs - give
@vitest/pretty-formatan actual Vitest-owned explanation
Plan 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.