@@ -2,7 +2,7 @@ import { getConfig, getTestRoot } from './utils.js'
22import Codecept from '../codecept.js'
33import output from '../output.js'
44import store from '../store.js'
5- import container from '../container.js'
5+ import Container from '../container.js'
66import figures from 'figures'
77import chalk from 'chalk'
88import { createTest } from '../mocha/test.js'
@@ -45,14 +45,14 @@ export default async function (options) {
4545 let codecept
4646 try {
4747 codecept = new Codecept ( config , options )
48- codecept . init ( testRoot )
49- await container . started ( )
48+ await codecept . init ( testRoot )
49+ await Container . started ( )
5050 checks . container = true
5151 } catch ( err ) {
5252 checks . container = err
5353 }
5454
55- const standardActingHelpers = container . STANDARD_ACTING_HELPERS
55+ const standardActingHelpers = Container . STANDARD_ACTING_HELPERS
5656
5757 printCheck ( 'container' , checks [ 'container' ] )
5858
@@ -70,7 +70,7 @@ export default async function (options) {
7070 if ( codecept ) {
7171 try {
7272 codecept . loadTests ( )
73- const mocha = container . mocha ( )
73+ const mocha = Container . mocha ( )
7474 mocha . files = codecept . testFiles
7575 mocha . loadFiles ( )
7676 mocha . suite . suites . forEach ( suite => {
@@ -97,7 +97,7 @@ export default async function (options) {
9797
9898 store . dryRun = true
9999
100- const helpers = container . helpers ( )
100+ const helpers = Container . helpers ( )
101101
102102 try {
103103 if ( ! Object . keys ( helpers ) . length ) throw new Error ( 'No helpers found' )
@@ -112,7 +112,7 @@ export default async function (options) {
112112
113113 printCheck ( 'helpers' , checks [ 'helpers' ] , `${ Object . keys ( helpers ) . join ( ', ' ) } ` )
114114
115- const pageObjects = container . support ( )
115+ const pageObjects = Container . support ( )
116116
117117 try {
118118 if ( Object . keys ( pageObjects ) . length ) {
@@ -127,10 +127,10 @@ export default async function (options) {
127127 printCheck ( 'page objects' , checks [ 'pageObjects' ] , `Total: ${ Object . keys ( pageObjects ) . length } support objects` )
128128
129129 checks . plugins = true // how to check plugins?
130- printCheck ( 'plugins' , checks [ 'plugins' ] , Object . keys ( container . plugins ( ) ) . join ( ', ' ) )
130+ printCheck ( 'plugins' , checks [ 'plugins' ] , Object . keys ( Container . plugins ( ) ) . join ( ', ' ) )
131131
132132 if ( Object . keys ( helpers ) . length ) {
133- const suite = container . mocha ( ) . suite
133+ const suite = Container . mocha ( ) . suite
134134 const test = createTest ( 'test' , ( ) => { } )
135135 checks . setup = true
136136 for ( const helper of Object . values ( helpers ) ) {
0 commit comments