Skip to content

Commit b696610

Browse files
committed
fixup! fix: declare support for 0.76
1 parent 54cea4a commit b696610

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

scripts/testing/test-matrix.mjs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Reminder that this script is meant to be runnable without installing
55
* dependencies. It can therefore not rely on any external libraries.
66
*/
7-
import { spawn } from "node:child_process";
7+
import { spawn, spawnSync } from "node:child_process";
88
import * as fs from "node:fs";
99
import { URL, fileURLToPath } from "node:url";
1010
import * as util from "node:util";
@@ -327,8 +327,7 @@ if (platforms.length === 0) {
327327
})
328328
.then(() => {
329329
showBanner(`Reconfigure existing app`);
330-
$(
331-
PACKAGE_MANAGER,
330+
const args = [
332331
"configure-test-app",
333332
"-p",
334333
"android",
@@ -340,7 +339,11 @@ if (platforms.length === 0) {
340339
"visionos",
341340
"-p",
342341
"windows"
343-
);
342+
];
343+
const { status } = spawnSync(PACKAGE_MANAGER, args, { stdio: "inherit" });
344+
if (status !== 1) {
345+
throw new Error("Expected an error");
346+
}
344347
})
345348
.then(() => {
346349
showBanner(green("✔ Pass"));

0 commit comments

Comments
 (0)