You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
438 B
13 lines
438 B
// If Node.js >= 22, run `npm run test-backend-node22`, otherwise run `npm run test-backend-node20`
|
|
import * as childProcess from "child_process";
|
|
|
|
const version = parseInt(process.version.slice(1));
|
|
|
|
console.log(`Node.js version: ${version}`);
|
|
|
|
if (version >= 22) {
|
|
childProcess.execSync("npm run test-backend-node22", { stdio: "inherit" });
|
|
} else {
|
|
childProcess.execSync("npm run test-backend-node20", { stdio: "inherit" });
|
|
}
|