Skip to content

Commit 4171eca

Browse files
committed
fix: remove logs
1 parent 5574e2d commit 4171eca

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

dev-packages/e2e-tests/test-applications/nextjs-16-tunnel/tests/tunnel-route.test.ts

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -106,46 +106,18 @@ test('Tunnel requests should not create middleware or fetch spans', async ({ pag
106106
// Continue collecting for a bit
107107
await collectPromise;
108108

109-
// Log all transactions we received with full details
110-
console.log('=== All transactions received ===');
111-
allTransactions.forEach(tx => {
112-
console.log({
113-
transaction: tx.transaction,
114-
op: tx.contexts?.trace?.op,
115-
type: tx.type,
116-
method: tx.contexts?.trace?.data?.['http.request.method'] || tx.request?.method,
117-
url: tx.contexts?.trace?.data?.['url.full'] || tx.request?.url,
118-
status: tx.contexts?.trace?.status,
119-
trace: tx.contexts?.trace,
120-
});
121-
});
122-
123109
// We should have received the pageload transaction
124110
expect(pageloadTransaction).toBeDefined();
125111
expect(pageloadTransaction.contexts?.trace?.op).toBe('pageload');
126112

127-
// Log all middleware transactions to see what methods they use
128113
const middlewareTransactions = allTransactions.filter(tx => tx.contexts?.trace?.op === 'http.server.middleware');
129114

130-
console.log('=== All middleware transactions ===', middlewareTransactions.length);
131-
middlewareTransactions.forEach(tx => {
132-
console.log({
133-
transaction: tx.transaction,
134-
op: tx.contexts?.trace?.op,
135-
method: tx.contexts?.trace?.data?.['http.request.method'],
136-
target: tx.contexts?.trace?.data?.['http.target'],
137-
data: tx.contexts?.trace?.data,
138-
});
139-
});
140-
141115
// We WILL have a middleware transaction for GET / (the pageload)
142116
// But we should NOT have middleware transactions for POST requests (tunnel route)
143117
const postMiddlewareTransactions = middlewareTransactions.filter(
144118
tx => tx.transaction?.includes('POST') || tx.contexts?.trace?.data?.['http.request.method'] === 'POST',
145119
);
146120

147-
console.log('=== POST middleware transactions ===', postMiddlewareTransactions.length);
148-
149121
expect(postMiddlewareTransactions).toHaveLength(0);
150122

151123
// We should NOT have any fetch transactions to Sentry ingest
@@ -156,14 +128,5 @@ test('Tunnel requests should not create middleware or fetch spans', async ({ pag
156128
tx.contexts?.trace?.data?.['url.full']?.includes('ingest')),
157129
);
158130

159-
console.log('=== Sentry fetch transactions ===', sentryFetchTransactions.length);
160-
sentryFetchTransactions.forEach(tx => {
161-
console.log({
162-
transaction: tx.transaction,
163-
op: tx.contexts?.trace?.op,
164-
url: tx.contexts?.trace?.data?.['url.full'],
165-
});
166-
});
167-
168131
expect(sentryFetchTransactions).toHaveLength(0);
169132
});

0 commit comments

Comments
 (0)