AkurAI Build
Menu

popagent

public

Latest change 98a9a832366ede73ff5e61d826d68af4f775db92 - Add safe autonomous deployment and complete project guidance by AkurAI Build

import { describe, expect, test } from "bun:test";

const root = new URL("..", import.meta.url).pathname;

describe("deploy.sh", () => {
  test("is valid Bash and passes the built-in publication privacy scan", async () => {
    const syntax = Bun.spawnSync(["bash", "-n", "deploy.sh"], { cwd: root });
    expect(syntax.exitCode).toBe(0);

    const privacy = Bun.spawnSync(["bash", "deploy.sh", "privacy-check"], { cwd: root });
    expect(privacy.exitCode).toBe(0);
  });
});