Skip to content

Commit d122d29

Browse files
committed
Copy & paste simple error
1 parent 15278de commit d122d29

File tree

5 files changed

+16
-57
lines changed

5 files changed

+16
-57
lines changed

packages/integration-tests/suites/public-api/extraerrordata/depth-option/subject.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

packages/integration-tests/suites/public-api/extraerrordata/depth-option/test.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
import * as Sentry from '@sentry/browser';
2-
import { ExtraErrorData as ExtraErrorDataIntegration } from '@sentry/integrations';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
8-
integrations: [
9-
new ExtraErrorDataIntegration({
10-
depth: 10,
11-
}),
12-
],
13-
normalizeDepth: 3,
147
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
try {
2+
throw new Error('test_simple_error');
3+
} catch (err) {
4+
Sentry.captureException(err);
5+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { expect } from '@playwright/test';
2+
import { Event } from '@sentry/types';
3+
4+
import { sentryTest } from '../../../../utils/fixtures';
5+
import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
6+
7+
sentryTest('copy paste', async ({ getLocalTestPath, page }) => {
8+
const url = await getLocalTestPath({ testDir: __dirname });
9+
const eventData = await getFirstSentryEnvelopeRequest<Event>(page, url);
10+
expect(eventData).not.toBeUndefined();
11+
});

0 commit comments

Comments
 (0)