Skip to content

Commit 26ca39f

Browse files
committed
Address review suggestions.
1 parent 26352af commit 26ca39f

File tree

4 files changed

+10
-26
lines changed

4 files changed

+10
-26
lines changed

packages/integration-tests/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "sentry-browser-integration-tests",
2+
"name": "browser-integration-tests",
33
"version": "1.0.0",
44
"main": "index.js",
55
"license": "MIT",
@@ -19,7 +19,6 @@
1919
},
2020
"dependencies": {
2121
"@playwright/test": "^1.17.0",
22-
"@sentry/browser": "file:../browser",
2322
"babel-loader": "^8.2.2",
2423
"handlebars-loader": "^1.7.1",
2524
"html-webpack-plugin": "^5.5.0",

packages/integration-tests/utils/fixtures.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ import path from 'path';
55
import { generatePage } from './generatePage';
66

77
const getAsset = (assetDir: string, asset: string): string => {
8-
const path = `${assetDir}/${asset}`;
9-
if (fs.existsSync(path)) {
10-
return path;
8+
const assetPath = `${assetDir}/${asset}`;
9+
10+
if (fs.existsSync(assetPath)) {
11+
return assetPath;
1112
}
12-
13+
1314
return `${path.dirname(assetDir)}/${asset}`;
1415
};
1516

packages/integration-tests/utils/generatePage.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async function generateSentryAlias(): Promise<Record<string, string>> {
2121
await Promise.all(
2222
dirents.map(async d => {
2323
const packageJSON: Package = JSON.parse(
24-
await promises.readFile(path.resolve(PACKAGE_PATH, d, 'package.json'), { encoding: 'utf-8' }),
24+
(await promises.readFile(path.resolve(PACKAGE_PATH, d, 'package.json'), { encoding: 'utf-8' })).toString(),
2525
);
2626
return [packageJSON['name'], path.resolve(PACKAGE_PATH, d)];
2727
}),
@@ -30,15 +30,12 @@ async function generateSentryAlias(): Promise<Record<string, string>> {
3030
}
3131

3232
export async function generatePage(
33-
initialization: string,
34-
subject: string,
35-
template: string,
33+
initializationPath: string,
34+
subjectPath: string,
35+
templatePath: string,
3636
outPath: string,
3737
): Promise<void> {
3838
const localPath = `${outPath}/dist`;
39-
const initializationPath = `${initialization}`;
40-
const subjectPath = `${subject}`;
41-
const templatePath = `${template}`;
4239
const bundlePath = `${localPath}/index.html`;
4340

4441
const alias = await generateSentryAlias();

yarn.lock

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3031,14 +3031,6 @@
30313031
resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570"
30323032
integrity sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=
30333033

3034-
"@sentry/browser@file:packages/browser":
3035-
version "6.16.0"
3036-
dependencies:
3037-
"@sentry/core" "6.16.0"
3038-
"@sentry/types" "6.16.0"
3039-
"@sentry/utils" "6.16.0"
3040-
tslib "^1.9.3"
3041-
30423034
"@sentry/cli@^1.70.1":
30433035
version "1.70.1"
30443036
resolved "https://registry.yarnpkg.com/@sentry/cli/-/cli-1.70.1.tgz#908517b699c0714eff88bedb68c6ea72e94945e8"
@@ -20868,11 +20860,6 @@ typescript@^3.9.5, typescript@^3.9.7:
2086820860
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.9.tgz#e69905c54bc0681d0518bd4d587cc6f2d0b1a674"
2086920861
integrity sha512-kdMjTiekY+z/ubJCATUPlRDl39vXYiMV9iyeMuEuXZh2we6zz80uovNN2WlAxmmdE/Z/YQe+EbOEXB5RHEED3w==
2087020862

20871-
typescript@^4.5.2:
20872-
version "4.5.2"
20873-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.2.tgz#8ac1fba9f52256fdb06fb89e4122fa6a346c2998"
20874-
integrity sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==
20875-
2087620863
ua-parser-js@^0.7.18:
2087720864
version "0.7.26"
2087820865
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.26.tgz#b3731860e241419abd5b542b1a0881070d92e0ce"

0 commit comments

Comments
 (0)