File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
test-applications/node-profiling Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,14 @@ function addIncludesForTestApp(
65
65
return ;
66
66
}
67
67
68
+ const shouldSkip = packageJson . sentryTest ?. skip || false ;
68
69
const isOptional = packageJson . sentryTest ?. optional || false ;
69
70
const variants = ( optionalMode ? packageJson . sentryTest ?. optionalVariants : packageJson . sentryTest ?. variants ) || [ ] ;
70
71
72
+ if ( shouldSkip ) {
73
+ return ;
74
+ }
75
+
71
76
// Add the basic test-application itself, if it is in the current mode
72
77
if ( optionalMode === isOptional ) {
73
78
includes . push ( {
@@ -102,6 +107,7 @@ function getPackageJson(appName: string):
102
107
optional ?: boolean ;
103
108
variants ?: Partial < MatrixInclude > [ ] ;
104
109
optionalVariants ?: Partial < MatrixInclude > [ ] ;
110
+ skip ?: boolean ;
105
111
} ;
106
112
}
107
113
| undefined {
@@ -133,6 +139,11 @@ function getAffectedTestApplications(
133
139
. map ( line => line . trim ( ) )
134
140
. filter ( Boolean ) ;
135
141
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
+
136
147
return testApplications . filter ( testApp => {
137
148
const sentryDependencies = getSentryDependencies ( testApp ) ;
138
149
return sentryDependencies . some ( dep => affectedProjects . includes ( dep ) ) ;
Original file line number Diff line number Diff line change 22
22
"devDependencies" : {},
23
23
"volta" : {
24
24
"extends" : " ../../package.json"
25
+ },
26
+ "sentryTest" : {
27
+ "skip" : true
25
28
}
26
29
}
You can’t perform that action at this time.
0 commit comments