Skip to content

Commit 61243cd

Browse files
committed
only run for non-cdn bundles
1 parent f225a3b commit 61243cd

File tree

1 file changed

+3
-2
lines changed
  • dev-packages/browser-integration-tests/suites/integrations/viewHierarchy

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import { sentryTest } from '../../../utils/fixtures';
44
import { getMultipleSentryEnvelopeRequests, envelopeParser, shouldSkipTracingTest } from '../../../utils/helpers';
55

66
sentryTest('Captures view hierarchy as attachment', async ({ getLocalTestUrl, page }) => {
7-
if (shouldSkipTracingTest()) {
8-
return;
7+
const bundle = process.env.PW_BUNDLE;
8+
if (bundle != null && !bundle.includes('esm') && !bundle.includes('cjs')) {
9+
sentryTest.skip();
910
}
1011

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

0 commit comments

Comments
 (0)