Files
sustenance/e2e/global-setup.ts
T
2026-08-01 21:24:48 -04:00

14 lines
370 B
TypeScript

import { execSync } from "child_process";
import * as path from "path";
/**
* Builds the Rust server before the test suite runs, so the fixture can launch
* `target/debug/sustenance` without requiring a manual `cargo build`.
*/
export default function globalSetup() {
execSync("cargo build", {
cwd: path.resolve(__dirname, ".."),
stdio: "inherit",
});
}