mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 12:57:46 +00:00
[tests] Return an empty array if nowJson.builds is empty (#3886)
* return an empty array if nowJson.builds is empty
* https://github.com/zeit/now/pull/3622#issuecomment-578995344
* extracted from PR discussion
* occur after following change a645d4ee88
* kudos to @styfle
/cc @styfle
This commit is contained in:
@@ -64,7 +64,7 @@ async function testDeployment(
|
||||
nowJson.build.env.NOW_BUILDER_DEBUG = process.env.NOW_BUILDER_DEBUG;
|
||||
}
|
||||
|
||||
for (const build of nowJson.builds) {
|
||||
for (const build of nowJson.builds || []) {
|
||||
if (builderUrl) {
|
||||
if (builderUrl === '@canary') {
|
||||
build.use = `${build.use}@canary`;
|
||||
|
||||
Reference in New Issue
Block a user