Skip to content

Commit 8c5ebc0

Browse files
committed
fix tests
1 parent 0a6730a commit 8c5ebc0

File tree

1 file changed

+4
-2
lines changed
  • packages/astro/src/client

1 file changed

+4
-2
lines changed

packages/astro/src/client/sdk.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ export function init(options: BrowserOptions): void {
3030
}
3131

3232
function getDefaultIntegrations(options: BrowserOptions): Integration[] | undefined {
33+
const defaultIntegrations = [...getBrowserDefaultIntegrations(options)];
34+
3335
// This evaluates to true unless __SENTRY_TRACING__ is text-replaced with "false",
3436
// in which case everything inside will get treeshaken away
3537
if (typeof __SENTRY_TRACING__ === 'undefined' || __SENTRY_TRACING__) {
3638
if (hasTracingEnabled(options)) {
37-
return [...getBrowserDefaultIntegrations(options), browserTracingIntegration()];
39+
return [...defaultIntegrations, browserTracingIntegration()];
3840
}
3941
}
4042

41-
return undefined;
43+
return defaultIntegrations;
4244
}

0 commit comments

Comments
 (0)