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(
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 ) ) ;
Original file line number Diff line number Diff line change 2222 "devDependencies" : {},
2323 "volta" : {
2424 "extends" : " ../../package.json"
25+ },
26+ "sentryTest" : {
27+ "skip" : true
2528 }
2629}
You can’t perform that action at this time.
0 commit comments