Skip to content

Commit

Permalink
,
Browse files Browse the repository at this point in the history
  • Loading branch information
Lms24 committed Sep 18, 2024
1 parent c4be89b commit f97a740
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { loggingTransport } = require('@sentry-internal/node-integration-tests');
const { loggingTransport, startExpressServerAndSendPortToRunner } = require('@sentry-internal/node-integration-tests');
const Sentry = require('@sentry/node');
console.log('X-4');

Expand All @@ -11,15 +11,13 @@ console.log('X-3');
// express must be required after Sentry is initialized
const express = require('express');
console.log('X-2');
const { startExpressServerAndSendPortToRunner } = require('@sentry-internal/node-integration-tests');
console.log('X-1');

const app = express();
console.log('X0');

app.get('/test', (_req, res) => {
console.log('X1');
Sentry.captureException(new Error('This is a test error'));
// Sentry.captureException(new Error('This is a test error'));
console.log('X2');
// Sentry.getClient().on('beforeEnvelope', envelope => {
// console.log('X3');
Expand Down

0 comments on commit f97a740

Please sign in to comment.