Skip to content

Commit a173fa2

Browse files
authored
build: Small fixes for e2e tests & build (#9213)
1 parent 960484f commit a173fa2

File tree

6 files changed

+4
-44
lines changed

6 files changed

+4
-44
lines changed

packages/bun/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"build:types:watch": "tsc -p tsconfig.types.json --watch",
4545
"build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build",
4646
"circularDepCheck": "madge --circular src/index.ts",
47-
"clean": "rimraf build coverage sentry-node-*.tgz",
47+
"clean": "rimraf build coverage sentry-bun-*.tgz",
4848
"fix": "run-s fix:eslint fix:prettier",
4949
"fix:eslint": "eslint . --format stylish --fix",
5050
"fix:prettier": "prettier --write \"{src,test,scripts}/**/**.ts\"",

packages/e2e-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"test:validate-test-app-setups": "ts-node validate-test-app-setups.ts",
1818
"test:prepare": "ts-node prepare.ts",
1919
"test:validate": "run-s test:validate-configuration test:validate-test-app-setups",
20-
"clean": "rimraf tmp node_modules && yarn clean:test-applications",
20+
"clean": "rimraf tmp node_modules pnpm-lock.yaml && yarn clean:test-applications",
2121
"clean:test-applications": "rimraf test-applications/**/{node_modules,dist,build,.next,.sveltekit,pnpm-lock.yaml}"
2222
},
2323
"devDependencies": {

packages/e2e-tests/test-applications/node-experimental-fastify-app/src/app.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ app.get('/test-transaction', async function (req, res) {
3030
Sentry.startSpan({ name: 'child-span' }, () => {});
3131
});
3232

33-
await Sentry.flush();
34-
3533
res.send({
3634
transactionIds: global.transactionIds || [],
3735
});

packages/e2e-tests/test-applications/node-experimental-fastify-app/tests/server.test.ts renamed to packages/e2e-tests/test-applications/node-experimental-fastify-app/tests/errors.test.ts

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -37,41 +37,3 @@ test('Sends exception to Sentry', async ({ baseURL }) => {
3737
)
3838
.toBe(200);
3939
});
40-
41-
test('Sends transactions to Sentry', async ({ baseURL }) => {
42-
const { data } = await axios.get(`${baseURL}/test-transaction`);
43-
const { transactionIds } = data;
44-
45-
console.log(`Polling for transaction eventIds: ${JSON.stringify(transactionIds)}`);
46-
47-
expect(transactionIds.length).toBe(1);
48-
49-
await Promise.all(
50-
transactionIds.map(async (transactionId: string) => {
51-
const url = `https://sentry.io/api/0/projects/${sentryTestOrgSlug}/${sentryTestProject}/events/${transactionId}/`;
52-
53-
await expect
54-
.poll(
55-
async () => {
56-
try {
57-
const response = await axios.get(url, { headers: { Authorization: `Bearer ${authToken}` } });
58-
59-
return response.status;
60-
} catch (e) {
61-
if (e instanceof AxiosError && e.response) {
62-
if (e.response.status !== 404) {
63-
throw e;
64-
} else {
65-
return e.response.status;
66-
}
67-
} else {
68-
throw e;
69-
}
70-
}
71-
},
72-
{ timeout: EVENT_POLLING_TIMEOUT },
73-
)
74-
.toBe(200);
75-
}),
76-
);
77-
});

packages/tracing-internal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
4444
"build:types:watch": "tsc -p tsconfig.types.json --watch",
4545
"build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build",
46-
"clean": "rimraf build coverage sentry-tracing-*.tgz",
46+
"clean": "rimraf build coverage sentry-internal-tracing-*.tgz",
4747
"fix": "run-s fix:eslint fix:prettier",
4848
"fix:eslint": "eslint . --format stylish --fix",
4949
"fix:prettier": "prettier --write \"{src,test,scripts}/**/**.ts\"",

packages/vercel-edge/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"build:types:watch": "tsc -p tsconfig.types.json --watch",
4646
"build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build",
4747
"circularDepCheck": "madge --circular src/index.ts",
48-
"clean": "rimraf build coverage sentry-core-*.tgz",
48+
"clean": "rimraf build coverage sentry-vercel-edge-*.tgz",
4949
"fix": "run-s fix:eslint fix:prettier",
5050
"fix:eslint": "eslint . --format stylish --fix",
5151
"fix:prettier": "prettier --write \"{src,test,scripts}/**/**.ts\"",

0 commit comments

Comments
 (0)