diff --git a/test/production/app-dir/build-output-tree-view/build-output-tree-view.test.ts b/test/production/app-dir/build-output-tree-view/build-output-tree-view.test.ts index 3759eb8190375..11ff33f383148 100644 --- a/test/production/app-dir/build-output-tree-view/build-output-tree-view.test.ts +++ b/test/production/app-dir/build-output-tree-view/build-output-tree-view.test.ts @@ -22,7 +22,8 @@ describe('build-output-tree-view', () => { ├ ƒ /api N/A kB N/A kB ├ ○ /api/force-static N/A kB N/A kB ├ ○ /app-static N/A kB N/A kB - ├ ○ /cache-life N/A kB N/A kB 1h 1d + ├ ○ /cache-life-custom N/A kB N/A kB ≈7m ≈2h + ├ ○ /cache-life-hours N/A kB N/A kB 1h 1d ├ ƒ /dynamic N/A kB N/A kB ├ ◐ /ppr/[slug] N/A kB N/A kB 1w 30d ├ ├ /ppr/[slug] 1w 30d diff --git a/test/production/app-dir/build-output-tree-view/fixtures/mixed/app/cache-life-custom/page.tsx b/test/production/app-dir/build-output-tree-view/fixtures/mixed/app/cache-life-custom/page.tsx new file mode 100644 index 0000000000000..f4776c4d57d8a --- /dev/null +++ b/test/production/app-dir/build-output-tree-view/fixtures/mixed/app/cache-life-custom/page.tsx @@ -0,0 +1,9 @@ +'use cache' + +import { unstable_cacheLife } from 'next/cache' + +export default async function Page() { + unstable_cacheLife({ revalidate: 412, expire: 8940 }) + + return

hello world

+} diff --git a/test/production/app-dir/build-output-tree-view/fixtures/mixed/app/cache-life/page.tsx b/test/production/app-dir/build-output-tree-view/fixtures/mixed/app/cache-life-hours/page.tsx similarity index 100% rename from test/production/app-dir/build-output-tree-view/fixtures/mixed/app/cache-life/page.tsx rename to test/production/app-dir/build-output-tree-view/fixtures/mixed/app/cache-life-hours/page.tsx