Skip to content

Commit 6f21e22

Browse files
committed
Throw if not a spawn failure
1 parent 14425e0 commit 6f21e22

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

apps/test-app/scripts/run-tests.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from "node:assert/strict";
22
import path from "node:path";
33

4-
import { spawn } from "bufout";
4+
import { spawn, SpawnFailure } from "bufout";
55

66
// Ideally, we would just use "concurrently" or "npm-run-all" to run these in parallel but:
77
// - "concurrently" hangs the emulator action on Ubuntu
@@ -41,4 +41,8 @@ const build = spawn(
4141
}
4242
);
4343

44-
Promise.all([metro, build]).catch(console.error);
44+
Promise.all([metro, build]).catch((err) => {
45+
if (!(err instanceof SpawnFailure)) {
46+
throw err;
47+
}
48+
});

0 commit comments

Comments
 (0)