File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
bin/testObservability/helper Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -284,6 +284,10 @@ const getCypressCommandEventListener = (isJS) => {
284284 )
285285}
286286
287+ const isE2ESupportFile = ( file ) => {
288+ return file . includes ( 'e2e.js' ) || file . includes ( 'e2e.ts' ) ;
289+ }
290+
287291exports . setEventListeners = ( bsConfig ) => {
288292 try {
289293 const supportFilesData = helper . getSupportFiles ( bsConfig , false ) ;
@@ -292,7 +296,7 @@ exports.setEventListeners = (bsConfig) => {
292296 if ( err ) return exports . debug ( 'EXCEPTION IN BUILD START EVENT : Unable to parse cypress support files' ) ;
293297 files . forEach ( file => {
294298 try {
295- if ( ! file . includes ( 'commands.js' ) ) {
299+ if ( isE2ESupportFile ( file ) || ! files . some ( f => isE2ESupportFile ( f ) ) ) {
296300 const defaultFileContent = fs . readFileSync ( file , { encoding : 'utf-8' } ) ;
297301
298302 let cypressCommandEventListener = getCypressCommandEventListener ( file . includes ( 'js' ) ) ;
You can’t perform that action at this time.
0 commit comments