Files
piik/tests/release-app.test.ts
T
AAA 5781d6bbfa feat(client): complete native source and release boundary
Complete the Native Client source/audio boundary, strict v5 loopback contract, Browser media lifecycle handling, and non-blocking release checks. Keep unverified platform/physical gates explicit; do not rewrite the Go Server.
2026-09-04 03:42:54 +08:00

25 lines
831 B
TypeScript

import { spawnSync } from "node:child_process";
import { existsSync } from "node:fs";
import { fileURLToPath } from "node:url";
import { describe, expect, it } from "vitest";
const bash =
process.platform === "win32"
? [
"C:\\Program Files\\Git\\bin\\bash.exe",
"C:\\Program Files\\Git\\usr\\bin\\bash.exe",
].find(existsSync)
: "/bin/bash";
const testWithBash = bash && existsSync(bash) ? it : it.skip;
describe("application release recovery", () => {
testWithBash("removes only the unactivated release owned by this run", () => {
const script = fileURLToPath(
new URL("./release-app-recovery.sh", import.meta.url),
);
const result = spawnSync(bash!, [script], { encoding: "utf8" });
expect(result.status, `${result.stdout}\n${result.stderr}`).toBe(0);
}, 15_000);
});