Skip to content

Commit a87d624

Browse files
committed
add icons to check command
1 parent 8e05927 commit a87d624

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/command/check.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = async function (options) {
3939
checks['config'] = err
4040
}
4141

42-
printCheck('config', checks['config'], config.name)
42+
printCheck('🛠️ config', checks['config'], config.name)
4343

4444
let codecept
4545
try {
@@ -53,7 +53,7 @@ module.exports = async function (options) {
5353

5454
const standardActingHelpers = container.STANDARD_ACTING_HELPERS
5555

56-
printCheck('container', checks['container'])
56+
printCheck('📦 container', checks['container'])
5757

5858
if (codecept) {
5959
try {
@@ -62,7 +62,7 @@ module.exports = async function (options) {
6262
} catch (err) {
6363
checks.bootstrap = err
6464
}
65-
printCheck('bootstrap', checks['bootstrap'], options.bootstrap ? 'Bootstrap was executed' : 'No bootstrap command')
65+
printCheck('🏗️ bootstrap', checks['bootstrap'], options.bootstrap ? 'Bootstrap was executed' : 'No bootstrap command')
6666
}
6767

6868
let numTests = 0
@@ -87,12 +87,12 @@ module.exports = async function (options) {
8787

8888
if (config?.ai?.request) {
8989
checks.ai = true
90-
printCheck('ai', checks['ai'], 'AI configuration is enabled, request function is set')
90+
printCheck('🤖 ai', checks['ai'], 'AI configuration is enabled, request function is set')
9191
} else {
92-
printCheck('ai', checks['ai'], 'AI is disabled')
92+
printCheck('🤖 ai', checks['ai'], 'AI is disabled')
9393
}
9494

95-
printCheck('tests', checks['tests'], `Total: ${numTests} tests`)
95+
printCheck('🧪 tests', checks['tests'], `Total: ${numTests} tests`)
9696

9797
store.dryRun = true
9898

@@ -109,7 +109,7 @@ module.exports = async function (options) {
109109
checks.helpers = err
110110
}
111111

112-
printCheck('helpers', checks['helpers'], `${Object.keys(helpers).join(', ')}`)
112+
printCheck('🛟 helpers', checks['helpers'], `${Object.keys(helpers).join(', ')}`)
113113

114114
const pageObjects = container.support()
115115

@@ -123,10 +123,10 @@ module.exports = async function (options) {
123123
} catch (err) {
124124
checks.pageObjects = err
125125
}
126-
printCheck('page objects', checks['pageObjects'], `Total: ${Object.keys(pageObjects).length} support objects`)
126+
printCheck('📑 page objects', checks['pageObjects'], `Total: ${Object.keys(pageObjects).length} support objects`)
127127

128128
checks.plugins = true // how to check plugins?
129-
printCheck('plugins', checks['plugins'], Object.keys(container.plugins()).join(', '))
129+
printCheck('🔌 plugins', checks['plugins'], Object.keys(container.plugins()).join(', '))
130130

131131
if (Object.keys(helpers).length) {
132132
const suite = container.mocha().suite
@@ -146,7 +146,7 @@ module.exports = async function (options) {
146146
}
147147
}
148148

149-
printCheck('Helpers Before/After', checks['setup'], standardActingHelpers.some(h => Object.keys(helpers).includes(h)) ? 'Initializing and closing browser' : '')
149+
printCheck('⏮️ 🛟 ⏭️ Helpers Before/After', checks['setup'], standardActingHelpers.some(h => Object.keys(helpers).includes(h)) ? 'Initializing and closing browser' : '')
150150

151151
try {
152152
definitions(configFile, { dryRun: true })
@@ -155,7 +155,7 @@ module.exports = async function (options) {
155155
checks.def = err
156156
}
157157

158-
printCheck('TypeScript Definitions', checks['def'])
158+
printCheck('📜 TypeScript Definitions', checks['def'])
159159

160160
output.print('')
161161

0 commit comments

Comments
 (0)