(body: string)
| 1338 | let root: string; |
| 1339 | let cg: CodeGraph; |
| 1340 | const app = (body: string) => `import { Route, Routes } from 'react-router-dom'; |
| 1341 | import AppRoutes from './AppRoutes'; |
| 1342 | import { Counter } from './Counter'; |
| 1343 | |
| 1344 | export default function App() { |
| 1345 | return ( |
| 1346 | <Routes> |
| 1347 | ${body} |
| 1348 | </Routes> |
| 1349 | ); |
| 1350 | } |
| 1351 | `; |
| 1352 | const MAPPED = app('{AppRoutes.map(({ element, ...rest }, index) => <Route key={index} {...rest} element={element} />)}'); |
| 1353 | const table = (extra: string) => `import { Counter } from './Counter'; |
| 1354 | import { Home } from './Home'; |
no outgoing calls
no test coverage detected