const path = require("path"); const { spawnSync } = require("child_process"); const testFiles = [ "game-service.test.js", "page-contract.test.js", "release-readiness.test.js" ]; testFiles.forEach((testFile) => { const result = spawnSync(process.execPath, [path.join(__dirname, testFile)], { stdio: "inherit" }); if (result.status !== 0) process.exit(result.status || 1); }); console.log("all automated checks passed");