Skip to content

Commit 529593e

Browse files
committed
small fixes
1 parent 0802df6 commit 529593e

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

dev-packages/e2e-tests/lib/getTestMatrix.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,14 @@ function addIncludesForTestApp(
6565
return;
6666
}
6767

68+
const shouldSkip = packageJson.sentryTest?.skip || false;
6869
const isOptional = packageJson.sentryTest?.optional || false;
6970
const variants = (optionalMode ? packageJson.sentryTest?.optionalVariants : packageJson.sentryTest?.variants) || [];
7071

72+
if (shouldSkip) {
73+
return;
74+
}
75+
7176
// Add the basic test-application itself, if it is in the current mode
7277
if (optionalMode === isOptional) {
7378
includes.push({
@@ -102,6 +107,7 @@ function getPackageJson(appName: string):
102107
optional?: boolean;
103108
variants?: Partial<MatrixInclude>[];
104109
optionalVariants?: Partial<MatrixInclude>[];
110+
skip?: boolean;
105111
};
106112
}
107113
| undefined {
@@ -133,6 +139,11 @@ function getAffectedTestApplications(
133139
.map(line => line.trim())
134140
.filter(Boolean);
135141

142+
// If something in e2e tests themselves are changed, just run everything
143+
if (affectedProjects.includes('@sentry-internal/e2e-tests')) {
144+
return testApplications;
145+
}
146+
136147
return testApplications.filter(testApp => {
137148
const sentryDependencies = getSentryDependencies(testApp);
138149
return sentryDependencies.some(dep => affectedProjects.includes(dep));

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@
2222
"devDependencies": {},
2323
"volta": {
2424
"extends": "../../package.json"
25+
},
26+
"sentryTest": {
27+
"skip": true
2528
}
2629
}

0 commit comments

Comments
 (0)