Skip to content

chore(deps): update dependency codeceptjs to v3.7.5 [security]#1145

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/npm-codeceptjs-vulnerability
Open

chore(deps): update dependency codeceptjs to v3.7.5 [security]#1145
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/npm-codeceptjs-vulnerability

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Sep 23, 2025

This PR contains the following updates:

Package Change Age Confidence
codeceptjs (source) 3.7.33.7.5 age confidence

GitHub Vulnerability Alerts

CVE-2025-57285

CodeceptJS versions 3.5.0 through 3.7.5-beta.18 contain a command injection vulnerability in the emptyFolder function (lib/utils.js). The execSync command directly concatenates the user-controlled directoryPath parameter without sanitization or escaping, allowing attackers to execute arbitrary commands.


Release Notes

Codeception/codeceptjs (codeceptjs)

v3.7.5

Compare Source

❤️ Thanks all to those who contributed to make this release! ❤️

v3.7.4

Compare Source

❤️ Thanks all to those who contributed to make this release! ❤️

🛩️ Features

  • Test Suite Shuffling: Randomize test execution order to discover test dependencies and improve test isolation (#​5051) - by @​NivYarmus

    # Shuffle tests to find order-dependent failures using lodash.shuffle algorithm
    npx codeceptjs run --shuffle
    
    # Combined with grep and other options
    npx codeceptjs run --shuffle --grep "@​smoke" --steps
  • Enhanced Interactive Debugging: Better logging for I.grab* methods in live interactive mode for clearer debugging output (#​4986) - by @​owenizedd

    // Interactive pause() now shows detailed grab results with JSON formatting
    I.amOnPage('/checkout')
    pause()  // Interactive shell started
    > I.grabTextFrom('.price')
    Result $res= "Grabbed text: $29.99"  // Pretty-printed JSON output
    > I.grabValueFrom('input[name="email"]')
    {"value":"user@example.com"}  // Structured JSON response

    🐛 Bug Fixes

  • Playwright Session Traces: Fixed trace file naming convention and improved error handling for multi-session test scenarios (#​5073) - by @​julien-ft-64 @​kobenguyent

    // Example outputs:
    // - a1b2c3d4-e5f6_checkout_login_test.failed.zip
    // - b2c3d4e5-f6g7_admin_dashboard_test.failed.zip

    Trace files use UUID prefixes with sessionName_testTitle.status.zip format

  • Worker Data Injection: Resolved proxy object serialization preventing data sharing between parallel test workers (#​5072) - by @​kobenguyent

    // Fixed: Complex objects can now be properly shared and injected between workers
    // Bootstrap data sharing in codecept.conf.js:
    exports.config = {
      bootstrap() {
        share({
          userData: { id: 123, preferences: { theme: 'dark' } },
          apiConfig: { baseUrl: 'https://api.test.com', timeout: 5000 },
        })
      },
    }
    
    // In tests across different workers:
    const testData = inject()
    console.log(testData.userData.preferences.theme) // 'dark' - deep nesting works
    console.log(Object.keys(testData)) // ['userData', 'apiConfig'] - key enumeration works
    
    // Dynamic sharing during test execution:
    share({ newData: 'shared across workers' })
  • Hook Exit Codes: Fixed improper exit codes when test hooks fail, ensuring CI/CD pipelines properly detect failures (#​5058) - by @​kobenguyent

    # Before: Exit code 0 even when beforeEach/afterEach failed
    # After: Exit code 1 when any hook fails, properly failing CI builds
  • TypeScript Effects Support: Added complete TypeScript definitions for effects functionality (#​5027) - by @​kobenguyent

    // Import effects with full TypeScript type definitions
    import { tryTo, retryTo, within } from 'codeceptjs/effects'
    
    // tryTo returns Promise<boolean> for conditional actions
    const success: boolean = await tryTo(async () => {
      await I.see('Cookie banner')
      await I.click('Accept')
    })
    
    // retryTo with typed parameters for reliability
    await retryTo(() => {
      I.click('Submit')
      I.see('Success')
    }, 3) // retry up to 3 times

    Note: Replaces deprecated global plugins - import from 'codeceptjs/effects' module

  • Mochawesome Screenshot Uniqueness: Fixed screenshot naming to prevent test failures from being overwritten when multiple tests run at the same time (#​4959) - by @​Lando1n

    // Problem: When tests run in parallel, screenshots had identical names
    // This caused later test screenshots to overwrite earlier ones
    
    // Before: All failed tests saved as "screenshot.png"
    // Result: Only the last failure screenshot was kept
    
    // After: Each screenshot gets a unique name with timestamp
    // Examples:
    // - "login_test_1645123456.failed.png"
    // - "checkout_test_1645123789.failed.png"
    // - "profile_test_1645124012.failed.png"
    
    // Configuration in codecept.conf.js:
    helpers: {
      Mochawesome: {
        uniqueScreenshotNames: true // Enable unique naming
      }
    }

    Ensures every failed test keeps its own screenshot for easier debugging

📖 Documentation


Configuration

📅 Schedule: Branch creation - "" in timezone Europe/London, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Sep 23, 2025
@renovate renovate bot requested review from a team as code owners September 23, 2025 23:56
@renovate renovate bot requested review from danielwilsonkainos, jyothi-balla and reespozzi and removed request for a team September 23, 2025 23:56
@renovate renovate bot enabled auto-merge (squash) October 17, 2025 12:04
@renovate renovate bot force-pushed the renovate/npm-codeceptjs-vulnerability branch 2 times, most recently from 50fe279 to 77dee8b Compare October 21, 2025 19:16
@renovate renovate bot force-pushed the renovate/npm-codeceptjs-vulnerability branch from 77dee8b to a455c05 Compare November 10, 2025 22:50
@renovate renovate bot force-pushed the renovate/npm-codeceptjs-vulnerability branch from a455c05 to 33933a7 Compare November 18, 2025 23:14
@renovate renovate bot force-pushed the renovate/npm-codeceptjs-vulnerability branch from 33933a7 to 8c99204 Compare December 3, 2025 17:04
@renovate renovate bot force-pushed the renovate/npm-codeceptjs-vulnerability branch 2 times, most recently from 94033ca to cce6ca0 Compare December 19, 2025 13:06
@renovate renovate bot force-pushed the renovate/npm-codeceptjs-vulnerability branch from cce6ca0 to 8052010 Compare December 19, 2025 23:40
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z bot requested a deployment to preview December 22, 2025 09:45 Abandoned
@renovate renovate bot changed the title chore(deps): update dependency codeceptjs to v3.7.5 [security] chore(deps): update dependency codeceptjs to v3.7.5 [security] - autoclosed Jan 14, 2026
@renovate renovate bot closed this Jan 14, 2026
auto-merge was automatically disabled January 14, 2026 03:15

Pull request was closed

@renovate renovate bot deleted the renovate/npm-codeceptjs-vulnerability branch January 14, 2026 03:15
@renovate renovate bot changed the title chore(deps): update dependency codeceptjs to v3.7.5 [security] - autoclosed chore(deps): update dependency codeceptjs to v3.7.5 [security] Jan 14, 2026
@renovate renovate bot reopened this Jan 14, 2026
@renovate renovate bot force-pushed the renovate/npm-codeceptjs-vulnerability branch 2 times, most recently from 8052010 to 9b54f56 Compare January 14, 2026 08:10
@renovate renovate bot enabled auto-merge (squash) January 14, 2026 12:57
@renovate renovate bot force-pushed the renovate/npm-codeceptjs-vulnerability branch from 9b54f56 to da06512 Compare January 19, 2026 17:38
@renovate renovate bot force-pushed the renovate/npm-codeceptjs-vulnerability branch from da06512 to 331a758 Compare February 2, 2026 21:04
@renovate renovate bot force-pushed the renovate/npm-codeceptjs-vulnerability branch 2 times, most recently from 423c924 to ed16deb Compare February 17, 2026 22:34
@renovate renovate bot force-pushed the renovate/npm-codeceptjs-vulnerability branch from ed16deb to bf997ca Compare March 5, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants