Skip to content

Commit

Permalink
added check command
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Jan 8, 2025
1 parent b88077e commit fa7b767
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/codecept.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ program
.description('Creates dummy config in current dir or [path]')
.action(errorHandler(require('../lib/command/init')))

program
.command('check')
.description('Checks configuration and environment before running tests')
.option('-t, --timeout [ms]', 'timeout for checks in ms, 20000 by default')
.action(errorHandler(require('../lib/command/check')))

program
.command('migrate [path]')
.description('Migrate json config to js config in current dir or [path]')
Expand Down
2 changes: 2 additions & 0 deletions lib/command/definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ module.exports = function (genPath, options) {
definitionsFileContent += `\n${translationAliases.join('\n')}`
}

if (options.dryRun) return

fs.writeFileSync(path.join(targetFolderPath, 'steps.d.ts'), definitionsFileContent)
output.print('TypeScript Definitions provide autocompletion in Visual Studio Code and other IDEs')
output.print('Definitions were generated in steps.d.ts')
Expand Down

0 comments on commit fa7b767

Please sign in to comment.