Skip to content

Commit 9742f9e

Browse files
authored
test(nextjs): Fix proxy/middleware test (#17970)
closes #17968 closes #17967
1 parent 24ecd3a commit 9742f9e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ test('Faulty middlewares', async ({ request }) => {
4848
// Assert that isolation scope works properly
4949
expect(errorEvent.tags?.['my-isolated-tag']).toBe(true);
5050
expect(errorEvent.tags?.['my-global-scope-isolated-tag']).not.toBeDefined();
51-
// this differs between webpack and turbopack
52-
expect(['middleware GET', '/middleware']).toContain(errorEvent.transaction);
51+
expect([
52+
'middleware GET', // non-otel webpack versions
53+
'/middleware', // middleware file
54+
'/proxy', // proxy file
55+
]).toContain(errorEvent.transaction);
5356
});
5457
});
5558

0 commit comments

Comments
 (0)