add playwright tests

This commit is contained in:
2026-08-01 21:24:48 -04:00
parent 250a18cfbb
commit 61ea97265c
12 changed files with 299 additions and 9 deletions
+13
View File
@@ -0,0 +1,13 @@
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",
});
}