Skip to content

Commit 7b3382f

Browse files
committed
make shouldSkipLaunchDarklyTest to be generic for feature flags
1 parent be9ccc2 commit 7b3382f

File tree

3 files changed

+6
-6
lines changed
  • dev-packages/browser-integration-tests

3 files changed

+6
-6
lines changed

dev-packages/browser-integration-tests/suites/integrations/featureFlags/launchdarkly/basic/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { expect } from '@playwright/test';
22

33
import { sentryTest } from '../../../../../utils/fixtures';
44

5-
import { envelopeRequestParser, shouldSkipLaunchDarklyTest, waitForErrorRequest } from '../../../../../utils/helpers';
5+
import { envelopeRequestParser, shouldSkipFeatureFlagsTest, waitForErrorRequest } from '../../../../../utils/helpers';
66

77
const FLAG_BUFFER_SIZE = 100; // Corresponds to constant in featureFlags.ts, in browser utils.
88

99
sentryTest('Basic test with eviction, update, and no async tasks', async ({ getLocalTestPath, page }) => {
10-
if (shouldSkipLaunchDarklyTest()) {
10+
if (shouldSkipFeatureFlagsTest()) {
1111
sentryTest.skip();
1212
}
1313

dev-packages/browser-integration-tests/suites/integrations/featureFlags/launchdarkly/withScope/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { expect } from '@playwright/test';
22

33
import { sentryTest } from '../../../../../utils/fixtures';
44

5-
import { envelopeRequestParser, shouldSkipLaunchDarklyTest, waitForErrorRequest } from '../../../../../utils/helpers';
5+
import { envelopeRequestParser, shouldSkipFeatureFlagsTest, waitForErrorRequest } from '../../../../../utils/helpers';
66

77
import type { Scope } from '@sentry/browser';
88

99
sentryTest('Flag evaluations in forked scopes are stored separately.', async ({ getLocalTestPath, page }) => {
10-
if (shouldSkipLaunchDarklyTest()) {
10+
if (shouldSkipFeatureFlagsTest()) {
1111
sentryTest.skip();
1212
}
1313

dev-packages/browser-integration-tests/utils/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,13 @@ export function shouldSkipMetricsTest(): boolean {
274274
}
275275

276276
/**
277-
* We can only test the launchdarkly browser integration in certain bundles/packages:
277+
* We only test feature flags integrations in certain bundles/packages:
278278
* - NPM (ESM, CJS)
279279
* - Not CDNs.
280280
*
281281
* @returns `true` if we should skip the launchdarkly test
282282
*/
283-
export function shouldSkipLaunchDarklyTest(): boolean {
283+
export function shouldSkipFeatureFlagsTest(): boolean {
284284
const bundle = process.env.PW_BUNDLE as string | undefined;
285285
return bundle != null && !bundle.includes('esm') && !bundle.includes('cjs');
286286
}

0 commit comments

Comments
 (0)