Commit 9b79719
committed
test(nextjs): Assert single transaction for pages-router API routes
Guards against duplicate root transactions for pages-router API routes:
Next.js's own BaseServer.handleRequest transaction and the one created by
wrapApiHandlerWithSentry must never both be sent for a single request.1 parent 550b2d8 commit 9b79719
1 file changed
Lines changed: 24 additions & 0 deletions
File tree
- dev-packages/e2e-tests/test-applications/nextjs-pages-dir/tests
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments