mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-03 17:00:44 +00:00
Merge branch 'master' into feature/umami-analytics-status-page
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import * as childProcess from "child_process";
|
||||
|
||||
const version = parseInt(process.version.slice(1).split(".")[0]);
|
||||
|
||||
/**
|
||||
* Since Node.js 22 introduced a different "node --test" command with glob, we need to run different test commands based on the Node.js version.
|
||||
*/
|
||||
if (version < 22) {
|
||||
childProcess.execSync("npm run test-backend-20", { stdio: "inherit" });
|
||||
} else {
|
||||
childProcess.execSync("npm run test-backend-22", { stdio: "inherit" });
|
||||
}
|
||||
Reference in New Issue
Block a user