add playwright tests
This commit is contained in:
@@ -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",
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user