Skip to content

Commit

Permalink
updating helpers from the PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Apr 28, 2024
1 parent 5f9bf39 commit f641b4c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Helpers/Components.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ public static function getProjectPaths(string $type = '', string $suffix = '', s
$flibsPath = ["node_modules", "@eightshift", "frontend-libs", "blocks", "init"];
$fPLibsPath = ["node_modules", "@eightshift", "frontend-libs-private", "blocks", "init"];
$libsPath = ["vendor", "infinum", "eightshift-libs"];
$libsPrefixedPath = ["vendor-prefixed", "infinum", "eightshift-libs"];
$testsDataPath = ["tests", "data"];
$srcPath = "src";
$blocksPath = [$srcPath, "Blocks"];
Expand Down Expand Up @@ -394,6 +395,13 @@ public static function getProjectPaths(string $type = '', string $suffix = '', s
case 'libs':
$path = self::joinPaths($libsPath);

if (\getenv('ES_TEST')) {
$path = '';
}
break;
case 'libsPrefixed':
$path = self::joinPaths($libsPrefixedPath);

if (\getenv('ES_TEST')) {
$path = '';
}
Expand Down

0 comments on commit f641b4c

Please sign in to comment.