Skip to content

Commit dd4c9fe

Browse files
authored
ref(tests): Move event-proxy-server out of NestJS tests. (#11446)
Applies updates on #11427 to NestJS e2e tests.
1 parent 30e7dcc commit dd4c9fe

File tree

6 files changed

+5
-257
lines changed

6 files changed

+5
-257
lines changed

dev-packages/e2e-tests/test-applications/node-nestjs-app/event-proxy-server.ts

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

dev-packages/e2e-tests/test-applications/node-nestjs-app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"rxjs": "^7.8.1"
2525
},
2626
"devDependencies": {
27+
"@sentry-internal/event-proxy-server": "link:../../../event-proxy-server",
2728
"@nestjs/cli": "^10.0.0",
2829
"@nestjs/schematics": "^10.0.0",
2930
"@nestjs/testing": "^10.0.0",

dev-packages/e2e-tests/test-applications/node-nestjs-app/start-event-proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { startEventProxyServer } from './event-proxy-server';
1+
import { startEventProxyServer } from '@sentry-internal/event-proxy-server';
22

33
startEventProxyServer({
44
port: 3031,

dev-packages/e2e-tests/test-applications/node-nestjs-app/tests/errors.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect, test } from '@playwright/test';
2+
import { waitForError } from '@sentry-internal/event-proxy-server';
23
import axios, { AxiosError } from 'axios';
3-
import { waitForError } from '../event-proxy-server';
44

55
const authToken = process.env.E2E_TEST_AUTH_TOKEN;
66
const sentryTestOrgSlug = process.env.E2E_TEST_SENTRY_ORG_SLUG;

dev-packages/e2e-tests/test-applications/node-nestjs-app/tests/propagation.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import crypto from 'crypto';
22
import { expect, test } from '@playwright/test';
3+
import { waitForTransaction } from '@sentry-internal/event-proxy-server';
34
import { SpanJSON } from '@sentry/types';
45
import axios from 'axios';
5-
import { waitForTransaction } from '../event-proxy-server';
66

77
test('Propagates trace for outgoing http requests', async ({ baseURL }) => {
88
const id = crypto.randomUUID();

dev-packages/e2e-tests/test-applications/node-nestjs-app/tests/transactions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect, test } from '@playwright/test';
2+
import { waitForTransaction } from '@sentry-internal/event-proxy-server';
23
import axios, { AxiosError } from 'axios';
3-
import { waitForTransaction } from '../event-proxy-server';
44

55
const authToken = process.env.E2E_TEST_AUTH_TOKEN;
66
const sentryTestOrgSlug = process.env.E2E_TEST_SENTRY_ORG_SLUG;

0 commit comments

Comments
 (0)