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

Function buildUrl

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

Source from the content-addressed store, hash-verified

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

Callers 1

css.spec.tsFile · 0.70

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected