mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-10-29 10:29:22 +08:00
Merge remote-tracking branch 'origin/master' into feat/add-gRPC-protocol
# Conflicts: # package-lock.json
This commit is contained in:
@@ -575,6 +575,26 @@ exports.startUnitTest = async () => {
|
||||
});
|
||||
};
|
||||
|
||||
/** Start end-to-end tests */
|
||||
exports.startE2eTests = async () => {
|
||||
console.log("Starting unit test...");
|
||||
const npm = /^win/.test(process.platform) ? "npm.cmd" : "npm";
|
||||
const child = childProcess.spawn(npm, [ "run", "cy:run" ]);
|
||||
|
||||
child.stdout.on("data", (data) => {
|
||||
console.log(data.toString());
|
||||
});
|
||||
|
||||
child.stderr.on("data", (data) => {
|
||||
console.log(data.toString());
|
||||
});
|
||||
|
||||
child.on("close", function (code) {
|
||||
console.log("Jest exit code: " + code);
|
||||
process.exit(code);
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Convert unknown string to UTF8
|
||||
* @param {Uint8Array} body Buffer
|
||||
|
||||
Reference in New Issue
Block a user