Skip to content

Commit

Permalink
Ensure feature flag is enabled in relevant tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
tofumatt committed Oct 17, 2024
1 parent 43325d4 commit 2f0fd35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/js/googlesitekit/datastore/user/key-metrics.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ import { CORE_SITE } from '../site/constants';
import { MODULES_ANALYTICS_4 } from '../../../modules/analytics-4/datastore/constants';
import * as analytics4Fixtures from '../../../modules/analytics-4/datastore/__fixtures__';
import { enabledFeatures } from '../../../features';
import { setEnabledFeatures } from '../../../../../tests/js/test-utils';

describe( 'core/user key metrics', () => {
let registry;
Expand Down Expand Up @@ -408,6 +409,7 @@ describe( 'core/user key metrics', () => {
expectedMetrics,
expectedMetricsIncludingConversionTailored
) => {
setEnabledFeatures( [ 'conversionReporting' ] );
provideUserAuthentication( registry );
await registry
.dispatch( CORE_USER )
Expand Down

0 comments on commit 2f0fd35

Please sign in to comment.