Spaces:
Sleeping
Sleeping
Commit History
-
Add support for optional Anthropic API key in test generation
This update introduces an optional parameter `anthropic_api_key`, allowing users to specify their own Anthropic API key. This enhances flexibility for users needing custom API access during test generation.2dc77a4 -
Add support for passing Anthropic API key as input
Previously, the Anthropic API key was only read from the environment. This update allows users to pass the key directly as an input, enhancing flexibility. A fallback mechanism is retained for the environment variable if no input key is provided.808ecdb -
Add support for additional system prompts in unit test generation
Introduced an optional `additional_system_prompt` parameter to enhance AI-generated Jest unit tests with customized instructions. Updated the prompt handling logic, input interface, and documentation accordingly for greater flexibility and contextual control. Extended token limits for improved response generation.f3f56ef -
Add Jest setup functionality and tabbed interface in UI
This update introduces a new feature for generating a Jest setup guide, including TypeScript integration and code coverage configuration. The UI is now enhanced with a tabbed interface, separating "Generate Unit Test" and "Setup Jest" for improved usability. Related documentation and implementation files for Jest setup have also been added.c83ce29 -
Refactor app structure and add Jest test generation feature
Reorganized the project by moving `app.py` to `src/` and introducing a Jest unit test generator with Anthropic API integration. Added new utilities, prompts, and dependencies (`python-dotenv`, `anthropic`) to support the feature. Updated `.gitignore` and documentation to reflect these changes.448c329