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

Đang mở
#97 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, react
Lĩnh vực
devtools, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
JavaScript
Star
17
Fork
7
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CreativesLibrary/Components

Tất cả issue của CreativesLibrary/Components

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.