Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 50924ca

Browse files
committed
fix some more tests
1 parent b57a894 commit 50924ca

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

‎dev-packages/e2e-tests/test-applications/nextjs-t3/tests/trpc-error.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ test('should capture error with trpc context', async ({ page }) => {
1919

2020
expect(trpcError.exception?.values?.[0]?.mechanism).toEqual({
2121
handled: false,
22-
type: 'auto.function.nextjs.trpc',
22+
type: 'auto.rpc.trpc.middleware',
23+
exception_id: 1,
24+
parent_id: 0,
25+
source: 'cause',
2326
});
2427
});
2528

‎dev-packages/e2e-tests/test-applications/nextjs-turbo/tests/app-router/rsc-error.test.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ test('Should capture errors from server components', async ({ page }) => {
1111
const errorEvent = await errorEventPromise;
1212

1313
expect(errorEvent).toBeDefined();
14+
expect(errorEvent.exception?.values?.[0]?.mechanism).toEqual({
15+
handled: false,
16+
type: 'auto.function.nextjs.onRequestError',
17+
});
1418
});

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /