Skip to content

Commit 8feb87c

Browse files
committed
Remove snapshot testing.
1 parent 54f658e commit 8feb87c

File tree

6 files changed

+39
-403
lines changed

6 files changed

+39
-403
lines changed

packages/node-integration-tests/suites/send-event/capture-exception/__snapshots__/test.ts.snap

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

packages/node-integration-tests/suites/send-event/capture-exception/scenario.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Sentry.init({
55
release: '1.0',
66
});
77

8-
Sentry.captureException('Error');
8+
Sentry.captureException('Captured Error');
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
import { getEventRequest, runServer, updateForSnapshot } from '../../../utils';
1+
import { assertSentryEvent, getEventRequest, runServer } from '../../../utils';
22

33
test('should send captureException', async () => {
44
const url = await runServer(__dirname);
55
const requestBody = await getEventRequest(url);
66

7-
expect(updateForSnapshot(requestBody)).toMatchSnapshot();
7+
assertSentryEvent(requestBody, {
8+
exception: {
9+
values: [
10+
{
11+
type: 'Error',
12+
value: 'Captured Error',
13+
},
14+
],
15+
},
16+
});
817
});

packages/node-integration-tests/suites/send-event/capture-message/__snapshots__/test.ts.snap

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

0 commit comments

Comments
 (0)