-
-
Notifications
You must be signed in to change notification settings - Fork 11.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: add unit test for src/store/user/slices/modelList/selectors/keyVaults.ts #5733
base: main
Are you sure you want to change the base?
test: add unit test for src/store/user/slices/modelList/selectors/keyVaults.ts #5733
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
👍 @gru-agent[bot] Thank you for raising your pull request and contributing to our Community |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5733 +/- ##
==========================================
+ Coverage 92.11% 92.28% +0.16%
==========================================
Files 648 646 -2
Lines 58199 58020 -179
Branches 2913 2713 -200
==========================================
- Hits 53612 53541 -71
+ Misses 4587 4479 -108
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…ctors-keyVaults.ts-1738674536186
TestGru AssignmentSummary
Files
Tip You can |
Trigger Info
Summary
This PR enhances the test coverage and functionality of the
keyVaultsConfigSelectors
module. Key updates include:Test Enhancements:
Added tests for the
keyVaultsSettings
selector to ensure it returns an empty object when no settings are provided.Added tests for
providerConfigs
to validate configurations for all providers (openai
,azure
,bedrock
,ollama
,cloudflare
).Added tests for the
password
selector to confirm it retrieves the password from settings or returns an empty string if no password is set.Export Updates:
azureConfig
,bedrockConfig
,cloudflareConfig
,getVaultByProvider
,isProviderApiKeyNotEmpty
,isProviderEndpointNotEmpty
,ollamaConfig
,openAIConfig
,password
) for broader usability.These changes improve the robustness and maintainability of the
keyVaultsConfigSelectors
module by ensuring comprehensive test coverage and clear exports.Tip
You can
@gru-agent
and leave your feedback. TestGru will make adjustments based on your inputTip
You can
@gru-agent rebase
to rebase the PR.Tip
You can
@gru-agent redo
to reset or rebase before redoing the PR.Tip
To modify the test code yourself, click here Edit Test Code