import { describe, expect, it } from 'vitest' import { renderToStringAsync } from 'solid-js/web' import { RouterProvider, createMemoryHistory, createRootRoute, createRoute, createRouter, } from '../../src' import { ClientOnly } from '../../src/ClientOnly' import type { RouterHistory } from '../../src' function createTestRouter(initialHistory?: RouterHistory) { const history = initialHistory ?? createMemoryHistory({ initialEntries: ['/'] }) const rootRoute = createRootRoute({}) const indexRoute = createRoute({ getParentRoute: () => rootRoute, path: '/', component: () => (
Index Route