-
-
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/middleware.ts #5912
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 #5912 +/- ##
=========================================
Coverage 92.13% 92.13%
=========================================
Files 650 650
Lines 59053 59056 +3
Branches 2925 4285 +1360
=========================================
+ Hits 54406 54409 +3
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
|
🔄 Rebasing Testgru per ... |
462ef71
to
aac3fab
Compare
✅ Rebase TestGru PR Success
|
🔄 Rebasing Testgru per ... |
aac3fab
to
c1365a7
Compare
✅ Rebase TestGru PR Success
|
c1365a7
to
b0edad1
Compare
🔄 Rebasing Testgru per ... |
✅ Rebase TestGru PR Success
|
🔄 Rebasing Testgru per ... |
b0edad1
to
d520c5d
Compare
Deployment failed with the following error:
|
Trigger Info
Summary
This PR introduces the following changes:
Unit Test Scaffolding for Middleware:
Added a new test file
middleware.test.ts
to begin testing middleware functionality.Included two test cases (
should identify protected routes
andshould identify unprotected routes
) that are currently skipped due to unresolved module import issues.Export
isProtectedRoute
:middleware.ts
to explicitly export theisProtectedRoute
function, enabling its use in other parts of the codebase or for testing purposes.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