`verify` render runs no effects: add an opt-in DOM mount

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, react
Ambito
devtools, testing

Direzione di ricerca

Start by finding the verify command and how it currently renders components with react-dom/server. Add an opt-in --mount path using react-dom/client, resolve happy-dom or jsdom from the project, and skip mounting when neither is available. Confirm effects are flushed and thrown errors fail verification.

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

Descrizione

cli enhancement

verify renders with react-dom/server, which runs every component function but no useEffect. Most showpieces do their real work in effects (canvas setup, IntersectionObserver, motion), so a crash there passes.

Done when: --mount renders with react-dom/client under happy-dom or jsdom (resolved from the project, skipped when absent), flushes effects, and fails on a thrown error.

Lingua principale
JavaScript
Stelle
17
Fork
7
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 CreativesLibrary/Components

Tutte le issue di CreativesLibrary/Components

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.