Skip to content

Commit

Permalink
ref(tests): Move event-proxy-server out of NestJS tests. (getsentry…
Browse files Browse the repository at this point in the history
…#11446)

Applies updates on
getsentry#11427 to NestJS e2e
tests.
  • Loading branch information
onurtemizkan authored and cadesalaberry committed Apr 19, 2024
1 parent b199338 commit f98e855
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 257 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"rxjs": "^7.8.1"
},
"devDependencies": {
"@sentry-internal/event-proxy-server": "link:../../../event-proxy-server",
"@nestjs/cli": "^10.0.0",
"@nestjs/schematics": "^10.0.0",
"@nestjs/testing": "^10.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { startEventProxyServer } from './event-proxy-server';
import { startEventProxyServer } from '@sentry-internal/event-proxy-server';

startEventProxyServer({
port: 3031,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from '@playwright/test';
import { waitForError } from '@sentry-internal/event-proxy-server';
import axios, { AxiosError } from 'axios';
import { waitForError } from '../event-proxy-server';

const authToken = process.env.E2E_TEST_AUTH_TOKEN;
const sentryTestOrgSlug = process.env.E2E_TEST_SENTRY_ORG_SLUG;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import crypto from 'crypto';
import { expect, test } from '@playwright/test';
import { waitForTransaction } from '@sentry-internal/event-proxy-server';
import { SpanJSON } from '@sentry/types';
import axios from 'axios';
import { waitForTransaction } from '../event-proxy-server';

test('Propagates trace for outgoing http requests', async ({ baseURL }) => {
const id = crypto.randomUUID();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from '@playwright/test';
import { waitForTransaction } from '@sentry-internal/event-proxy-server';
import axios, { AxiosError } from 'axios';
import { waitForTransaction } from '../event-proxy-server';

const authToken = process.env.E2E_TEST_AUTH_TOKEN;
const sentryTestOrgSlug = process.env.E2E_TEST_SENTRY_ORG_SLUG;
Expand Down

0 comments on commit f98e855

Please sign in to comment.