Skip to content

Should not silently fail given --opts option #2576

Closed

Description

We had a problem where mocha wasn't finding mocha.opts, but it was silently just letting it fly and trying to run the tests. If I specify with --opts, I would expect it to throw an error if the file doesn't exist:

mocha --opts foo.opts # should throw an error if foo.opts doesn't exist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    type: buga defect, confirmed by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions