Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions lib/command/check.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand All @@ -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
Expand All @@ -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

Expand All @@ -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()

Expand All @@ -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
Expand All @@ -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 })
Expand All @@ -155,7 +155,7 @@ module.exports = async function (options) {
checks.def = err
}

printCheck('TypeScript Definitions', checks['def'])
printCheck('📜 TypeScript Definitions', checks['def'])

output.print('')

Expand Down