Skip to content

Commit cf430fe

Browse files
author
Luca Forstner
authored
Merge pull request #7336 from getsentry/lforst-thorough-nextjs13-tests
2 parents cca3fb5 + ac18f5a commit cf430fe

Some content is hidden

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

60 files changed

+625
-168
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 & 7 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.
Lines changed: 11 additions & 0 deletions
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)</h2>
7+
<button onClick={() => reset()}>Reset</button>
8+
Error: {error.toString()}
9+
</div>
10+
);
11+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
'use client';
2+
3+
export default function Layout({ children }: { children: React.ReactNode }) {
4+
return (
5+
<div style={{ border: '1px solid lightgrey', padding: '12px' }}>
6+
<h1>Layout (/client-component)</h1>
7+
{children}
8+
</div>
9+
);
10+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default function Loading() {
2+
return (
3+
<div style={{ border: '1px solid lightgrey', padding: '12px' }}>
4+
<h2>Loading (/client-component)</h2>
5+
</div>
6+
);
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default function NotFound() {
2+
return (
3+
<div style={{ border: '1px solid lightgrey', padding: '12px' }}>
4+
<h2>Not found (/client-component)</h2>;
5+
</div>
6+
);
7+
}

0 commit comments

Comments
 (0)