Skip to content

Commit

Permalink
test: add pod install command
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed Jul 20, 2020
1 parent 4f9954a commit 42b1ad5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/react-native/End2End/launch-app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-check
const { writeFileSync, unlinkSync } = require("fs");
const { join, normalize } = require("path");
const { spawn } = require("child_process");
Expand Down Expand Up @@ -35,6 +36,9 @@ const run = async () => {
writeFileSync(".env", envFile);

console.log(figlet.textSync("Building App..."));
console.log("installing pods...");
await spawnPromise("pod", ["install"], { cwd: join(__dirname, "ios") });
console.log("building detox App...");
await spawnPromise(join("node_modules", ".bin", "detox"), ["build", "--configuration", "ios"], { cwd: __dirname });

console.log(figlet.textSync("Lauching Tests..."));
Expand Down

0 comments on commit 42b1ad5

Please sign in to comment.