Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Sep 26, 2023
1 parent e1a6cd0 commit f24219d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

Expand Down
1 change: 1 addition & 0 deletions packages/browser/src/browser/__tests__/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@ describe('Dispatch', () => {
"message_dispatched",
"plugin_time",
"plugin_time",
"plugin_time",
"message_delivered",
"plugin_time",
"delivered",
Expand Down
2 changes: 2 additions & 0 deletions packages/browser/src/browser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -245,6 +246,7 @@ async function registerPlugins(
).catch(() => [])

const toRegister = [
pageEnrichment,
validation,
...plugins,
...legacyDestinations,
Expand Down

0 comments on commit f24219d

Please sign in to comment.