Skip to content

Commit fd1ef57

Browse files
committed
streamline e2e tests..?
1 parent 7eb5151 commit fd1ef57

File tree

7 files changed

+25
-30
lines changed

7 files changed

+25
-30
lines changed

dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/app/entry.server.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
import './tracing';
1+
import * as Sentry from '@sentry/remix';
2+
3+
Sentry.init({
4+
tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!
5+
environment: 'qa', // dynamic sampling bias to keep transactions
6+
dsn: process.env.E2E_TEST_DSN,
7+
// Performance Monitoring
8+
});
29

310
import { PassThrough } from 'node:stream';
411

512
import type { AppLoadContext, EntryContext } from '@remix-run/node';
613
import { createReadableStreamFromReadable } from '@remix-run/node';
714
import { installGlobals } from '@remix-run/node';
815
import { RemixServer } from '@remix-run/react';
9-
import * as Sentry from '@sentry/remix';
1016
import * as isbotModule from 'isbot';
1117
import { renderToPipeableStream } from 'react-dom/server';
1218

dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/app/tracing.tsx

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

dev-packages/e2e-tests/test-applications/create-remix-app-v2/app/entry.server.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
import './tracing';
1+
import * as Sentry from '@sentry/remix';
2+
3+
Sentry.init({
4+
tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!
5+
environment: 'qa', // dynamic sampling bias to keep transactions
6+
dsn: process.env.E2E_TEST_DSN,
7+
// Performance Monitoring
8+
});
29

310
/**
411
* By default, Remix will handle generating the HTTP Response for you.
@@ -12,7 +19,6 @@ import type { AppLoadContext, EntryContext } from '@remix-run/node';
1219
import { createReadableStreamFromReadable } from '@remix-run/node';
1320
import { installGlobals } from '@remix-run/node';
1421
import { RemixServer } from '@remix-run/react';
15-
import * as Sentry from '@sentry/remix';
1622
import isbot from 'isbot';
1723
import { renderToPipeableStream } from 'react-dom/server';
1824

dev-packages/e2e-tests/test-applications/create-remix-app-v2/app/tracing.tsx

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

dev-packages/e2e-tests/test-applications/create-remix-app/app/entry.server.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
import './tracing';
1+
import * as Sentry from '@sentry/remix';
2+
3+
Sentry.init({
4+
tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!
5+
environment: 'qa', // dynamic sampling bias to keep transactions
6+
dsn: process.env.E2E_TEST_DSN,
7+
// Performance Monitoring
8+
});
29

310
/**
411
* By default, Remix will handle generating the HTTP Response for you.
@@ -11,7 +18,6 @@ import { PassThrough } from 'node:stream';
1118
import type { AppLoadContext, EntryContext } from '@remix-run/node';
1219
import { Response } from '@remix-run/node';
1320
import { RemixServer } from '@remix-run/react';
14-
import * as Sentry from '@sentry/remix';
1521
import isbot from 'isbot';
1622
import { renderToPipeableStream } from 'react-dom/server';
1723

dev-packages/e2e-tests/test-applications/create-remix-app/app/tracing.tsx

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

packages/remix/src/index.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export {
9595
hapiIntegration,
9696
setupHapiErrorHandler,
9797
spotlightIntegration,
98+
setupFastifyErrorHandler,
9899
} from '@sentry/node';
99100

100101
// Keeping the `*` exports for backwards compatibility and types

0 commit comments

Comments
 (0)