Skip to content

Instantly share code, notes, and snippets.

@hi-ogawa
hi-ogawa / NOTE.md
Created June 23, 2026 08:19
Cloudflare @cloudflare/vitest-pool-workers integration review (vitest-dev/vitest#10635)

Cloudflare @cloudflare/vitest-pool-workers — integration overview (#10635)

  • 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, peerDeps vitest@^4.1.0
  • Pool source: ~/code/others/workers-sdk/packages/vitest-pool-workers
@hi-ogawa
hi-ogawa / pr-1234-export-star-review.md
Last active May 29, 2026 07:44
vite-plugin-react PR 1234 export-star review notes

PR 1234 export-star review notes

Context

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:

@hi-ogawa
hi-ogawa / dom-snapshot-replay-comparison.md
Last active April 21, 2026 05:39
DOM snapshot / replay architecture comparison for Vitest trace view
@hi-ogawa
hi-ogawa / trace-view-ecosystem-candidates.md
Created April 12, 2026 07:51
Vitest trace view ecosystem candidate research

Trace View Ecosystem Candidates

Date: 2026-04-12

Goal: find real ecosystem projects, preferably component libraries, that already use Vitest Browser Mode and can exercise the new browser.traceView workflow.

Search Method

Initial GitHub code search signals:

@hi-ogawa
hi-ogawa / maxconcurrency-scheduling-10097.md
Last active April 9, 2026 05:22
maxConcurrency scheduling fix - DFS bounded parallelism (#10097)

maxConcurrency Scheduling Issue (issue #10097)

Issue: vitest-dev/vitest#10097

The Problem

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.

@hi-ogawa
hi-ogawa / issue-9667-after-coverage-hook.md
Created April 8, 2026 06:47
issue #9667 - reporter hook after coverage HTML generation

Issue #9667 — Reporter hook after coverage HTML generation

Issue: vitest-dev/vitest#9667

Problem

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

@hi-ogawa
hi-ogawa / 2026-04-05-rsc-member-chain-binding-plan.md
Last active April 5, 2026 04:13
RSC Member-Chain Binding Plan
@hi-ogawa
hi-ogawa / issue-10050-docs-plan.md
Created April 3, 2026 01:14
vitest issue 10050 docs plan

Issue 10050: docs-only first pass for @vitest/pretty-format

Issue: vitest-dev/vitest#10050

Goal

Start with documentation only:

  • remove leftover wording that points users at Jest's pretty-format docs
  • give @vitest/pretty-format an actual Vitest-owned explanation
@hi-ogawa
hi-ogawa / 6425-01-self-contained-html-reporter.md
Created March 31, 2026 01:19
vitest#6425 self-contained HTML reporter investigation & plan

Self-contained HTML reporter

Plan for implementing a single-file output mode for @vitest/ui's HTML reporter. Tracking issue: vitest#6425

Goal

Add an option (e.g. reporter: [['html', { singleFile: true }]]) that produces a single index.html with no external dependencies.

@hi-ogawa
hi-ogawa / ai-agent-integration-01-plan.md
Last active March 29, 2026 08:41
Vitest AI agent integration — plan + landscape

AI Agent Integration for Vitest — Plan

Status: Draft Date: 2026-03-29 See also: ai-agent-integration-02-landscape.md (See next document)


Background