新建项目
This commit is contained in:
17
tests/run-all.js
Normal file
17
tests/run-all.js
Normal file
@@ -0,0 +1,17 @@
|
||||
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");
|
||||
Reference in New Issue
Block a user