(splitType: string)
| 180 | ] as const |
| 181 | |
| 182 | function createRouteCode(splitType: string) { |
| 183 | return ` |
| 184 | import { createFileRoute } from '@tanstack/react-router' |
| 185 | |
| 186 | export const Route = createFileRoute('/')({ ${splitType} }) |
| 187 | |
| 188 | function ${splitType}() { |
| 189 | return <div>lowercase function declaration</div> |
| 190 | } |
| 191 | ` |
| 192 | } |
| 193 | |
| 194 | it.each(splitComponentCases)( |
| 195 | 'renames a lowercase $splitType binding when HMR is enabled', |