MCPcopy
hub / github.com/TanStack/router / buildUrl

Function buildUrl

e2e/solid-start/css-modules/tests/css.spec.ts:18–20  ·  view source on GitHub ↗
(baseURL: string, path: string)

Source from the content-addressed store, hash-verified

16 // Playwright's goto with absolute paths (like '/modules') ignores baseURL's path portion
17 // So we need to manually construct the full URL
18 const buildUrl = (baseURL: string, path: string) => {
19 return baseURL.replace(/\/$/, '') + path
20 }
21
22 test.describe('with JavaScript disabled', () => {
23 test.use({ javaScriptEnabled: false, whitelistErrors })

Callers 1

css.spec.tsFile · 0.70

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected