Skip to content

Commit 77ea7ab

Browse files
committed
addressing comments
1 parent 6a7ec1f commit 77ea7ab

File tree

4 files changed

+9
-15
lines changed

4 files changed

+9
-15
lines changed

dev-packages/e2e-tests/test-applications/firebase/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
1. Run the docker
66

77
```bash
8-
npm run docker
8+
pnpm docker
99
```
1010

11-
2In new tab, enter the docker container by simply running
11+
2. In new tab, enter the docker container by simply running
1212

1313
```bash
1414
docker exec -it sentry-firebase bash

dev-packages/e2e-tests/test-applications/firebase/package.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,18 @@
99
"dev": "tsc --build --watch",
1010
"docker": "cd docker && docker compose up --build",
1111
"proxy": "node start-event-proxy.mjs",
12-
"start": "ts-node src/app.ts",
12+
"start": "node ./dist/app.js",
1313
"test": "playwright test",
1414
"clean": "npx rimraf node_modules pnpm-lock.yaml",
1515
"test:build": "pnpm install && pnpm build",
1616
"test:assert": "pnpm test"
1717
},
18-
"dependencies": {
19-
"@sentry/core": "latest || *",
20-
"@sentry/node": "latest || *",
21-
"@sentry/types": "latest || *",
22-
"typescript": "4.9.5"
23-
},
2418
"devDependencies": {
2519
"@playwright/test": "^1.44.1",
2620
"@sentry-internal/test-utils": "link:../../../test-utils",
2721
"dotenv": "^16.4.5",
28-
"ts-loader": "^9.5.1",
29-
"tsconfig-paths": "^4.2.0"
22+
"tsconfig-paths": "^4.2.0",
23+
"typescript": "4.9.5"
3024
},
3125
"volta": {
3226
"extends": "../../package.json"

dev-packages/e2e-tests/test-applications/firebase/tests/transactions.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ test.afterAll(() => {
9191
});
9292

9393
test('should add, set, get and delete document', async ({ baseURL, page }) => {
94-
const pageloadTransactionEventPromise = waitForTransaction('firebase', transactionEvent => {
94+
const serverTransactionPromise = waitForTransaction('firebase', () => {
9595
return true;
9696
});
9797

9898
await fetch(`${baseURL}/test`);
9999

100-
const transactionEvent = await pageloadTransactionEventPromise;
100+
const transactionEvent = await serverTransactionPromise;
101101

102102
expect(transactionEvent.transaction).toEqual('root span');
103103

packages/node/src/integrations/tracing/firebase/otel/patches/firestore.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ export function patchFirestore(
9292
'@firebase/firestore/dist/lite/index.cjs.js',
9393
];
9494

95-
for (let i = 0, j = files.length; i < j; i++) {
95+
for (const file of files) {
9696
moduleFirestoreCJS.files.push(
9797
new InstrumentationNodeModuleFile(
98-
files[i] as string,
98+
file,
9999
firestoreSupportedVersions,
100100
moduleExports => wrapMethods(moduleExports, wrap, unwrap, tracer, firestoreSpanCreationHook),
101101
moduleExports => unwrapMethods(moduleExports, unwrap),

0 commit comments

Comments
 (0)