Spaces:
Sleeping
Sleeping
Commit History
-
Remove unused import and set default values for inputs.
The `password_option` import was removed as it was unused. Default values were added for `additionalSystemPrompt` and `anthropicApiKey` textboxes to improve initial UI consistency.1001313 -
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 CraftJest overview and update interface description
Introduced a detailed overview of CraftJest to provide context on its purpose and functionality, replacing the previous minimal description in the app interface. Updated supported prompts in both the README and code to improve clarity and alignment with the new features.8acaffb -
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 -
Update Jest config and clarify unit test guidelines
Removed per-file coverage thresholds from the Jest configuration for simplicity. Added a guideline to follow the "Arrange, Act, Assert" pattern when writing unit tests to ensure consistency and clarity.a474615 -
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 with Blocks and improve UI text.
Replaced `gr.Interface` with `gr.Blocks` for better layout and added a header to enhance the user interface. Updated the short description punctuation in the README for consistency.4f86387 -
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