Skip to content

test: add responsive breakpoint tests for stats route #8080

Open
AMAN194701 wants to merge 1 commit into
JhaSourav07:mainfrom
AMAN194701:test/6784-responsive-breakpoints
Open

test: add responsive breakpoint tests for stats route #8080
AMAN194701 wants to merge 1 commit into
JhaSourav07:mainfrom
AMAN194701:test/6784-responsive-breakpoints

Conversation

@AMAN194701

@AMAN194701 AMAN194701 commented Jul 15, 2026

Copy link
Copy Markdown

Description

Closes #6784

Added a dedicated responsive breakpoint test suite for the Stats route.

Changes

  • Added app/api/stats/route.responsive-breakpoints.test.ts
  • Implemented 5 responsive breakpoint test cases covering:
    • Standard mobile-width viewport (375px)
    • Responsive multi-device column layouts
    • Vertical column reflow
    • Prevention of horizontal overflow on small viewports
    • Mobile-specific navigation/toggle behavior
  • Verified all tests pass successfully using Vitest.

Pillar

  • 🎨 Pillar 1 — New Theme Design
  • 📐 Pillar 2 — Geometric SVG Improvement
  • 🕐 Pillar 3 — Timezone Logic Optimization
  • 🛠️ Other (Bug fix, refactoring, docs)

Visual Preview

N/A (Test-only changes)

Checklist before requesting a review:

  • I have read the CONTRIBUTING.md file..
  • My commits follow the Conventional Commits format (e.g., feat(themes): ..., fix(calculate): ...).
  • I have starred the repo.
  • I have made sure that I have only one commit to merge in this PR.

@github-actions github-actions Bot added the status:blocked This PR is blocked due to a failing CI check. label Jul 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚨 Hey @AMAN194701, the CI Pipeline is failing on this PR and it has been marked as status:blocked.

Please fix the issues before this can be reviewed. Here's how:

1. Run checks locally before pushing:

npm run format:check   # Check Prettier formatting
npm run lint           # Run ESLint
npm run typecheck      # TypeScript type check
npm run test           # Run unit tests (Vitest)
npm run build          # Verify production build passes

2. Auto-fix common issues:

npm run format         # Auto-fix formatting with Prettier
npm run lint -- --fix  # Auto-fix lint errors where possible

3. Check the full failure log here:
👉 View CI Run

Once you push a fix and the CI passes, the status:blocked label will be removed automatically. 💪

@Aamod007 Aamod007 added level:intermediate Moderate complexity tasks quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. type:testing Adding, updating, or fixing tests mentor:Aamod007 labels Jul 17, 2026

@Aamod007 Aamod007 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job implementing the responsive breakpoint tests for the stats API route. However, the Vercel check is failing. Please resolve the issues and rerun the CI pipeline.

@Aamod007 Aamod007 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upon re-evaluation, I realized I previously misinterpreted the Vercel deployment failure as an issue with this PR. The Vercel build failure seems unrelated to the changes introduced here, so I will ignore it moving forward. The rest of the PR looks good, so I'm approving it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:intermediate Moderate complexity tasks mentor:Aamod007 quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. status:blocked This PR is blocked due to a failing CI check. type:testing Adding, updating, or fixing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(ApiStatsRoute-responsive-breakpoints): verify Responsive Multi-device Columns & Mobile Viewport Layouts (Variation 7)

2 participants