Skip to content

Commit d5cda61

Browse files
committed
keep tests
1 parent 3857219 commit d5cda61

6 files changed

+50
-15
lines changed
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import { replayIntegrationShim } from '@sentry-internal/integration-shims';
2-
import { feedbackIntegration } from '@sentry/browser';
2+
import { feedbackIntegration, feedbackModalIntegration, feedbackScreenshotIntegration } from '@sentry/browser';
33

4-
import * as TracingReplayBundle from '../../src/index.bundle.feedback';
4+
import * as FeedbackBundle from '../../src/index.bundle.feedback';
55

66
describe('index.bundle.feedback', () => {
77
it('has correct exports', () => {
8-
expect(TracingReplayBundle.replayIntegration).toBe(replayIntegrationShim);
9-
expect(TracingReplayBundle.feedbackIntegration).toBe(feedbackIntegration);
8+
expect(FeedbackBundle.replayIntegration).toBe(replayIntegrationShim);
9+
expect(FeedbackBundle.feedbackIntegration).toBe(feedbackIntegration);
10+
expect(FeedbackBundle.feedbackModalIntegration).toBe(feedbackModalIntegration);
11+
expect(FeedbackBundle.feedbackScreenshotIntegration).toBe(feedbackScreenshotIntegration);
1012
});
1113
});
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1-
import { feedbackIntegrationShim } from '@sentry-internal/integration-shims';
1+
import {
2+
feedbackIntegrationShim,
3+
feedbackModalIntegrationShim,
4+
feedbackScreenshotIntegrationShim,
5+
} from '@sentry-internal/integration-shims';
26
import { replayIntegration } from '@sentry/browser';
37

4-
import * as TracingReplayBundle from '../../src/index.bundle.replay';
8+
import * as ReplayBundle from '../../src/index.bundle.replay';
59

610
describe('index.bundle.replay', () => {
711
it('has correct exports', () => {
8-
expect(TracingReplayBundle.replayIntegration).toBe(replayIntegration);
9-
expect(TracingReplayBundle.feedbackIntegration).toBe(feedbackIntegrationShim);
12+
expect(ReplayBundle.replayIntegration).toBe(replayIntegration);
13+
expect(ReplayBundle.feedbackIntegration).toBe(feedbackIntegrationShim);
14+
expect(ReplayBundle.feedbackModalIntegration).toBe(feedbackModalIntegrationShim);
15+
expect(ReplayBundle.feedbackScreenshotIntegration).toBe(feedbackScreenshotIntegrationShim);
1016
});
1117
});
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
import { feedbackIntegrationShim, replayIntegrationShim } from '@sentry-internal/integration-shims';
1+
import {
2+
feedbackIntegrationShim,
3+
feedbackModalIntegrationShim,
4+
feedbackScreenshotIntegrationShim,
5+
replayIntegrationShim,
6+
} from '@sentry-internal/integration-shims';
27

3-
import * as TracingBundle from '../../src/index.bundle';
8+
import * as Bundle from '../../src/index.bundle';
49

510
describe('index.bundle', () => {
611
it('has correct exports', () => {
7-
expect(TracingBundle.replayIntegration).toBe(replayIntegrationShim);
8-
expect(TracingBundle.feedbackIntegration).toBe(feedbackIntegrationShim);
12+
expect(Bundle.replayIntegration).toBe(replayIntegrationShim);
13+
expect(Bundle.feedbackIntegration).toBe(feedbackIntegrationShim);
14+
expect(Bundle.feedbackModalIntegration).toBe(feedbackModalIntegrationShim);
15+
expect(Bundle.feedbackScreenshotIntegration).toBe(feedbackScreenshotIntegrationShim);
916
});
1017
});
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import { browserTracingIntegration } from '@sentry-internal/browser-utils';
2-
import { feedbackIntegration, replayIntegration } from '@sentry/browser';
2+
import {
3+
feedbackIntegration,
4+
feedbackModalIntegration,
5+
feedbackScreenshotIntegration,
6+
replayIntegration,
7+
} from '@sentry/browser';
38

49
import * as TracingReplayFeedbackBundle from '../../src/index.bundle.tracing.replay.feedback';
510

@@ -8,5 +13,7 @@ describe('index.bundle.tracing.replay.feedback', () => {
813
expect(TracingReplayFeedbackBundle.replayIntegration).toBe(replayIntegration);
914
expect(TracingReplayFeedbackBundle.browserTracingIntegration).toBe(browserTracingIntegration);
1015
expect(TracingReplayFeedbackBundle.feedbackIntegration).toBe(feedbackIntegration);
16+
expect(TracingReplayFeedbackBundle.feedbackModalIntegration).toBe(feedbackModalIntegration);
17+
expect(TracingReplayFeedbackBundle.feedbackScreenshotIntegration).toBe(feedbackScreenshotIntegration);
1118
});
1219
});

packages/browser/test/unit/index.bundle.tracing.replay.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import { browserTracingIntegration } from '@sentry-internal/browser-utils';
2-
import { feedbackIntegrationShim } from '@sentry-internal/integration-shims';
2+
import {
3+
feedbackIntegrationShim,
4+
feedbackModalIntegrationShim,
5+
feedbackScreenshotIntegrationShim,
6+
} from '@sentry-internal/integration-shims';
37
import { replayIntegration } from '@sentry/browser';
48

59
import * as TracingReplayBundle from '../../src/index.bundle.tracing.replay';
@@ -11,5 +15,7 @@ describe('index.bundle.tracing.replay', () => {
1115
expect(TracingReplayBundle.browserTracingIntegration).toBe(browserTracingIntegration);
1216

1317
expect(TracingReplayBundle.feedbackIntegration).toBe(feedbackIntegrationShim);
18+
expect(TracingReplayBundle.feedbackModalIntegration).toBe(feedbackModalIntegrationShim);
19+
expect(TracingReplayBundle.feedbackScreenshotIntegration).toBe(feedbackScreenshotIntegrationShim);
1420
});
1521
});
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import { browserTracingIntegration } from '@sentry-internal/browser-utils';
2-
import { feedbackIntegrationShim, replayIntegrationShim } from '@sentry-internal/integration-shims';
2+
import {
3+
feedbackIntegrationShim,
4+
feedbackModalIntegrationShim,
5+
feedbackScreenshotIntegrationShim,
6+
replayIntegrationShim,
7+
} from '@sentry-internal/integration-shims';
38

49
import * as TracingBundle from '../../src/index.bundle.tracing';
510

@@ -8,5 +13,7 @@ describe('index.bundle.tracing', () => {
813
expect(TracingBundle.replayIntegration).toBe(replayIntegrationShim);
914
expect(TracingBundle.browserTracingIntegration).toBe(browserTracingIntegration);
1015
expect(TracingBundle.feedbackIntegration).toBe(feedbackIntegrationShim);
16+
expect(TracingBundle.feedbackModalIntegration).toBe(feedbackModalIntegrationShim);
17+
expect(TracingBundle.feedbackScreenshotIntegration).toBe(feedbackScreenshotIntegrationShim);
1118
});
1219
});

0 commit comments

Comments
 (0)