test(docs): set up vitest for docs components

Aperta
#759 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
42
Fork
16
Merge medio
12h 36m
PR unite (30g)
151

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di e18e/framework-tracker

Tutte le issue di e18e/framework-tracker

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.