(dflt: string)
| 138 | |
| 139 | it('when a route renders the default as its layout', async () => { |
| 140 | const root = (dflt: string): Files => ({ |
| 141 | 'src/root.tsx': `export function AppRoot() { return null; }\nexport function Shell() { return null; }\nexport default ${dflt};\n`, |
| 142 | }); |
| 143 | const before = { |
| 144 | 'package.json': JSON.stringify({ name: 'app', dependencies: { react: '^18', 'react-router-dom': '^6' } }), |
| 145 | 'src/router.tsx': "import { createBrowserRouter } from 'react-router-dom';\nimport { default as AppRoot } from './root';\nimport { One } from './one';\n" + |
no outgoing calls
no test coverage detected