diff --git a/packages/hydrogen/src/foundation/Router/tests/DefaultRoutes.test.tsx b/packages/hydrogen/src/foundation/Router/tests/DefaultRoutes.test.tsx index d169959e36..4fa4f2c7f8 100644 --- a/packages/hydrogen/src/foundation/Router/tests/DefaultRoutes.test.tsx +++ b/packages/hydrogen/src/foundation/Router/tests/DefaultRoutes.test.tsx @@ -44,6 +44,8 @@ it('handles index pages', () => { it('handles nested index pages', () => { const pages: ImportGlobEagerOutput = { + './pages/products/index.server.jsx': STUB_MODULE, + './pages/products/[handle].server.jsx': STUB_MODULE, './pages/blogs/index.server.jsx': STUB_MODULE, './pages/products/snowboards/fastones/index.server.jsx': STUB_MODULE, }; @@ -51,6 +53,11 @@ it('handles nested index pages', () => { const routes = createRoutesFromPages(pages); expect(routes).toEqual([ + { + path: '/products', + component: STUB_MODULE.default, + exact: true, + }, { path: '/blogs', component: STUB_MODULE.default, @@ -61,6 +68,11 @@ it('handles nested index pages', () => { component: STUB_MODULE.default, exact: true, }, + { + path: '/products/:handle', + component: STUB_MODULE.default, + exact: true, + }, ]); });