Skip to content

fixed: TS typings for Codecept and MainConfig#5216

Merged
kobenguyent merged 1 commit intocodeceptjs:3.xfrom
danielrentz:patch-4
Sep 29, 2025
Merged

fixed: TS typings for Codecept and MainConfig#5216
kobenguyent merged 1 commit intocodeceptjs:3.xfrom
danielrentz:patch-4

Conversation

@danielrentz
Copy link
Contributor

@danielrentz danielrentz commented Sep 29, 2025

Motivation/Description of the PR

This PR contains fixes for TypeScript types.

  • in MainConfig, the option tests can be an array of strings.
  • in class Codecept, the methods bootstrap and teardown will always return a promise.
  • added jsdoc with types for static Codecept.version

The npm run def script has removed a few unrelated semicolons in index.d.ts.

Applicable helpers:

  • Playwright
  • Puppeteer
  • WebDriver
  • REST
  • FileHelper
  • Appium
  • TestCafe

Applicable plugins:

  • allure
  • autoDelay
  • autoLogin
  • customLocator
  • pauseOnFail
  • coverage
  • retryFailedStep
  • screenshotOnFail
  • selenoid
  • stepByStepReport
  • stepTimeout
  • wdio
  • subtitles

Type of change

  • 🔥 Breaking changes
  • 🚀 New functionality
  • 🐛 Bug fix
  • 🧹 Chore
  • 📋 Documentation changes/updates
  • ♨️ Hot fix
  • 🔨 Markdown files fix - not related to source code
  • 💅 Polish code

Checklist:

  • Tests have been added
  • Documentation has been added (Run npm run docs)
  • Lint checking (Run npm run lint)
  • Local tests are passed (Run npm test)

@kobenguyent kobenguyent merged commit aed3123 into codeceptjs:3.x Sep 29, 2025
14 checks passed
@danielrentz danielrentz deleted the patch-4 branch October 2, 2025 09:18
@kobenguyent kobenguyent mentioned this pull request Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants