11const { getConfig, getTestRoot } = require ( './utils' )
22const Codecept = require ( '../codecept' )
33const output = require ( '../output' )
4- const standardActingHelpers = require ( '../plugin/standardActingHelpers' )
54const store = require ( '../store' )
65const container = require ( '../container' )
76const figures = require ( 'figures' )
@@ -23,6 +22,7 @@ module.exports = async function (options) {
2322 container : false ,
2423 pageObjects : false ,
2524 plugins : false ,
25+ ai : true , // we don't need to check AI
2626 helpers : false ,
2727 setup : false ,
2828 tests : false ,
@@ -51,6 +51,8 @@ module.exports = async function (options) {
5151 checks . container = err
5252 }
5353
54+ const standardActingHelpers = container . STANDARD_ACTING_HELPERS
55+
5456 printCheck ( 'container' , checks [ 'container' ] )
5557
5658 if ( codecept ) {
@@ -83,6 +85,13 @@ module.exports = async function (options) {
8385 }
8486 }
8587
88+ if ( config ?. ai ?. request ) {
89+ checks . ai = true
90+ printCheck ( 'ai' , checks [ 'ai' ] , 'AI configuration is enabled, request function is set' )
91+ } else {
92+ printCheck ( 'ai' , checks [ 'ai' ] , 'AI is disabled' )
93+ }
94+
8695 printCheck ( 'tests' , checks [ 'tests' ] , `Total: ${ numTests } tests` )
8796
8897 store . dryRun = true
@@ -170,7 +179,7 @@ function printCheck(name, value, comment = '') {
170179 }
171180
172181 if ( value instanceof Error ) {
173- comment = `${ comment } ${ chalk . red . italic ( value . message ) } ` . trim ( )
182+ comment = `${ comment } ${ chalk . red ( value . message ) } ` . trim ( )
174183 }
175184
176185 output . print ( status , name . toUpperCase ( ) , chalk . dim ( comment ) )
0 commit comments