Merge branch 'master' into feature/#1891-set-ping-packet-size

This commit is contained in:
Matthew Nickson
2022-09-10 21:20:03 +01:00
committed by GitHub
37 changed files with 2676 additions and 1836 deletions

View File

@@ -576,6 +576,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