Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add frontend tests for core pages

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

@adityamukesh đang làm issue này rồi.

Từ ngày 13/10/2026.

Đá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
72/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, nextjs
Lĩnh vực
testing

Hướng nghiên cứu

Start with one named page under frontend/pages/ and read the existing tests in frontend/__tests__/ to follow the Jest and Testing Library style. Mock API calls as in the existing tests, then cover player-visible behavior for that page; verify tests fail when the behavior breaks. Run cd frontend && npm test && npm run lint.

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

Mô tả

good first issue help wanted

The backend has 94 test files, the frontend has 16. Most pages under frontend/pages/ have no tests, including the ones players use most.

Good places to start

  • frontend/pages/problems/[slug].js: practice problem view, run and submit states, error display.
  • frontend/pages/leaderboard.js: sorting, empty state, pagination.
  • frontend/pages/login.js and register.js: validation messages and error handling.
  • frontend/pages/practice.js: problem list filtering by difficulty and tag.

Follow the style in frontend/__tests__/ (Jest plus Testing Library, API calls mocked).

Definition of done

  • Tests cover behavior a player would notice, not implementation details.
  • Each new test fails if you break the thing it covers (mention how you checked in the pull request).
  • cd frontend && npm test && npm run lint passes.

One page per pull request is ideal.

Ngôn ngữ chính
JavaScript
Star
0
Fork
2
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 sennaicodes/codearena

Tất cả issue của sennaicodes/codearena

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.