Skip to content

📝 Docs: Document that mocha will search for mocha configs by going through parent directories #4976

Open

Description

Mocha currently searches through parent directories to find a mocharc config:

const filepath = args.package || findUp.sync(mocharc.package);

But this behavior isn't documented in https://mochajs.org/#configuring-mocha-nodejs, which only says to create the mocharc in your package's root directory.

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

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions