Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Fix flaky TaxonomyBrowser visualization unit tests

オープン
#581 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@atiannicelli がすでに取り組んでいます。

2026年10月15日 から。

評価

この issue はまだ評価されていません。

説明

Type

Bug

Scope

Multi-theme or Platform

Skillset

dev ops

Description

Some TaxonomyBrowser visualization tests in src/components/__tests__/taxonomyBrowser.test.jsx fail intermittently. When they fail, Unit tests and are-we-good fail on PRs that don't touch the component. For example, #580 changes only an .mdx file and failed, then passed on re-run (failed job).

Failures seen:

  • viewport zoom and pan > still works when a zoom control is pressed with a shaky hand: expected 1 to be greater than 1
  • viewport zoom and pan > pans by the drag delta: expected { x: +0, y: +0, k: 1 } to match object { x: 60, y: 30 }
  • canvas sizing > fills the space it is given rather than a fixed size

Local repro on main code: npx vitest run src/components/__tests__/taxonomyBrowser.test.jsx failed 2/30 runs. Running only -t "viewport zoom and pan" passed 30/30, so earlier tests in the file seem to be involved.

Suspected cause (unconfirmed): showSunburst() returns once the sunburst is in the DOM, possibly before its passive effects run. Those effects are the window pointer listeners and the mount-time resetView() in src/components/taxonomyViz.jsx. A late resetView() would undo the test's zoom or pan.

Acceptance criteria:

  • Find and fix the root cause in the component or tests, without just adding retries.
  • The full test file passes on repeated local runs, e.g. 50 in a row.
主要言語
MDX
スター
84
フォーク
30
平均マージ
12時間 48分
マージ済み PR(30日)
35

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OvertureMaps/docs のほかの issue

OvertureMaps/docs の issue をすべて見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。