Skip to content

Commit c2d6cc7

Browse files
author
Luca Forstner
committed
ref(e2e): Make app dir tests more thorough
1 parent 621a8e3 commit c2d6cc7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1138
-428
lines changed

packages/e2e-tests/test-applications/nextjs-13-app-dir/app/client-component/page.tsx

Lines changed: 0 additions & 17 deletions
This file was deleted.

packages/e2e-tests/test-applications/nextjs-13-app-dir/app/layout.tsx

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/e2e-tests/test-applications/nextjs-13-app-dir/app/not-found.tsx

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/e2e-tests/test-applications/nextjs-13-app-dir/app/page.tsx

Lines changed: 0 additions & 22 deletions
This file was deleted.

packages/e2e-tests/test-applications/nextjs-13-app-dir/app/user/[id]/page.tsx

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/e2e-tests/test-applications/nextjs-13-app-dir/yarn.lock

Lines changed: 0 additions & 369 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'use client';
2+
3+
export default function Error({ error, reset }: { error: Error; reset: () => void }) {
4+
return (
5+
<div style={{ border: '1px solid lightgrey', padding: '12px' }}>
6+
<h2>Error (/client-component/[...parameters])</h2>
7+
<button onClick={() => reset()}>Reset</button>
8+
Error: {error.toString()}
9+
</div>
10+
);
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default function Layout({ children }: { children: React.ReactNode }) {
2+
return (
3+
<div style={{ border: '1px solid lightgrey', padding: '12px' }}>
4+
<h1>Layout (/client-component/[...parameters])</h1>
5+
{children}
6+
</div>
7+
);
8+
}

0 commit comments

Comments
 (0)