Add JavaScript test coverage with V8 provider and function threshold#214
Open
elevatebart wants to merge 2 commits intomainfrom
Open
Add JavaScript test coverage with V8 provider and function threshold#214elevatebart wants to merge 2 commits intomainfrom
elevatebart wants to merge 2 commits intomainfrom
Conversation
- Add sourcemap: true to tsdown config so dist files map back to source, enabling V8 coverage to attribute execution data to original source files - Add @vitest/coverage-v8 dependency to test package - Add vitest.config.js with coverage targeting javascript-sdk/src/api/**, reporting in text/html/json/lcov formats, and a 100% function threshold to enforce that every API endpoint function is called at least once - Add test:coverage scripts to both package.json files Run coverage with: npm run test:coverage (from javascript/ directory) https://claude.ai/code/session_019pdi9Bfy8Q9h4FddD9MBq2
…conflicts Replaces vitest.config.js with vitest.config.ts, matching the style and structure of the 2.0 SDK branch (double quotes, 4-space indent, environment: "node"). Adds "**/*.spec.js" alongside "**/*.spec.ts" so existing tests still run before the 2.0 migration is merged. https://claude.ai/code/session_019pdi9Bfy8Q9h4FddD9MBq2
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.
enabling V8 coverage to attribute execution data to original source files
reporting in text/html/json/lcov formats, and a 100% function threshold
to enforce that every API endpoint function is called at least once
Run coverage with: npm run test:coverage (from javascript/ directory)
https://claude.ai/code/session_019pdi9Bfy8Q9h4FddD9MBq2