diff --git a/packages/browser/src/browser/__tests__/inspector.integration.test.ts b/packages/browser/src/browser/__tests__/inspector.integration.test.ts index f8f7a1d3b..a5b8df713 100644 --- a/packages/browser/src/browser/__tests__/inspector.integration.test.ts +++ b/packages/browser/src/browser/__tests__/inspector.integration.test.ts @@ -55,7 +55,7 @@ describe('Inspector', () => { await deliveryPromise - expect(enrichedFn).toHaveBeenCalledTimes(1) // will be called once for every before or enrichment plugin. + expect(enrichedFn).toHaveBeenCalledTimes(2) // will be called once for every before or enrichment plugin. expect(deliveredFn).toHaveBeenCalledTimes(1) }) diff --git a/packages/browser/src/browser/__tests__/integration.test.ts b/packages/browser/src/browser/__tests__/integration.test.ts index 968421095..f66471157 100644 --- a/packages/browser/src/browser/__tests__/integration.test.ts +++ b/packages/browser/src/browser/__tests__/integration.test.ts @@ -614,6 +614,7 @@ describe('Dispatch', () => { "message_dispatched", "plugin_time", "plugin_time", + "plugin_time", "message_delivered", "plugin_time", "delivered", diff --git a/packages/browser/src/browser/index.ts b/packages/browser/src/browser/index.ts index af47eb4ce..dd70fceab 100644 --- a/packages/browser/src/browser/index.ts +++ b/packages/browser/src/browser/index.ts @@ -30,6 +30,7 @@ import { ClassicIntegrationSource } from '../plugins/ajs-destination/types' import { attachInspector } from '../core/inspector' import { Stats } from '../core/stats' import { setGlobalAnalyticsKey } from '../lib/global-analytics-helper' +import { pageEnrichment } from '../plugins/page-enrichment' export interface LegacyIntegrationConfiguration { /* @deprecated - This does not indicate browser types anymore */ @@ -245,6 +246,7 @@ async function registerPlugins( ).catch(() => []) const toRegister = [ + pageEnrichment, validation, ...plugins, ...legacyDestinations,