Skip to content

allow for multiple of same setupNodeEvents hooks #32471

@bvandercar-vt

Description

@bvandercar-vt

Current behavior

Currently, if you do

setupNodeEvents(on, baseConfig) {
    on('before:run', (details) => console.log('A'))
    on('before:run', (details) => console.log('B'))
}

only the last before:run will occur (only B will be printed in this example). It would make more sense to have all hooks that are the same be ran sequentially.

Desired behavior

Run all hooks, even if have same event.

Test code to reproduce

N/A

Cypress Version

14

Node version

22

Operating System

Windows

Debug Logs

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions