-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
test(start): fix search-params tests #5643
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
Conversation
WalkthroughReplace indirect redirect comparison in two end-to-end tests with a direct absence check (asserting Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Test as Test Runner
participant Browser as Browser/Request
participant Page as Page under test
rect rgb(240,248,255)
Note right of Test: Issue request to Page
Test->>Browser: navigate(request)
Browser->>Page: load request
end
rect rgb(245,255,240)
Note right of Test: Check for redirect origin
Browser->>Test: redirectedFrom()
alt redirectedFrom() is null
Note right of Test: New check — assert no redirect origin
Test->>Test: expect(redirectedFrom()).toBeNull()
else redirectedFrom() not null
Note right of Test: Previous logic compared origin→target equality
Test->>Test: expect(redirectedFrom()?.redirectedTo() === request)
end
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used📓 Path-based instructions (2)**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
e2e/**📄 CodeRabbit inference engine (AGENTS.md)
Files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit 16bd1af
☁️ Nx Cloud last updated this comment at |
More templates
@tanstack/arktype-adapter
@tanstack/directive-functions-plugin
@tanstack/eslint-plugin-router
@tanstack/history
@tanstack/nitro-v2-vite-plugin
@tanstack/react-router
@tanstack/react-router-devtools
@tanstack/react-router-ssr-query
@tanstack/react-start
@tanstack/react-start-client
@tanstack/react-start-server
@tanstack/router-cli
@tanstack/router-core
@tanstack/router-devtools
@tanstack/router-devtools-core
@tanstack/router-generator
@tanstack/router-plugin
@tanstack/router-ssr-query-core
@tanstack/router-utils
@tanstack/router-vite-plugin
@tanstack/server-functions-plugin
@tanstack/solid-router
@tanstack/solid-router-devtools
@tanstack/solid-router-ssr-query
@tanstack/solid-start
@tanstack/solid-start-client
@tanstack/solid-start-server
@tanstack/start-client-core
@tanstack/start-plugin-core
@tanstack/start-server-core
@tanstack/start-static-server-functions
@tanstack/start-storage-context
@tanstack/valibot-adapter
@tanstack/virtual-file-routes
@tanstack/zod-adapter
commit: |
|
@schiller-manuel , i found that these tests had |
1798211 to
16bd1af
Compare
@schiller-manuel , i found that these tests had
toBeTruthythat weren't called, and they break if they are enabled, which is demonstrated here:I think they should just be checking
expect(request.redirectedFrom()).toBeNull()Summary by CodeRabbit