Skip to content

Commit

Permalink
chore: 🤖 workaround flakey ci
Browse files Browse the repository at this point in the history
  • Loading branch information
IWANABETHATGUY committed Jul 21, 2024
1 parent dc78611 commit 38c4aa7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/build-tester/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,15 @@ if (hasError) {
function runInApp(dirPath, caseName) {
return new Promise((resolve, reject) => {
const p = spawn("npm", ["run", "preview"], {
stdio: ["pipe", "pipe", "pipe"],
stdio: "inherit",
cwd: dirPath,
});

let data = "";

p.stdout?.on("data", (d) => {
data += d.toString();
if (urlRegex.exec(data)) {
console.log(data)
setTimeout(() => {
runTest()
}
});
}, 2000)
async function runTest() {
let exitCode = p.exitCode;
let err;
Expand Down

0 comments on commit 38c4aa7

Please sign in to comment.