Skip to content

Feat/coverage ci#539

Open
hashhhh-16 wants to merge 3 commits into
niharika-mente:mainfrom
hashhhh-16:feat/coverage-ci
Open

Feat/coverage ci#539
hashhhh-16 wants to merge 3 commits into
niharika-mente:mainfrom
hashhhh-16:feat/coverage-ci

Conversation

@hashhhh-16

Copy link
Copy Markdown
Contributor

Summary

Adds frontend test coverage reporting and CI integration using Vitest.

Changes Made

  • Added Vitest coverage support using the V8 coverage provider (@vitest/coverage-v8).

  • Added a new coverage script to the frontend package:

    npm run coverage
  • Added vitest.config.js with coverage configuration and test setup.

  • Integrated frontend coverage execution into the GitHub Actions CI workflow.

  • Added coverage output to .gitignore to prevent generated reports from being committed.

  • Fixed existing test issues that prevented coverage execution:

    • Added missing React imports in components/tests required for successful test runs.

Verification

  • All frontend tests pass successfully.
  • Coverage reports are generated locally using npm run coverage.
  • Coverage execution runs successfully as part of CI.

Related Issue

Closes #466

@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the niharika-mente's projects Team on Vercel.

A member of the Team first needs to authorize it.

Aamod007
Aamod007 previously approved these changes Jul 2, 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.

LGTM

@Aamod007 Aamod007 self-requested a review July 2, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: measure and enforce code coverage minimums (e.g., 80%) in the CI pipeline

2 participants