-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
test(solid-start): add missing custom-basepath tests #5641
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(solid-start): add missing custom-basepath tests #5641
Conversation
WalkthroughThe PR adds three new routes to a SolidStart e2e test application with custom basepath configuration: a logout route demonstrating server function URL handling, and two redirect routes showcasing client-side and server-side redirect patterns. The generated route tree and integration tests are updated accordingly. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Browser
participant App
participant Server
rect rgb(200, 220, 240)
note over User,Server: Logout - Server Function Flow
User->>Browser: Navigate to /logout
Browser->>App: Load logout page
App->>User: Render form with server action
User->>Browser: Submit form
Browser->>Server: POST to /custom/basepath/_serverFn/...
Server->>Server: Execute logoutFn
Server->>Browser: Redirect to /
Browser->>App: Navigate to /
end
rect rgb(220, 240, 200)
note over User,Browser: Client-Side Redirect
User->>Browser: Navigate to /redirect
Browser->>App: Load redirect index
App->>User: Render link to /redirect/throw-it
User->>Browser: Click link
Browser->>App: Navigate to /redirect/throw-it
end
rect rgb(240, 220, 200)
note over Browser,App: Server-Side Redirect (beforeLoad)
Browser->>App: Load /redirect/throw-it
App->>App: Execute beforeLoad hook
App->>App: Throw redirect({ to: '/posts/1' })
App->>Browser: Redirect to /posts/1
Browser->>App: Navigate to /posts/1
App->>User: Render post view
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~15 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
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 (6)
🧰 Additional context used📓 Path-based instructions (3)**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/src/routes/**📄 CodeRabbit inference engine (AGENTS.md)
Files:
e2e/**📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧬 Code graph analysis (4)e2e/solid-start/custom-basepath/src/routes/redirect.throw-it.tsx (1)
e2e/solid-start/custom-basepath/src/routes/logout.tsx (3)
e2e/solid-start/custom-basepath/src/routes/redirect.index.tsx (2)
e2e/solid-start/custom-basepath/src/routeTree.gen.ts (1)
🔇 Additional comments (10)
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 4fc0f84
☁️ 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: |
Summary by CodeRabbit
New Features
Tests
Chores