Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: codeceptjs/CodeceptJS
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4.0.3
Choose a base ref
...
head repository: codeceptjs/CodeceptJS
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4.0.4
Choose a head ref
  • 6 commits
  • 25 files changed
  • 6 contributors

Commits on Jun 1, 2026

  1. fix(init): emit ESM-compatible tsconfig for TypeScript projects (#5596)

    `codecept init` installs tsx and sets `require: ['tsx/cjs']`, but the
    generated tsconfig.json still carried the legacy ts-node setup:
    
    - a `"ts-node": { files: true }` block, though ts-node is never installed
      and is marked "not recommended" in loaderCheck.js
    - `"module": "commonjs"`, wrong for an ESM ("type": "module") project
    
    Generate a tsconfig that matches the tsx/ESM setup init already configures:
    drop the ts-node block, use `module: ESNext` with `moduleResolution: bundler`
    (so extensionless imports resolve as tsx/docs expect), and bump target/lib
    to ES2022.
    
    Co-authored-by: DavertMik <[email protected]>
    Co-authored-by: Claude Opus 4.8 <[email protected]>
    3 people authored Jun 1, 2026
    Configuration menu
    Copy the full SHA
    d18924b View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2026

  1. fix: support Playwright 1.58+ output format in codeceptjs info (4.x) (

    #5437)
    
    * fix: support Playwright 1.58+ output format in `codeceptjs info`
    
    Playwright 1.58 changed the output format of `npx playwright install --dry-run`:
    - Old format: "browser: chromium version 143.0.7499.4"
    - New format: "Chrome for Testing 145.0.7632.6 (playwright chromium v1208)"
    
    Updated the regex to handle both formats while excluding chromium-headless-shell.
    
    Fixes #5422
    
    Co-Authored-By: Claude Opus 4.5 <[email protected]>
    
    * test: add unit tests for parsePlaywrightBrowsers regex
    
    Extract parsePlaywrightBrowsers function and add unit tests to verify
    both old (Playwright < 1.58) and new (1.58+) output formats are parsed
    correctly, and that chromium-headless-shell is excluded.
    
    Co-Authored-By: Claude Opus 4.5 <[email protected]>
    
    ---------
    
    Co-authored-by: Claude Opus 4.5 <[email protected]>
    mirao and claude authored Jun 3, 2026
    Configuration menu
    Copy the full SHA
    12c0f33 View commit details
    Browse the repository at this point in the history
  2. fix: run-workers --by suite parallelization broken by test file sorti…

    …ng (4.x) (#5438)
    
    * fix: run-workers --by suite parallelization broken by test file sorting (#5412)
    
    The sorting of test files in loadTests() (added in #5386) broke the
    --by suite parallelization. When files were sorted before worker
    distribution, all workers could receive the same tests instead of
    different suites being distributed to different workers.
    
    Fix: Move testFiles.sort() from loadTests() to run(). This ensures:
    - Worker distribution uses original (unsorted) file order for consistent
      distribution across workers
    - Test execution still uses alphabetical order (sorted in run())
    
    Added unit test to verify files are not sorted after loadTests().
    
    Fixes #5412
    
    Co-Authored-By: Claude Opus 4.5 <[email protected]>
    
    * fix: adapt tests for CI environment
    
    - alphabetical_order_test: avoid calling codecept.run() which hangs
      in CI due to container.started() and event listener setup; test
      loadTests() directly instead
    - worker_test: revert custom config assertions to original 4.x
      relaxed values (exact counts are filesystem-dependent)
    - worker_test: simplify distribution test to only verify suite
      distribution without assuming glob order
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    * test: remove fragile worker distribution test
    
    The test depends on mocha.loadFiles() with full container globals
    (Feature, Scenario) which aren't available in unit test context on CI.
    The core fix (sort moved from loadTests to run) is already verified
    by alphabetical_order_test.js.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    * Revert "test: remove fragile worker distribution test"
    
    This reverts commit 5c03e7a.
    
    * test: fix worker distribution test for CI compatibility
    
    Compare loadTests() output against fresh globSync() to verify files
    are not sorted, instead of assuming a specific non-alphabetical order.
    This works regardless of filesystem glob order (ext4 vs others).
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    ---------
    
    Co-authored-by: Claude Opus 4.5 <[email protected]>
    mirao and claude authored Jun 3, 2026
    Configuration menu
    Copy the full SHA
    4f1eb3f View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2026

  1. fix: some path issues on windows (#5595)

    * support windows
    
    * fix path issues on test
    
    * fix path issues on test
    
    * fix path issues on test
    
    * fix path issues on test
    
    * fix path issues on test
    
    * fix path issues on test
    
    * resolve load config file"
    
    * DRY
    
    * DRY
    
    * DRY
    
    * DRY
    
    * DRY
    
    * fix: uts
    
    * fix: uts
    
    * fix: uts
    
    * relax conditions
    
    * relax conditions
    
    * debug
    
    * debug
    
    * fix uts
    
    * fix uts
    
    * fix uts
    
    * fix uts
    
    * fix uts
    
    * fix uts
    kobenguyent authored Jun 4, 2026
    Configuration menu
    Copy the full SHA
    dcfc530 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b916eea View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2026

  1. Configuration menu
    Copy the full SHA
    a493212 View commit details
    Browse the repository at this point in the history
Loading