Skip to content

🎥 Make videos programmatically with React

fix the parsing on second line

Alex Fernandez1e280523db89
diff --git a/packages/it-tests/src/monorepo/php-package.test.ts b/packages/it-tests/src/monorepo/php-package.test.ts
index 087f89ffd0..8a35b0b279 100644
--- a/packages/it-tests/src/monorepo/php-package.test.ts
+++ b/packages/it-tests/src/monorepo/php-package.test.ts
@@ -52,7 +52,10 @@ test("PHP package should create the same payload as normal Lambda package", asyn
codec: "h264",
});
- const raw = toParse.substring(0, toParse.lastIndexOf("}") + 1);
+ const raw = toParse.substring(
+ toParse.lastIndexOf("(100%)"),
+ toParse.lastIndexOf("}") + 1
+ );
console.log("show php output raw");
console.log(raw);
const parsedJson = JSON.parse(raw);