Skip to content

Mocha not spawned due to long argument list? #154

@jvanoostveen

Description

@jvanoostveen

With version 4, when trying to use gulp-mocha, I'm getting

 UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error in plugin 'gulp-mocha'
Message:
    spawn ENAMETOOLONG
Details:
    code: ENAMETOOLONG
    errno: ENAMETOOLONG
    syscall: spawn

It seems this is related to the passing of the files argument, which is quite large in our case (500+ entries).

Environment: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions