Skip to content

Commit e11ce3c

Browse files
authored
test(e2e): fix test fail when no package changes (#2666)
1 parent af23369 commit e11ce3c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/e2e/run-e2e-tests.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ exports.runE2ETests = async (resourcesEnv) => {
2626
.split("\n")
2727
.map((record) => record.split(":").slice(0, 2));
2828
const packagesToTest = changedPackages.filter((changedPackage) => hasE2Etest(changedPackage[0]));
29+
if (packagesToTest?.length === 0) {
30+
console.log("no changed package contains e2e test.");
31+
return;
32+
}
2933
console.log(`packages to run e2e test:
3034
${packagesToTest.map((package) => package[0]).join("\n")}`);
3135
await spawnPromise(

0 commit comments

Comments
 (0)