14 lines
370 B
TypeScript
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",
|
|
});
|
|
}
|