From 7a8c3d0f1487176a54a36d3561f82efd790d3cca Mon Sep 17 00:00:00 2001 From: MaxtuneLee Date: Sun, 2 Aug 2026 14:55:03 +0800 Subject: [PATCH] test(app-router): remove nested document tags from interception fixtures --- .../app/interception-dyn-seg/layout.tsx | 26 +++++++++---------- .../app/interception-dyn-single/layout.tsx | 8 ++---- .../[locale]/layout.tsx | 10 +++---- .../layout.tsx | 8 +----- .../layout.tsx | 8 +----- 5 files changed, 20 insertions(+), 40 deletions(-) diff --git a/tests/fixtures/app-basic/app/interception-dyn-seg/layout.tsx b/tests/fixtures/app-basic/app/interception-dyn-seg/layout.tsx index f2207ab1c5..2520a8b68f 100644 --- a/tests/fixtures/app-basic/app/interception-dyn-seg/layout.tsx +++ b/tests/fixtures/app-basic/app/interception-dyn-seg/layout.tsx @@ -13,19 +13,17 @@ export default function Layout({ const modalSegments = useSelectedLayoutSegments("modal"); return ( - - -
-
CHILDREN SLOT:
- {children} -
- - - + <> +
+
CHILDREN SLOT:
+ {children} +
+ + ); } diff --git a/tests/fixtures/app-basic/app/interception-dyn-single/layout.tsx b/tests/fixtures/app-basic/app/interception-dyn-single/layout.tsx index 74ce3b3920..7dba16223b 100644 --- a/tests/fixtures/app-basic/app/interception-dyn-single/layout.tsx +++ b/tests/fixtures/app-basic/app/interception-dyn-single/layout.tsx @@ -9,12 +9,8 @@ export default function Layout({ }) { return ( - - -
{children}
- - - +
{children}
+
); } diff --git a/tests/fixtures/app-basic/app/interception-from-root/[locale]/layout.tsx b/tests/fixtures/app-basic/app/interception-from-root/[locale]/layout.tsx index 639ad62f04..f790c611ad 100644 --- a/tests/fixtures/app-basic/app/interception-from-root/[locale]/layout.tsx +++ b/tests/fixtures/app-basic/app/interception-from-root/[locale]/layout.tsx @@ -7,11 +7,9 @@ export default async function LocaleLayout({ }) { const { locale } = await params; return ( - - -

Locale: {locale}

- {children} - - + <> +

Locale: {locale}

+ {children} + ); } diff --git a/tests/fixtures/app-basic/app/interception-routes-multiple-catchall/layout.tsx b/tests/fixtures/app-basic/app/interception-routes-multiple-catchall/layout.tsx index 73bba23b73..80937fff9a 100644 --- a/tests/fixtures/app-basic/app/interception-routes-multiple-catchall/layout.tsx +++ b/tests/fixtures/app-basic/app/interception-routes-multiple-catchall/layout.tsx @@ -1,9 +1,3 @@ export default function Layout({ children }: { children: React.ReactNode }) { - return ( - - -
{children}
- - - ); + return
{children}
; } diff --git a/tests/fixtures/app-basic/app/interception-segments-two-levels-above/layout.tsx b/tests/fixtures/app-basic/app/interception-segments-two-levels-above/layout.tsx index 73bba23b73..80937fff9a 100644 --- a/tests/fixtures/app-basic/app/interception-segments-two-levels-above/layout.tsx +++ b/tests/fixtures/app-basic/app/interception-segments-two-levels-above/layout.tsx @@ -1,9 +1,3 @@ export default function Layout({ children }: { children: React.ReactNode }) { - return ( - - -
{children}
- - - ); + return
{children}
; }