Skip to content

Instantly share code, notes, and snippets.

@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

@hi-ogawa
hi-ogawa / merge-reports-cross-platform.md
Last active March 23, 2026 10:19
feat: support merging reports for non-sharded multi-environment runs

Cross-Platform Merge Reports

Issue Title

feat: support merging reports for non-sharded multi-environment runs

Feature Request

Clear and concise description of the problem

@hi-ogawa
hi-ogawa / snapshot-custom-matcher-9948.md
Last active March 26, 2026 08:04
Support building custom snapshot matchers with expect.extend https://github.com/vitest-dev/vitest/issues/9948