no-record-video-test-passed-cypress-plugin
Version:
Plugin delete the recorded video for specs that had no retry attempts or failures when using Cypress test retries.
25 lines (22 loc) • 592 B
JavaScript
const ansis = require("ansis");
const PluginTestsLogger = {
log: (text) => {
console.log(ansis.hex("#35c9ff").bold(`${text}`));
},
error: (text, addReporter) => {
if (addReporter)
console.log(
ansis.hex("#0094a6").underline.bold("No record video plugin : ")
);
console.error(" - " + ansis.red(text));
},
logStartEnd: (text) => {
const repeatStr = "*".repeat(15);
console.log(
ansis
.hex("#00ff2a")
.bold(`${repeatStr} No record video plugin : ${text} ${repeatStr}`)
);
},
};
module.exports = PluginTestsLogger;