mocha icon indicating copy to clipboard operation
mocha copied to clipboard

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

Open JavaScriptBach opened this issue 2 years ago • 1 comments

Mocha currently searches through parent directories to find a mocharc config: https://github.com/mochajs/mocha/blob/37deed262d4bc0788d32c66636495d10038ad398/lib/cli/options.js#L182

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.

JavaScriptBach avatar Apr 10 '23 17:04 JavaScriptBach

Hi, I am interested in polishing the documents, can I take this issue?

Bernice55231 avatar Apr 19 '23 19:04 Bernice55231