mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
fix(server): preserve dev runner signal handling
This commit is contained in:
@@ -22,4 +22,15 @@ describe("supervision parity", () => {
|
||||
expect(devRunner).not.toContain("spawnSync");
|
||||
expect(devRunner).toContain('supervisor.on("exit"');
|
||||
});
|
||||
|
||||
test("npm dev script runs dev-runner as the signal-handling node process", () => {
|
||||
const packageJson = JSON.parse(
|
||||
readFileSync(new URL("../package.json", import.meta.url), "utf8"),
|
||||
) as { scripts?: Record<string, string> };
|
||||
|
||||
const devScript = packageJson.scripts?.dev ?? "";
|
||||
|
||||
expect(devScript).toContain("node --import tsx scripts/dev-runner.ts");
|
||||
expect(devScript).not.toMatch(/^cross-env NODE_ENV=development tsx scripts\/dev-runner\.ts$/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user