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