From a87d62439ddc95074250dc716cac4cf638c902d2 Mon Sep 17 00:00:00 2001 From: kobenguyent Date: Fri, 7 Feb 2025 17:21:01 +0100 Subject: [PATCH] add icons to check command --- lib/command/check.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/command/check.js b/lib/command/check.js index 6e3dc3e45..b661f7c5d 100644 --- a/lib/command/check.js +++ b/lib/command/check.js @@ -39,7 +39,7 @@ module.exports = async function (options) { checks['config'] = err } - printCheck('config', checks['config'], config.name) + printCheck('๐Ÿ› ๏ธ config', checks['config'], config.name) let codecept try { @@ -53,7 +53,7 @@ module.exports = async function (options) { const standardActingHelpers = container.STANDARD_ACTING_HELPERS - printCheck('container', checks['container']) + printCheck('๐Ÿ“ฆ container', checks['container']) if (codecept) { try { @@ -62,7 +62,7 @@ module.exports = async function (options) { } catch (err) { checks.bootstrap = err } - printCheck('bootstrap', checks['bootstrap'], options.bootstrap ? 'Bootstrap was executed' : 'No bootstrap command') + printCheck('๐Ÿ—๏ธ bootstrap', checks['bootstrap'], options.bootstrap ? 'Bootstrap was executed' : 'No bootstrap command') } let numTests = 0 @@ -87,12 +87,12 @@ module.exports = async function (options) { if (config?.ai?.request) { checks.ai = true - printCheck('ai', checks['ai'], 'AI configuration is enabled, request function is set') + printCheck('๐Ÿค– ai', checks['ai'], 'AI configuration is enabled, request function is set') } else { - printCheck('ai', checks['ai'], 'AI is disabled') + printCheck('๐Ÿค– ai', checks['ai'], 'AI is disabled') } - printCheck('tests', checks['tests'], `Total: ${numTests} tests`) + printCheck('๐Ÿงช tests', checks['tests'], `Total: ${numTests} tests`) store.dryRun = true @@ -109,7 +109,7 @@ module.exports = async function (options) { checks.helpers = err } - printCheck('helpers', checks['helpers'], `${Object.keys(helpers).join(', ')}`) + printCheck('๐Ÿ›Ÿ helpers', checks['helpers'], `${Object.keys(helpers).join(', ')}`) const pageObjects = container.support() @@ -123,10 +123,10 @@ module.exports = async function (options) { } catch (err) { checks.pageObjects = err } - printCheck('page objects', checks['pageObjects'], `Total: ${Object.keys(pageObjects).length} support objects`) + printCheck('๐Ÿ“‘ page objects', checks['pageObjects'], `Total: ${Object.keys(pageObjects).length} support objects`) checks.plugins = true // how to check plugins? - printCheck('plugins', checks['plugins'], Object.keys(container.plugins()).join(', ')) + printCheck('๐Ÿ”Œ plugins', checks['plugins'], Object.keys(container.plugins()).join(', ')) if (Object.keys(helpers).length) { const suite = container.mocha().suite @@ -146,7 +146,7 @@ module.exports = async function (options) { } } - printCheck('Helpers Before/After', checks['setup'], standardActingHelpers.some(h => Object.keys(helpers).includes(h)) ? 'Initializing and closing browser' : '') + printCheck('โฎ๏ธ ๐Ÿ›Ÿ โญ๏ธ Helpers Before/After', checks['setup'], standardActingHelpers.some(h => Object.keys(helpers).includes(h)) ? 'Initializing and closing browser' : '') try { definitions(configFile, { dryRun: true }) @@ -155,7 +155,7 @@ module.exports = async function (options) { checks.def = err } - printCheck('TypeScript Definitions', checks['def']) + printCheck('๐Ÿ“œ TypeScript Definitions', checks['def']) output.print('')