diff --git a/packages/testing/src/web/MockRouter.tsx b/packages/testing/src/web/MockRouter.tsx index 3d3aab5d1aae..feb1e66913d6 100644 --- a/packages/testing/src/web/MockRouter.tsx +++ b/packages/testing/src/web/MockRouter.tsx @@ -13,8 +13,10 @@ export * from '@redwoodjs/router/dist/index' export const routes: { [routeName: string]: () => string } = {} /** - * We overwrite the default `Router` export. - * It populates the `routes.()` utility object. + * We overwrite the default `Router` export (see jest-preset). So every import + * of @redwoodjs/router will import this Router instead + * + * This router populates the `routes.()` utility object. */ export const Router: React.FC = ({ children }) => { const flatChildArray = flattenAll(children)