mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
14 lines
520 B
TypeScript
14 lines
520 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import { describe, expect, test } from "vitest";
|
|
|
|
describe("supervisor lifecycle intents", () => {
|
|
test("uses explicit shutdown and restart IPC intents", () => {
|
|
const source = readFileSync(new URL("./supervisor.ts", import.meta.url), "utf8");
|
|
const legacyShutdownReason = ["cli", "shutdown"].join("_");
|
|
|
|
expect(source).toContain('"paseo:shutdown"');
|
|
expect(source).toContain('"paseo:restart"');
|
|
expect(source).not.toContain(legacyShutdownReason);
|
|
});
|
|
});
|