1
1
const { getConfig, getTestRoot } = require ( './utils' )
2
2
const Codecept = require ( '../codecept' )
3
3
const output = require ( '../output' )
4
- const standardActingHelpers = require ( '../plugin/standardActingHelpers' )
5
4
const store = require ( '../store' )
6
5
const container = require ( '../container' )
7
6
const figures = require ( 'figures' )
@@ -23,6 +22,7 @@ module.exports = async function (options) {
23
22
container : false ,
24
23
pageObjects : false ,
25
24
plugins : false ,
25
+ ai : true , // we don't need to check AI
26
26
helpers : false ,
27
27
setup : false ,
28
28
tests : false ,
@@ -51,6 +51,8 @@ module.exports = async function (options) {
51
51
checks . container = err
52
52
}
53
53
54
+ const standardActingHelpers = container . STANDARD_ACTING_HELPERS
55
+
54
56
printCheck ( 'container' , checks [ 'container' ] )
55
57
56
58
if ( codecept ) {
@@ -83,6 +85,13 @@ module.exports = async function (options) {
83
85
}
84
86
}
85
87
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
+
86
95
printCheck ( 'tests' , checks [ 'tests' ] , `Total: ${ numTests } tests` )
87
96
88
97
store . dryRun = true
@@ -170,7 +179,7 @@ function printCheck(name, value, comment = '') {
170
179
}
171
180
172
181
if ( value instanceof Error ) {
173
- comment = `${ comment } ${ chalk . red . italic ( value . message ) } ` . trim ( )
182
+ comment = `${ comment } ${ chalk . red ( value . message ) } ` . trim ( )
174
183
}
175
184
176
185
output . print ( status , name . toUpperCase ( ) , chalk . dim ( comment ) )
0 commit comments