This commit is contained in:
jamelreid 2022-02-18 09:22:56 -05:00
parent c73c2be097
commit a756af894c
1 changed files with 3 additions and 2 deletions

View File

@ -107,8 +107,9 @@ const resolveSingleE2EPath = ( filePath, exclude = [ 'woocommerce' ] ) => {
// If running in GitHub CI, add the project root to the exclude array
// This is done because the project root is always duplicated in GitHub CI
if ( GITHUB_ACTIONS ) {
const appPathArray = appPath.split( '/' );
const projectRoot = appPathArray[ appPathArray.length - 2 ];
const trimmedPath = appPath.replace( /\/$/, '' );
const appPathArray = trimmedPath.split( '/' );
const projectRoot = appPathArray[ appPathArray.length - 1 ];
exclude.push( projectRoot );
}