feat: add integration tests for skill-driven extraction functionality#127
feat: add integration tests for skill-driven extraction functionality#127shahrear33 merged 1 commit intomainfrom
Conversation
shahrear33
commented
Feb 27, 2026
- Updated CONTRIBUTING.md to include a command for running tests specific to skill-driven extraction.
- Added a new integration test in skills.test.ts to validate the creation of a skill and its usage for batch document generation.
- Updated CONTRIBUTING.md to include a command for running tests specific to skill-driven extraction. - Added a new integration test in skills.test.ts to validate the creation of a skill and its usage for batch document generation.
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces new integration tests to ensure the robust functionality of skill-driven extraction. It includes an update to the contributing guidelines to reflect how to run these new tests, alongside a comprehensive test case that verifies the creation of a skill and its subsequent application in batch document generation. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds integration tests for the skill-driven extraction functionality and updates the contribution guide with a command to run these new tests. My review includes a suggestion to improve the clarity of the documentation and points out a significant type-safety issue in the new integration test that should be addressed by updating the relevant type definitions and implementation.
| config: { | ||
| skills: [ | ||
| { | ||
| skill_name: skill.name, | ||
| version: skill.version, | ||
| }, | ||
| ], | ||
| } as any, |
There was a problem hiding this comment.
The use of as any here is a workaround for a type mismatch and should be avoided as it compromises TypeScript's type safety. The config object is being passed a skills property which is not defined in the GenerationConfigParams type.
To address this correctly, the following changes are needed in files not included in this pull request:
- Update
GenerationConfigParamsinsrc/client/types.ts: Add the optionalskillsproperty. - Update
generatemethod insrc/client/predictions.ts: Ensure theskillsproperty from the config is passed through to the API request. The current implementation appears to filter unknown properties from theconfigobject.
I recommend including these changes in this pull request to ensure the new test is valid and type-safe.
| ```bash | ||
| # Run just the files integration tests | ||
| npm run test:integration -- tests/integration/client/files.test.ts | ||
| npm run test:integration -- --testPathPatterns="skills" -t "skill-driven extraction" |
There was a problem hiding this comment.
For better readability and consistency with other examples in this file, please add a comment explaining what this command does.
| npm run test:integration -- --testPathPatterns="skills" -t "skill-driven extraction" | |
| # Run just the skill-driven extraction integration tests | |
| npm run test:integration -- --testPathPatterns="skills" -t "skill-driven extraction" |