-
-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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/config/app.ts #5914
base: main
Are you sure you want to change the base?
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 ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5914 +/- ##
=======================================
Coverage 92.13% 92.13%
=======================================
Files 650 650
Lines 59053 59059 +6
Branches 2925 2926 +1
=======================================
+ Hits 54406 54412 +6
Misses 4647 4647
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
✅ Rebase TestGru PR Success
|
7e6c645
to
a842537
Compare
✅ Rebase TestGru PR Success
|
a842537
to
bf26a55
Compare
🔄 Rebasing Testgru per ... |
✅ Rebase TestGru PR Success
|
bf26a55
to
59f8055
Compare
🔄 Rebasing Testgru per ... |
✅ Rebase TestGru PR Success
|
…LUGINS_INDEX_URL, and vercelUrl in
🔄 Rebasing Testgru per ... |
59f8055
to
e7e46d5
Compare
Deployment failed with the following error:
|
Trigger Info
Summary
Summary
This PR introduces unit tests for the
app.ts
configuration module, ensuring the correctness of environment variable parsing and default value handling. Key changes include:Unit Tests for
getAppConfig
:Validates default configuration values.
Tests parsing of
ACCESS_CODE
and other environment variables.Ensures proper handling of boolean flags and custom font settings.
Unit Tests for URL Constants:
Verifies
vercelUrl
andAPP_URL
behavior based on environment variables.Confirms detection of the Vercel environment.
Exports:
APP_URL
,ASSISTANT_INDEX_URL
,isInVercel
,PLUGINS_INDEX_URL
, andvercelUrl
fromapp.ts
.These tests enhance the reliability of the configuration module by covering various scenarios and edge cases.
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