-
Notifications
You must be signed in to change notification settings - Fork 21
test: improve test coverage #519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds comprehensive test coverage for six generators (addon-verify, llms-txt, man-page, metadata, orama-db, and web) and excludes test files from code coverage reports by adding **/*.test.mjs to the .c8rc.json exclusion list.
Key Changes
- Added test files for addon-verify, llms-txt, man-page, metadata (parse and index), orama-db, and web/utils
- Updated
.c8rc.jsonto exclude test files from coverage calculation - Tests cover both successful generation scenarios and error handling
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
.c8rc.json |
Excludes test files from coverage reports |
src/generators/addon-verify/__tests__/index.test.mjs |
Tests addon verification, file generation, and error cases |
src/generators/llms-txt/__tests__/index.test.mjs |
Tests LLM text generation and file output |
src/generators/man-page/__tests__/index.test.mjs |
Tests man page generation with options and environment variables |
src/generators/metadata/__tests__/index.test.mjs |
Tests async streaming metadata generation |
src/generators/metadata/__tests__/parse.test.mjs |
Tests API doc parsing, link conversion, and transformations |
src/generators/orama-db/__tests__/generate.test.mjs |
Tests database generation with proper cleanup |
src/generators/web/utils/__tests__/utils.test.mjs |
Tests chunked require, import declarations, and CSS plugin |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #519 +/- ##
==========================================
+ Coverage 80.58% 87.55% +6.96%
==========================================
Files 119 91 -28
Lines 11906 8253 -3653
Branches 841 653 -188
==========================================
- Hits 9595 7226 -2369
+ Misses 2308 1022 -1286
- Partials 3 5 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-Authored-By: Aviv Keller <[email protected]>
Web Generator
|
Description
Adding tests for :
plus excluding test form being count in test coverage
Related Issues
Close #491
Check List
node --run testand all tests passed.node --run format&node --run lint.