test(docs): set up vitest for docs components

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

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

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
frontend, testing

調査の方向性

Read the plan in this issue and start with the foundational setup in #756, which uses StatsTable and ComparisonBarChart as examples. The target components are under packages/docs/src/components; determine how the browser mode and axe checks are configured there. Done means components can be tested incrementally in headless Chromium for browser-visible regressions and accessibility.

索引モデルが issue の本文から書いたものです。

説明

enhancement maintenance

the shared components in packages/docs/src/components (charts, StatsTable, framework cards) are changing every few days with more people tweaking and adding charts, and most of the regressions we've had are things you only see in the browser: chart sizes, misplaced logos and median lines, theme switching, the focused filter.

the idea is to have a test setup that catches those before review, using vitest in browser mode so each component runs its real client script in headless chromium, plus an axe check per component.

plan:

  • foundational setup with StatsTable and ComparisonBarChart as examples (#756)
  • ComparisonLineChart
  • VersionLineChart
  • StackedBarChart
  • ComparisonComposition
  • framework cards (need a way around loading every result file on import)

the rest can go incrementally, ideally adding the test in the same pr as the next change to that component.

主要言語
TypeScript
スター
42
フォーク
16
平均マージ
12時間 36分
マージ済み PR(30日)
151

環境構築

はじめの一歩

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

e18e/framework-tracker のほかの issue

e18e/framework-tracker の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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