Skip to content

Commit 2f8b5e6

Browse files
committed
Skip bundle tests per file
1 parent 0ae2ed4 commit 2f8b5e6

File tree

2 files changed

+15
-30
lines changed
  • dev-packages/browser-integration-tests/suites/integrations/supabase

2 files changed

+15
-30
lines changed

dev-packages/browser-integration-tests/suites/integrations/supabase/auth/test.ts

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,18 @@ async function mockSupabaseAuthRoutesFailure(page: Page) {
6666
});
6767
}
6868

69+
70+
const bundle = process.env.PW_BUNDLE || '';
71+
// We only want to run this in non-CDN bundle mode
72+
if (bundle.startsWith('bundle')) {
73+
sentryTest.skip();
74+
}
75+
6976
sentryTest('should capture Supabase authentication spans', async ({ getLocalTestUrl, page }) => {
7077
if (shouldSkipTracingTest()) {
7178
return;
7279
}
7380

74-
const bundle = process.env.PW_BUNDLE || '';
75-
// We only want to run this in non-CDN bundle mode
76-
if (bundle.startsWith('bundle')) {
77-
sentryTest.skip();
78-
}
79-
8081
await mockSupabaseAuthRoutesSuccess(page);
8182

8283
const url = await getLocalTestUrl({ testDir: __dirname });
@@ -119,12 +120,6 @@ sentryTest('should capture Supabase authentication errors', async ({ getLocalTes
119120
return;
120121
}
121122

122-
const bundle = process.env.PW_BUNDLE || '';
123-
// We only want to run this in non-CDN bundle mode
124-
if (bundle.startsWith('bundle')) {
125-
sentryTest.skip();
126-
}
127-
128123
await mockSupabaseAuthRoutesFailure(page);
129124

130125
const url = await getLocalTestUrl({ testDir: __dirname });

dev-packages/browser-integration-tests/suites/integrations/supabase/db-operations/test.ts

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,19 @@ async function mockSupabaseRoute(page: Page) {
1919
});
2020
}
2121

22+
23+
const bundle = process.env.PW_BUNDLE || '';
24+
// We only want to run this in non-CDN bundle mode
25+
if (bundle.startsWith('bundle')) {
26+
sentryTest.skip();
27+
}
28+
29+
2230
sentryTest('should capture Supabase database operation breadcrumbs', async ({ getLocalTestUrl, page }) => {
2331
if (shouldSkipTracingTest()) {
2432
return;
2533
}
2634

27-
const bundle = process.env.PW_BUNDLE || '';
28-
// We only want to run this in non-CDN bundle mode
29-
if (bundle.startsWith('bundle')) {
30-
sentryTest.skip();
31-
}
32-
3335
await mockSupabaseRoute(page);
3436

3537
const url = await getLocalTestUrl({ testDir: __dirname });
@@ -51,12 +53,6 @@ sentryTest('should capture multiple Supabase operations in sequence', async ({ g
5153
return;
5254
}
5355

54-
const bundle = process.env.PW_BUNDLE || '';
55-
// We only want to run this in non-CDN bundle mode
56-
if (bundle.startsWith('bundle')) {
57-
sentryTest.skip();
58-
}
59-
6056
await mockSupabaseRoute(page);
6157

6258
const url = await getLocalTestUrl({ testDir: __dirname });
@@ -77,12 +73,6 @@ sentryTest('should include correct data payload in Supabase breadcrumbs', async
7773
return;
7874
}
7975

80-
const bundle = process.env.PW_BUNDLE || '';
81-
// We only want to run this in non-CDN bundle mode
82-
if (bundle.startsWith('bundle')) {
83-
sentryTest.skip();
84-
}
85-
8676
await mockSupabaseRoute(page);
8777

8878
const url = await getLocalTestUrl({ testDir: __dirname });

0 commit comments

Comments
 (0)