All files / features / runs routes.tsx

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22      69x   69x                                
import type { RouteObject } from 'react-router-dom'
import { RunsPage } from './RunsPage'
import { RunDetailPage } from './RunDetailPage'
import { CrudRoute } from '@/layers/L2W/routes/CrudRoute'
 
export const routes: RouteObject[] = [
  {
    path: 'runs',
    element: <RunsPage />,
    children: [
      { path: 'add', element: <CrudRoute owner="runs" mode="add" /> },
    ],
  },
  {
    path: 'runs/:id',
    element: <RunDetailPage />,
    children: [
      { path: 're-run', element: <CrudRoute owner="runs" mode="add" /> },
    ],
  },
]