Enhance testing utilitie and add CI gh action#13
Merged
Conversation
Owner
AmineAfia
commented
Oct 23, 2025
- Introduced internal testing utilities in `testHelpers.ts` for mock executor configurations and running tests with mock executors. - Updated `PromptWithTests` to allow default empty executor configurations and added convenience handling for single executor parameters. - Modified test cases to utilize the new testing utilities, improving flexibility in test execution. - Updated related types to support new executor options in test configurations.
- Updated `basic-usage.ts` to access `systemPrompt` directly instead of using bracket notation. - Enhanced type definitions in `VercelAIExecutor.ts` for better clarity on tool descriptions. - Improved type handling in `zodToJsonSchema.ts` by specifying more precise types for schema definitions and results. - Adjusted `analytics.test.ts` to use more explicit types for instance management and circular reference handling.
- Reformatted `package.json` files for improved readability and consistency in indentation. - Updated example files to ensure consistent formatting and removed unnecessary newlines. - Enhanced code clarity in `basic-usage.ts`, `tool-integration.ts`, and other example files by standardizing console log statements. - Cleaned up trailing whitespace in various files to maintain code quality.
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.