Skip to content

Commit 0612a03

Browse files
committed
fix test errors
1 parent 5ff3dbb commit 0612a03

File tree

9 files changed

+37
-10
lines changed

9 files changed

+37
-10
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import * as Sentry from '@sentry/browser';
2+
import { contextLinesIntegration } from '@sentry/browser';
23

34
window.Sentry = Sentry;
45

56
Sentry.init({
67
dsn: 'https://[email protected]/1337',
7-
integrations: [Sentry.contextLinesIntegration()],
8+
integrations: [contextLinesIntegration()],
89
});
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import * as Sentry from '@sentry/browser';
2+
import { httpClientIntegration } from '@sentry/browser';
23

34
window.Sentry = Sentry;
45

56
Sentry.init({
67
dsn: 'https://[email protected]/1337',
7-
integrations: [Sentry.httpClientIntegration()],
8+
integrations: [httpClientIntegration()],
89
tracesSampleRate: 1,
910
sendDefaultPii: true,
1011
});
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import * as Sentry from '@sentry/browser';
2+
import { httpClientIntegration } from '@sentry/browser';
23

34
window.Sentry = Sentry;
45

56
Sentry.init({
67
dsn: 'https://[email protected]/1337',
7-
integrations: [Sentry.httpClientIntegration()],
8+
integrations: [httpClientIntegration()],
89
tracesSampleRate: 1,
910
sendDefaultPii: true,
1011
});
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import * as Sentry from '@sentry/browser';
2+
import { httpClientIntegration } from '@sentry/browser';
23

34
window.Sentry = Sentry;
45

56
Sentry.init({
67
dsn: 'https://[email protected]/1337',
7-
integrations: [Sentry.httpClientIntegration()],
8+
integrations: [httpClientIntegration()],
89
tracesSampleRate: 1,
910
sendDefaultPii: true,
1011
});

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,17 @@ function generateSentryAlias(): Record<string, string> {
129129

130130
return Object.fromEntries(
131131
packageNames.map(packageName => {
132+
// pluggable integrations exist in the browser package
133+
const actPackageName = packageName === 'integrations' ? 'browser' : packageName;
134+
132135
const packageJSON: Package = JSON.parse(
133-
fs.readFileSync(path.resolve(PACKAGES_DIR, packageName, 'package.json'), { encoding: 'utf-8' }).toString(),
136+
fs.readFileSync(path.resolve(PACKAGES_DIR, actPackageName, 'package.json'), { encoding: 'utf-8' }).toString(),
134137
);
135138

136-
const modulePath = path.resolve(PACKAGES_DIR, packageName);
139+
const modulePath = path.resolve(PACKAGES_DIR, actPackageName);
137140

138-
if (useCompiledModule && bundleKey && BUNDLE_PATHS[packageName]?.[bundleKey]) {
139-
const bundlePath = path.resolve(modulePath, BUNDLE_PATHS[packageName][bundleKey]);
141+
if (useCompiledModule && bundleKey && BUNDLE_PATHS[actPackageName]?.[bundleKey]) {
142+
const bundlePath = path.resolve(modulePath, BUNDLE_PATHS[actPackageName][bundleKey]);
140143

141144
return [packageJSON['name'], bundlePath];
142145
}
@@ -241,7 +244,7 @@ class SentryScenarioGenerationPlugin {
241244
this.localOutPath,
242245
path.resolve(
243246
PACKAGES_DIR,
244-
'integrations',
247+
'browser',
245248
BUNDLE_PATHS['integrations'][integrationBundleKey].replace('[INTEGRATION_NAME]', integration),
246249
),
247250
fileName,

packages/bun/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ export {
7373
inboundFiltersIntegration,
7474
linkedErrorsIntegration,
7575
requestDataIntegration,
76+
captureConsoleIntegration,
77+
debugIntegration,
78+
dedupeIntegration,
79+
extraErrorDataIntegration,
80+
rewriteFramesIntegration,
81+
sessionTimingIntegration,
7682
parameterize,
7783
startSession,
7884
captureSession,

packages/core/test/lib/integrations/captureconsole.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
originalConsoleMethods,
99
resetInstrumentationHandlers,
1010
} from '@sentry/utils';
11-
import * as CurrentScopes from '../../../src/currentscopes';
11+
import * as CurrentScopes from '../../../src/currentScopes';
1212
import * as SentryCore from '../../../src/exports';
1313

1414
import { captureConsoleIntegration } from '../../../src/integrations/captureconsole';

packages/deno/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ export {
7171
linkedErrorsIntegration,
7272
functionToStringIntegration,
7373
requestDataIntegration,
74+
captureConsoleIntegration,
75+
debugIntegration,
76+
extraErrorDataIntegration,
77+
rewriteFramesIntegration,
78+
sessionTimingIntegration,
7479
SEMANTIC_ATTRIBUTE_SENTRY_OP,
7580
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
7681
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,

packages/serverless/src/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,12 @@ export {
9898
endSession,
9999
withActiveSpan,
100100
} from '@sentry/node-experimental';
101+
102+
export {
103+
captureConsoleIntegration,
104+
debugIntegration,
105+
dedupeIntegration,
106+
extraErrorDataIntegration,
107+
rewriteFramesIntegration,
108+
sessionTimingIntegration,
109+
} from '@sentry/core';

0 commit comments

Comments
 (0)