Open
Conversation
Configured Vitest to generate coverage reports in text and lcov formats, excluding test files. Updated CircleCI config to use a Node 20 executor, install dependencies, run Vitest with coverage, and store coverage artifacts. This improves CI visibility and test coverage tracking.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR sets up continuous integration for the project by configuring CircleCI to automatically run tests with coverage reporting on each commit.
Key Changes:
- Added CircleCI configuration with Node.js 20.18 environment and npm dependency caching
- Configured Vitest to generate coverage reports in text and lcov formats
- Set up automated test execution with coverage artifact storage
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.circleci/config.yml |
New CircleCI pipeline configuration for running Vitest with coverage |
vitest.config.ts |
Added coverage configuration to generate reports and exclude test files |
Upgraded several dependencies including @hookform/resolvers, react-hook-form, and zod. Added new packages: @radix-ui/react-label, @radix-ui/react-slot, @vitest/coverage-v8, and sonner. This update also includes various new sub-dependencies and minor adjustments to dev and optional dependency flags.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces automated testing and coverage reporting to the project by integrating CircleCI and configuring Vitest coverage options. The main changes are grouped into CI/CD setup and test coverage enhancements:
CI/CD Setup:
.circleci/config.ymlfile to set up CircleCI with a Node.js 20.18 Docker image, caching for npm dependencies, and a job to run Vitest tests with coverage reporting.Test Coverage Enhancements:
vitest.config.tsto enable coverage reporting, specifyingtextandlcovreporters, setting the reports directory tocoverage, and excluding test setup files from coverage.