Skip to content

Commit d7df494

Browse files
committed
check for minified bundles
1 parent ffccdc1 commit d7df494

File tree

1 file changed

+2
-2
lines changed
  • dev-packages/browser-integration-tests/suites/profiling/legacyMode

1 file changed

+2
-2
lines changed

dev-packages/browser-integration-tests/suites/profiling/legacyMode/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ sentryTest('sends profile envelope in legacy mode', async ({ page, getLocalTestU
8585

8686
const functionNames = profile.frames.map(frame => frame.function).filter(name => name !== '');
8787

88-
if (!(process.env.PW_BUNDLE || '').startsWith('bundle')) {
89-
// In bundled mode, function names are minified
88+
if ((process.env.PW_BUNDLE || '').endsWith('min')) {
89+
// Function names are minified in minified bundles
9090
expect(functionNames.length).toBeGreaterThan(0);
9191
expect((functionNames as string[]).every(name => name?.length > 0)).toBe(true); // Just make sure they're not empty strings
9292
} else {

0 commit comments

Comments
 (0)