070959e133
landing-page-staging / Deploy landing page to staging (push) Has been skipped
landing-page-ci / Validate landing page (push) Failing after 4s
visual-baseline / Capture visual baselines (push) Has been cancelled
bake-plugin-previews / Bake plugin previews (push) Has been cancelled
25 lines
819 B
TypeScript
25 lines
819 B
TypeScript
import { describe, expect, it, vi } from "vitest";
|
|
|
|
import { linuxRemovalStatusMessage } from "../lib/linux-helpers.js";
|
|
|
|
describe("linux e2e helpers", () => {
|
|
it("[P1] delegates user-home resolution to node os.homedir", async () => {
|
|
vi.resetModules();
|
|
vi.doMock("node:os", () => ({ homedir: () => "/tmp/open-design-test-home" }));
|
|
|
|
try {
|
|
const { linuxUserHome } = await import("../lib/linux-helpers.js");
|
|
expect(linuxUserHome()).toBe("/tmp/open-design-test-home");
|
|
} finally {
|
|
vi.doUnmock("node:os");
|
|
vi.resetModules();
|
|
}
|
|
});
|
|
|
|
it("[P1] surfaces skipped-process-running as a lifecycle cleanup diagnostic", () => {
|
|
expect(linuxRemovalStatusMessage("appImage", "skipped-process-running")).toContain(
|
|
"process remained running before removal",
|
|
);
|
|
});
|
|
});
|